TheRocket
Posts: 45
Joined: Thu Jul 26, 2012 6:55 pm

Removing older version of prerequisite

Hi,

With a prerequisite such as Crystal Reports 2008 Runtime SP4, I must uninstall previous versions (SP3, SP2, etc) of this product, if they are already installed on the workstation.

How can I configure this in Advanced installer, so my prerequisite installation of SP4 will remove any pre-existing versions of the same product? Can this be set as a "Prerequisite uninstallation", or I should use custom actions to achieve this?

For example, install the CrRuntime_12_3_mlb.msi, then try to install CrRuntime_12_4_mlb.msi on the same workstation. You will get a message "Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel."

Hope you guys can get me ideas on how to solve this scenario.

Thanks!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Removing older version of prerequisite

Hello and welcome to Advanced Installer forums,

In order to achieve what you want you can remove Crystal Reports 2008 Runtime SP3 (CrRuntime_12_3_mlb.msi) using our "Upgrades" page. Then you can add Crystal Reports 2008 Runtime SP4 as a post-install prerequisite.

Please keep in mind that a per-user installation cannot upgrade a per-machine installation and a per-machine installation cannot upgrade a per-user installation. SO, in order to remove Crystal Reports 2008 Runtime SP3 by adding it on "Upgrades" page your project installation type must match Crystal Reports 2008 Runtime SP3 package installation type. Also, the project language must match Crystal Reports 2008 Runtime SP3 package language.

Here's the steps to proceed:
- Go to "Upgrades" page and add a new product to be upgraded(removed) using [New...] toolbar button. In the new dialog select the Crystal Reports 2008 Runtime SP3 msi path (CrRuntime_12_3_mlb.msi).
- Go to "Prerequisites" page and add Crystal Reports 2008 Runtime SP4 as a post-install prerequisite.
- Build and run your project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TheRocket
Posts: 45
Joined: Thu Jul 26, 2012 6:55 pm

Re: Removing older version of prerequisite

Hi Daniel,

I've completed my tests and I confirm the solution works!

Thanks a lot!!

Return to “Common Problems”