anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Upgrading Per-User/Per-Machine from a Per-Machine app

Aim
As part of our installation App2 installer will upgrade one of our prior products called say App1.

Background
App1 was created using regular Windows Setup project. App1 installer interface was such that user decides if it is Per-Machine (Everyone) or Per-User (Just me). UI is like this >> http://www.speche.com/downloads/catshut ... tall_2.gif

App2 is a per-machine only (fails if user is not administrator) created with Advanced Installer. In the App2 project have the 'Upgrades' page setup to uninstall previous version (App1). I did a 'New' selected the said App1 msi.

Problem
If App1 was installed as Per-user then the App2 install does not remove App1. If App1 was installed as Per-machine (aka Everyone) then App2 is able to remove App1 as required.

Question
How do I get App2 to remove App1 immaterial of App1 being installed as 'Per-user' (aka Just me) or 'Per-machine' (Everyone)?
anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Re: Upgrading Per-User/Per-Machine from a Per-Machine app

As per this link http://www.advancedinstaller.com/user-g ... eters.html does not look like what I am asking is allowed.

How about I create a third app3 installer that is per-user. Then add the App3 as a pre-req to the app2? so that way the remove for app1 first runs as remove per-user and then later attempts removal per-machine.

What are your thoughts on above?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Upgrading Per-User/Per-Machine from a Per-Machine app

Hello,

An easier approach is to try using a "Preserve Install Type of the old version" predefined UI custom action.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Re: Upgrading Per-User/Per-Machine from a Per-Machine app

Hi,

Tried both 'Preserve Install Type of the old version' and 'Uninstall prior versions' but neither worked for me. App2 does not un-install App1 if App1 was installed by user.

Any other ideas or suggestions?

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

Re: Upgrading Per-User/Per-Machine from a Per-Machine app

Hi,

You can try to get the upgrade code of the old version and set it in Product Details page -> Product IDs tab. This custom action requires you have identical upgrades code between the consecutive versions.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”