Upgrading problem ... - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Upgrading problem ...

Hi,

I am encountering a weird issue.

I release new versions of a software package every quarter. The product name incorporates the year and quarter, therefore each release includes a different product name and a different folder name that is based on the product name.

However, when I install the next release on top of a previous release, the following happens:

1) The previous release is uninstalled.

2) The folder from the previous release is not completely removed due to logs files that were not generated from the installer. (that's ok)

3) The current release then gets installed but into the same directory as the previous release.

This causes installation problems because I have hardcoded the current release paths into the install scripts.

This does not happen if I perform an uninstall first, reboot, then attempt the installation of the current release. But I would like to avoid these steps if necessary.

Can anyone advise on what I may do to correct this? Also I am using the current version of Advanced Installer v6.4.

Thanks.
stradinov
Posts: 11
Joined: Fri May 16, 2008 11:17 pm

Re: Upgrading problem ...

Try this:
-Go to the Upgrades tab.
-Choose "Allow side by side installs of different product versions".
-Press the New... button and find the msi that you want to upgrade.

I haven't tested this feature, I'm just guessing.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Upgrading problem ...

Hi,

If you run the upgraded package on a machine which has a old package installed, the old package will be removed automatically and the upgraded package will be installed. In this case the install location of the previous version will be used as default for the current installation process. Note that this is the normal Windows Installer behavior when using the Automatically upgrade older product versions option in the Upgrades page.

To allow different versions of the same application to be installed on the same computer, you can check the Allow side by side installs of different product versions option.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Re: Upgrading problem ...

I appreciate the responses.

I was hoping to not have to do a side-by-side install. I only want to keep the latest version installed and remove the others.

Is that possible?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Upgrading problem ...

Hi,

If you don't want to install the packages side-by-side, you can use this approach:
- open the AIP of the original package
- use the "File" -> "Save as Template" menu to create a template from it
- create a new Advanced Installer project by using this template
- go to the Upgrades page and add the original package
- build the project

The "Save as Template" menu will change all the GUIDs in the project, including the Product Code. Therefore, Windows Installer will see this package as a completely different product (it will not be related to the old package). However, when this package runs it will uninstall the old version and it will use the installation folder you specified in the project (not the folder of the old installation).

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

Return to “Common Problems”