MSI Execution Level - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ChristianLA
Posts: 16
Joined: Wed Jun 13, 2012 10:22 pm

MSI Execution Level

I have been working with Custom Actions in both Javascripts and external EXE in Adv. Inst. 9.0.1 , and when I compile as an EXE the installation goes fine but when done using MSI it fails (Javascript one - it just tries to create a file) or ask UAC (EXE is calling Java.exe which comes along with the app) execution permission. Both run fine from the Administrator terminal but not by them selves (double clicking on them)

The project is configured to install Per Machine and Require administrator, but seems that this options are only for the EXE bootstrapper and not for the MSI, due this how should be the configuration of the project to ensure the administrator rights for both MSI and EXE to ensure the CA right behavior.

Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: MSI Execution Level

Hi Christian and welcome to Advanced Installer forums,

If you use "Deferred with no impersonation" execution option on your custom action it will run under the local system account with full Administrator privileges instead of impersonating the current user.
Also, if you are building an .EXE you should distribute the .EXE and if you build a .MSI you should distribute the .MSI. You can have several builds or choose the built output type from the Configuration tab on the Media page.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ChristianLA
Posts: 16
Joined: Wed Jun 13, 2012 10:22 pm

Re: MSI Execution Level

Yesterday I try that and it didn't work after compiling the project, for some reason today it did.

Thanks for your quick response, have a nice day
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: MSI Execution Level

You're welcome, glad it worked out.

Have a nice day as well,
Mihai

Return to “Common Problems”