sramesh
Posts: 20
Joined: Sat Mar 08, 2008 8:23 pm

Upgrade problems

Hi,

I have a AI Project created using version 6.1.1. This was install version 15.

Then we did some changes to the way our app works. So I made the necessary changes to the AIP.
In the meantime, the AI updates wanted to install. So I let it install AI updates. Now I have AI version 6.1.1 and 6.2.
I created an install with all the necessary changes to the AIP and this is Install version 23 (System auto picked AI 6.2) and now I am not able to use this AIP with AI version 6.1.1.

Now we have some more changes to be added to the AIP. Now we want to be able to upgrade our app from the version 15 to new version 26 and version 23 to new version 26.

I have created an upgrade that upgrades from version 15 to 26 using AI 6.1.1.

Currently when I test, after installing version 23, if I attempt at upgrading to version 26, The installed files are getting deleted and Registry cleared and hence the app is not visible in Add/Remove Programs of Control Panel.
The Custom actions to be run during upgrade fail because the files needed to run these custom actions are gone.

How do I come out of this pitfall ? What is the solution ?

Thanks
SRamesh
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Upgrade problems

Hi,
I created an install with all the necessary changes to the AIP and this is Install version 23 (System auto picked AI 6.2) and now I am not able to use this AIP with AI version 6.1.1.
Please note that projects created with newer versions of Advanced Installer cannot be opened with older versions. This is because a newer version may insert new code into the AIP file and this code would not be supported by an older version.
after installing version 23, if I attempt at upgrading to version 26, The installed files are getting deleted and Registry cleared and hence the app is not visible in Add/Remove Programs of Control Panel. The Custom actions to be run during upgrade fail because the files needed to run these custom actions are gone.
The automated upgrade feature (which you are using to upgrade your installation package) will uninstall the old version before installing the new one. Therefore, you need to make sure that your upgrade custom actions run before the old files are removed (the "InstallExecuteSequence" -> "RemoveFiles" standard action).

For example, a custom action scheduled under the "InstallExecuteSequence" -> "RemoveDuplicateFiles" standard action (right before "RemoveFiles") which has the condition UPGRADINGPRODUCTCODE will run just before the files in the old package are removed.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”