PaddyM
Posts: 1
Joined: Thu Nov 08, 2007 10:49 am

Uninstall an old MSI Installation with a newer MSI Package

Hi everybody,

I want to uninstall a MSI Installation (version 1) with a newer MSI Package of the same project (version 2 with another GUID for sure).
the code is

Code: Select all

msiexec /x myMSI.msi /qb-
NOTE: The version 1 MSI has the same name as the version 2 MSI
When i try to do this i receive an error that another version of this product is allready installed and so on.

So the only way to uninstall the old version is using the Software dialog of Windows.
Now the question:
How can i configure my project so that all old versions can be uninstalled with the actual MSI Package?
For example i configure my new version 2 with an option to be deinstalled by version 3 for example.

I hope you understand what i want to do.
If not just ask me :D

thanks
c ya
Paddy from Germany
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

In order to do this you can use the automated upgrade feature. This feature works like this:
- you install a MSI on the target machine,
- you increase it's version and update some of it's files
- you answer "Yes" when prompted about changing the Product Code
- when running the updated MSI on the target machine the old installation will be removed and the updated package will be installed

Note that in order to use this feature you need to have the "Automatically upgrade older product versions" option set in the "Upgrades" page. In this page, in the "Upgrades" section, you can also specify other MSI installation packages that can be upgraded by your MSI.

You can read more about the "Upgrades" page here:
http://www.advancedinstaller.com/user-g ... rades.html

Regards,
Cosmin
Last edited by Cosmin on Mon Feb 18, 2008 8:37 am, edited 1 time in total.
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
m.gut
Posts: 4
Joined: Tue Oct 23, 2007 3:21 pm
Location: Germany BW
Contact: ICQ Website

uninstall all older versions with the current MSI

Hello Forum,
thanks for your fast answer.

We still got our problem :
We need to be able to uninstall all older versions unsing the current MSI version.

The reason is our automated software deployment tool. It is only able to deploy one special version (always the latetst one).

And this one should uninstall all existing versions, no matter how old it is.

Thanks for your thoughts.

Greetings
Paddy
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This can be done by using the "Upgrades" section in the "Upgrades" page. Here you can set the MSI installations (all previous versions) that can be upgraded by the new MSI.

You can read more about this here:
http://www.advancedinstaller.com/user-g ... rades.html
http://www.advancedinstaller.com/user-g ... -info.html
http://www.advancedinstaller.com/user-g ... ction.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
m.gut
Posts: 4
Joined: Tue Oct 23, 2007 3:21 pm
Location: Germany BW
Contact: ICQ Website

Hi,
i expiremented with the Upgrade feauture and i can uninstall an older Version during an installation of a new Version.

But i only want to uninstall the old Version with the actual MSI file without installing the new one.
Is this generally possible with an MSI installation?

Greetings
Paddy
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm not sure why you need to do this, but here are the steps:
- you create a new project
- in the "Product Details" page you check the "Do not register the product with Windows Installer" option
- in the "Upgrades" page you set the MSI installations that will be uninstalled by the new MSI
- in the "Registry" page you create a registry value (it doesn't matter where or what value it has)
- in the "Organization" page you select the component (there is only one)
- in the "General" section you set the "Condition" field to TEST

This package will uninstall the MSI installations set in the "Upgrades" page and it will install nothing because it has a single component (the registry key) that always has a false installation condition.

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

Return to “Common Problems”