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

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

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

Postby anupmistry » Tue Apr 03, 2012 7:07 pm

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/catshuttle/images/install_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: 50
Joined: Tue Jan 12, 2010 6:39 pm

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

Postby anupmistry » Tue Apr 03, 2012 10:33 pm

As per this link http://www.advancedinstaller.com/user-guide/install-parameters.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?
anupmistry
 
Posts: 50
Joined: Tue Jan 12, 2010 6:39 pm

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

Postby mihai.petcu » Wed Apr 04, 2012 8:56 am

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3457
Joined: Thu Aug 05, 2010 8:01 am

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

Postby anupmistry » Wed Apr 04, 2012 4:33 pm

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
anupmistry
 
Posts: 50
Joined: Tue Jan 12, 2010 6:39 pm

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

Postby mihai.petcu » Thu Apr 05, 2012 8:33 am

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3457
Joined: Thu Aug 05, 2010 8:01 am


Return to Common Problems

Who is online

Users browsing this forum: Bing [Bot], Eusebiu, Google [Bot] and 5 guests