EXE to MSI Run as Admin - 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!

Tan
Posts: 2
Joined: Wed Jan 30, 2013 3:05 pm

EXE to MSI Run as Admin

Hello,

I followed the how-to for converting an EXE to an MSI package. Within the MIS package, it setup the .EXE as post-install under the prerequisite. I've checked the Run as Administrator in the main package install. I am trying to publish the MSI package using a GPO. The software launches fine but when it gets to the .exe install users are receiving a prompt that they do not have sufficient rights to install a print driver. How do I get the exe part to run as Administrator?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: EXE to MSI Run as Admin

Hi and welcome to Advanced Installer forum.

Thank you for your interest in Advanced Installer.

When you check the "Run as Administration" option the package type is automatically changed to EXE. But an EXE package cannot be deployed through GPO. So, in order to have an MSI package, you must uncheck the "Run as Administrator" option and also choose the "Single MSI (resources inside)" package type from the Media page.

When an MSI is deployed though GPO using the "Assign software" method it is automatically installed silently when the machine starts. Did you test the package manually when you received the error or you tried to install it through GPO?

You can try to launch the MSI package silently from an elevated console to see if the error persist.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tan
Posts: 2
Joined: Wed Jan 30, 2013 3:05 pm

Re: EXE to MSI Run as Admin

Hello,

I changed the package type to Single MSI (resources inside) and removed the Run as administrator. I have the package setup as being Published through the GPO because it requires some information from the user during installation. I launched the published packaged under a testing account that has restricted privs and I am still getting the same error. I tested the package using an admin level account and launch the MSI package manually, and it worked fine. So it seems the permissions for the .MSI package is not carrying over when the imbedded .exe is launching.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: EXE to MSI Run as Admin

Hi,

It looks like the prerequisite package needs administrator rights to get installed.

In order to overcome this problem you can try to create one MSI package that contains only the prerequisite and deploy it through GPO using the "Assign software" method, in this case it will be automatically installed silently without asking the user for administrator rights.

Also, create another MSI package that contains the resources of your initial package, but without the prerequisite EXE, and deploy it using the "Publish software" method so the users can fill the required information during installation.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”