ps
Posts: 14
Joined: Wed Mar 14, 2007 2:25 pm

Remove old Features on upgrade

Hi,

I have an application that requires a major version change of one of the components. I built a new version with a new product code and the upgrade installs as expected but the old version of the component is not removed (leaving me with two). While this doesn't affect the application from working, it is a waste of space and could make things messy over time.

Is there anything specific that I need to do / not do to ensure that this is handled properly?

Thanks again for all your help.
Regards,

ps.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

On upgrade the older version of your product is uninstalled completely before installing the new one.

In oder to determine the problem please sent both package versions (if not contain any confidential informations) or a small similar test case reproduction this issue to support at advancedinstaller dot com.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
ps
Posts: 14
Joined: Wed Mar 14, 2007 2:25 pm

Gigi,

It is proprietary information (we're not even allowed to distribute it from our site, it must be downloaded from our partner's site). I will try to reproduce the problem with other files and send it to you. Does the fact that the name of the features have changed affect anything?

Thanks / Regards,

ps.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Does the fact that the name of the features have changed affect anything?
No, on major upgrades you can change the name of a feature since the old version is completely removed. Not changing the name of a feature is a requirement for patches instead.

You can send a small test project (with dummy files) that reproduce this behavior to support at advancedinstaller dot com so we can take a look.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
ps
Posts: 14
Joined: Wed Mar 14, 2007 2:25 pm

gigi wrote:Hi,
No, on major upgrades you can change the name of a feature since the old version is completely removed.
I deleted the old package and created a new one, could this be the cause? I'll try renaming it and let you know if it resolves the problem, if not I'll send you a sample project.

Thanks again,

ps
ps
Posts: 14
Joined: Wed Mar 14, 2007 2:25 pm

I needed to get another release out so I decided to take another look at this. It seems that files are not deleted by default - is that correct? After changing the "Remove" option for the application folders the files are now being deleted but I'm surprised that this is off by default. Can you confirm that this needs to be done for each folder or is there an option somewhere that makes removal the default behavior.

Thanks again,

ps.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
I needed to get another release out so I decided to take another look at this. It seems that files are not deleted by default - is that correct?
No, this is not correct. If you authored the upgrade correctly the old package is uninstalled completely followed by the installation of the new one. I think you get this behavior because the older version is not uninstalled ("Upgrade Code" is not the same between version).
I deleted the old package and created a new one, could this be the cause?
On upgrade both versions (older and new) must have the same "Upgrade Code", different "Product Code", same "Installation Type", "Package Type" and also same GUIDs for the common components. On how to manage an upgrade please see:
http://www.advancedinstaller.com/user-g ... tches.html
http://www.advancedinstaller.com/user-g ... rsion.html

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”