twilight250
Posts: 7
Joined: Wed Mar 19, 2008 9:58 pm

How do I run an uninstall .msi ?

Hi all, I have a software (lets call it XYZ) installed on my machine, it has registries, Program Files folders, ODBC drivers

My company needs to run an .msi uninstaller company-wide to remove this software on all the user's machines.

how do i create an .msi that does that? I havent seen any options for uninstall within the AI6.2 (enterprise)

I see that there is a 'Custom Actions', but how do I set this up, do I have to provide the installation folders for XYZ, registries, etc ?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How do I run an uninstall .msi ?

Hi,

In order to create a MSI which uninstalls other MSI packages, you can follow these 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 "1=2" (a condition which will always be false)

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.

However, if the installation you want to remove are not MSI-based (they are not created by using the Windows Installer technology) then you can uninstall it only by using a custom action. You can read more about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html

This custom action can call the Uninstaller of the old installation (if it has one), or it can search an remove all the resources of the installation (I'm not sure how exactly this custom action would look like, but I'm sure it can be done).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
twilight250
Posts: 7
Joined: Wed Mar 19, 2008 9:58 pm

Re: How do I run an uninstall .msi ?

thanks for the explanation, 1 problem, I dont see the "General" page, with a condition window.

where in the AI6.3 is this section? I'm running AI6.3 Enterprise, running an Enterprise new project
twilight250
Posts: 7
Joined: Wed Mar 19, 2008 9:58 pm

Re: How do I run an uninstall .msi ?

also 1 more question, this software, XYZ was originally installed via an .exe InstallSheild installer, not an .msi

Can I select the .exe install file, and not the .msi in the Upgrades page?

Its not letting me. Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How do I run an uninstall .msi ?

Hi,
I dont see the "General" page, with a condition window.
When you select a component in "Organization" you will see the "Component Properties" page. In this page the first section is the "General' section and it contains the "GUID" of the component, the "Do not register this component with Windows Installer" option, the directory of the component and the condition used by the component. In order to set a condition for the component you can click the "..." button in the "Condition" field.
this software, XYZ was originally installed via an .exe InstallSheild installer, not an .msi
Can I select the .exe install file, and not the .msi in the Upgrades page?
I'm afraid that you can upgrade only Windows Installer packages (MSI). Therefore you can upgrade the application only by using a custom action. For example, you can use a "Launch file or open URL" custom action to launch the Uninstall file of the application (if it has one).

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

Return to “Common Problems”