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

Advanced installer loses permissions on UI upgrade

Hi, we migrate our installers to ADV INST and in order to accomplish our requirements we need to upgrade from the previous version installations to the new ADVINST, our old product was fully tested, complies with MSI standards and it works fine in all scenarios.

In the new ADVINS project we added the UpgradeCode to do an automatic upgrade (using both MSI & EXE), what happens it that it seems that when uninstalling the previous installer (while updating) a message is displayed stating that there's an error since the installer has not enough permissions (the previous installer had administrative permissions to install per machine) and after clicking "ok" the upgrade process continues fine. The behavior is not inclusive of just one project but another 5 different ones as well.

This problem does not happen when we launch the ADV INST installer from an Administrator terminal therefore we believe there's an issue in the UI side.
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Advanced installer loses permissions on UI upgrade

HI Christian,

This is a strange behavior, usually if the rules for upgrading the old version are not met the old version removal is silently skipped. I assume that you already
checked the package type matches for both the old and new installers?

Also, if you have EXE enabled, you should always run the setup using the EXE, not the MSI. You can make sure that happens by setting the MSI to be included in the EXE from Media page. For EXE packages you can also set the option "Run as admininistrator" from Install Parameters page, so the package runs as it would run from an elevated console.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ChristianLA
Posts: 16
Joined: Wed Jun 13, 2012 10:22 pm

Re: Advanced installer loses permissions on UI upgrade

We have to support both per our company's client massive deployment requirements, we found out that by creating an elevation DLL and executed almost the very beginning of the MSI UI Sequence we can elevate the MSI as our previous product did, this solves the permissions issue.

I believe this DLL will be a nice enhancement to ADV INST since MSI is still the preferred massive deploy format.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Advanced installer loses permissions on UI upgrade

Hello,

We'll consider this in a future version. Thank you for your suggestion. Can you please share with us the related elevation DLL source code (e.g. your solution file) so we can investigate its functionality? You can send us an email to support at advancedinstaller dot com.

Also, currently we have support to run elevated an MSI file using our "Launch file as administrator" custom action.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”