Upgrade version - new product name - 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!

Cash
Posts: 18
Joined: Thu Aug 28, 2008 9:34 pm

Upgrade version - new product name

Hello,

I am getting ready to send out my next release. I've changed the name of the product slightly so the directory structure looks a bit better. For example, I used to have my exe's copied to :

Program Files\Company Name\Tools

I have now changed my product name so it copies to:

Program Files\Company Name\Special Tool

Running the installer the very first time (or after a complete uninstall) this works great. However, if the user has an older version on his machine already, the new files are copied to the original directory and not the new one I wish to have created. How can I force this to happen? I'd like to get rid of the old directory completely.

Thanks,

-Scott
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Upgrade version - new product name

Hi Scott,

During an upgrade the new version will automatically will use the installation folder of the old version. This can be avoided in two ways:
1) in the new version enable side-by-side installation in the Upgrades page

or

2) create the new version of the package by using a new project and add the old package in the Upgrades page

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cash
Posts: 18
Joined: Thu Aug 28, 2008 9:34 pm

Re: Upgrade version - new product name

Since I am unable to have side by side versions, I think option two is what I need. However, I have customers on 5 different versions. All of the old versions used the same directory structure. Now that I want to change it, does that mean I would need to add all 5 packages to the Upgrades page since I don't know what version they will be upgrading from?

Also, does that mean from this point on I will need to continue my upgrades this way - adding the older package to the Upgrades page each time I have a new release?

This seems like a lot of work just to get rid of a directory.

Thanks,

-Scott
Cash
Posts: 18
Joined: Thu Aug 28, 2008 9:34 pm

Re: Upgrade version - new product name

Another thought...

Can I just force an Unistall before an Install regardless of the version they have now? This would also give me the result I am looking for I belive.

-Scott
Cash
Posts: 18
Joined: Thu Aug 28, 2008 9:34 pm

Re: Upgrade version - new product name

I just created a new Upgrade rule by selecting my older package to get the Upgrade Code. I then set the Max Version to 2.0.2.0 which is my latest version that my customers have. I also checked the "include max version range" check box (assuming this will look for any version earlier to 2.0.2.0). On the Upgrade Action tab, I selected Find and remove products. I left all other fields set to their defaults.

My new version in this package is 2.1.0.0. I expected to new installer to uninstall my prior 2.0.2.0 version and install my new version. The upgrade worked fine, but everything went into the original install folder and not the new one specified in the new package.

I want all versions less than or equal to 2.0.2.0 to use the new directory structure. All future version will just use the Automatic Upgrade feature.

What am I doing wrong?

Thanks,

-Scott
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Upgrade version - new product name

Hi Scott,
does that mean I would need to add all 5 packages to the Upgrades page since I don't know what version they will be upgrading from?
Yes, all the older versions should be added in the "Upgrades" page.
does that mean from this point on I will need to continue my upgrades this way - adding the older package to the Upgrades page each time I have a new release?
No, after the transition is made you can continue using the automated upgrade feature for the new package.
Can I just force an Unistall before an Install regardless of the version they have now?
In order to uninstall an older package you would have to know its ProductCode. Since you have more than one package, you could use a BAT file which uses MSIEXEC to try to uninstall all of them. However, this can be done a lot easier by using the "Upgrades" page.
The upgrade worked fine, but everything went into the original install folder and not the new one specified in the new package.
Please note that customizing the Upgrade rule may result in the same behavior obtained when using the automated upgrade feature. In order to use the folder of the new package you should add the upgrade code of the old packages in the "Upgrades" page. Also, the new package should be created by using a completely new Advanced Installer project (not the same old project).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cash
Posts: 18
Joined: Thu Aug 28, 2008 9:34 pm

Re: Upgrade version - new product name

Cosmin,

Thanks for the reply. You knew this questions was coming....

What if I don't have all the old packages anymore? I have the latest one, but that's the only one I know for sure. I had no idea I would need to keep all the old insaller packages archived.

Since you can set the version range in the Upgrades page, can I just use the Unique ID of my latest release, and tell it to update all prior versions?

Thanks,

-Scott
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Upgrade version - new product name

Hi Scott,

Did the older versions use the automated upgrade feature? If so, they would have the same Upgrade Code and you can add only the last package in the "Upgrades" page. If this is not the case, there is no easy way to uninstall them without knowing their Upgrade Codes or at least Product Codes.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cash
Posts: 18
Joined: Thu Aug 28, 2008 9:34 pm

Re: Upgrade version - new product name

I should also point out that while I do have 5 prior version, they all just upgrades from 1.0 using the Auto Upgrade feature.

-Scott
Cash
Posts: 18
Joined: Thu Aug 28, 2008 9:34 pm

Re: Upgrade version - new product name

This is exactly what I was looking for.

Thanks!

-Scott

Return to “Common Problems”