Native Mode Product Upgrade

Got a problem you cannot solve? Try here.
simpsonp
Posts: 20
Joined: Sat Oct 30, 2010 3:22 pm

Native Mode Product Upgrade

Postby simpsonp » Sun Feb 06, 2011 10:02 am

Hi,

I want to create a prouct initial install and a set of upgrades that for example follow the naming sequence: ASCOM Platform, ASCOM Platform (SP1), ASCOM Platform (SP2) etc. and have these names show up in add/remove programs so the user knows exactly what is installed. I'm using the latest 10.10 build - Studio version.

In MSI mode, all works OK and I can change the project name as needed and previous versions are correctly identified because the project_code is the primary key and links all the different versions of the application. I've just switched over to using the Native engine and have hit an issue with product upgrades: the new installer does not remove the previous version from the Add/Remove list and I end up apparently with both the original and the upated version installed.

The issue seems to be that uninstallation during upgrade does not remove the uninstall registry entry for the previous installation.

I've created an IA project from the Native template that comes with 10.10 to demonstrate what I'm seeing, its in the link here: http://download.ascom-standards.org/beta/NativeSetupTest.zip. The issue shows by building the installer and running the install, then changing the project name, rebuilding the installer and installing again. After this you will end up with two different entries in Add/Remove programmes with the two different project names you used, despite not having changed the Project_Code GUID and with an uninstall being reported as having occured.

Thanks, Peter

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Native Mode Product Upgrade

Postby giaviv » Mon Feb 07, 2011 12:29 pm

Dear Peter,

Thank you for your detail report. I compiled the project you attached and ran it. I installed the product. Then, I renamed the publisher of the project and compiled again. I ran the installer, and it successfully uninstalled the previous version and installed the new one successfully. Please make sure you did not forget any of these steps :)
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

simpsonp
Posts: 20
Joined: Sat Oct 30, 2010 3:22 pm

Re: Native Mode Product Upgrade

Postby simpsonp » Mon Feb 07, 2011 2:53 pm

Hi,

Having re-read my post it seems that mis-directed you by saying that this is caused by changing the "Project Name"; I actually meant the "Product Name" on the Project Properties tab. Sorry! :oops: I'm pleased to report that I don't have an issue with changing the "publisher of the project" as you suggested in your reply.

OK, now for a second attempt. :)

I downloaded the project to a new location on my Win64 machine. Build it without change and installed it successfully. This resulted in a new entry in the installed pprograms list called "ProjProductName:Native Setup Test". In the IA project I then changed the Product Name to "ProjProductName:Native Setup Test V2", recompiled and installed the new version. It successfully uninstalled the previous version but has left me with entries for "ProjProductName:Native Setup Test" and "ProjProductName:Native Setup Test V2" in the installed programs list.

I've attached images of the registry and program list so that you can see what I'm seeing. I noticed that the icon to the left of the program name for the first install has changed, presumably because the file providing the icon was uninstalled by the V2 installer.

For some reason, the uninstall registry entries of the first install are not removed when the upgrade is effected by the second installer.

Regards, Peter
Attachments
Registry.jpg
Registry entries
Registry.jpg (127.85 KiB) Viewed 3353 times
ProgramList.jpg
Uninstall program list
ProgramList.jpg (100.25 KiB) Viewed 3353 times

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Native Mode Product Upgrade

Postby giaviv » Tue Feb 08, 2011 11:46 am

Dear Peter,

Thank you. This issue has already been brought to our attention in the past. We appreciate your effort!
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 62 guests