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!

rollhax
Posts: 4
Joined: Thu Apr 16, 2015 2:54 pm

EXE installer requires admin privileges, MSI does not

Hello,

I'm working on updating our installer (we have the enterprise edition with java products). I've run into an issue which I nor others can seem to get around.

We have two Build targets, one that builds an EXE (single file setup w/ resources inside) and one that builds an MSI (again single file setup w/ resources inside).

The EXE installer has the UAC shield icon on it and always requests admin privileges up front before starting the installer. The MSI does not. I've gone through every menu and tried several different settings of "Run as Administrator" (including the one on Installation Details), but it still requests admin privileges up front. I want it to act like the MSI installer where it only asks for admin privileges when trying to write to a system-protected folder or do something else that actually requires admin rights.

The use case I have is that we want our product to install as either per-user or for all-users. The per-user case with the MSI installer works just fine.

Any thoughts?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: EXE installer requires admin privileges, MSI does not

Hello and welcome to Advanced Installer forums,
The EXE installer has the UAC shield icon on it and always requests admin privileges up front before starting the installer.
This may happens if the Run as administrator option is enabled in the Install Parameters page. Make sure the .EXE build is selected in the Builds list. See the attached image.
RunAsAdmin.png
RunAsAdmin.png (39.58 KiB) Viewed 8839 times
The use case I have is that we want our product to install as either per-user or for all-users. The per-user case with the MSI installer works just fine.
To make the package install per-user or per-machine please take a look on the How do I make the package install per-user or per-machine? article with related information for hints and guidance.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rollhax
Posts: 4
Joined: Thu Apr 16, 2015 2:54 pm

Re: EXE installer requires admin privileges, MSI does not

Dan,

You're awesome. Me and two other guys have been beating our heads against the wall about this for several days, never thinking to look up there. This issue has been resolved (I have two other issues on my TODO which I may be back for, but for now I'm all set). Thank you!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: EXE installer requires admin privileges, MSI does not

You're welcome,

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”