use postmessage to install packaged apps (bug 996150)