R – Launch program after msi installation

visual-studio-2008windows-installer

I've created a msi installer with visual studio 2008. I'd like to launch the installed program right after the installer has finished.

1) How to add a User Interace like many installers have that asks if to launch the app now?

2) Can I create a custom action that runs the app with user privileges?

Best Answer

You can either create a js custom dialog described here: Run exe after msi installation?

or you can make a custom action at commit that calls [TARGETDIR]\YourApp.exe