This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Uninstall InstallAware Setup
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 19, 2014
01:40 AM
Uninstall InstallAware Setup
Hello,
I switched from InstallAware (back) to InstallShield. Now I have the problem that I am not able to uninstall the old version (generated with IA) with my new InstallShield Installation.
Since it is not possible to run one .msi within another I have no idea how to solve this problem.
I was able to uninstall the InstallAware setup during User Interface sequence but if I run the setup full silent then the uninstallation is not executed.
Also a prerequisite is not executed in silent mode, right? Or could a feature prerequisite be a solution? Any other suggestions?
I hope I can solve this without the help of InstallAware anyhow...
I switched from InstallAware (back) to InstallShield. Now I have the problem that I am not able to uninstall the old version (generated with IA) with my new InstallShield Installation.
Since it is not possible to run one .msi within another I have no idea how to solve this problem.
I was able to uninstall the InstallAware setup during User Interface sequence but if I run the setup full silent then the uninstallation is not executed.
Also a prerequisite is not executed in silent mode, right? Or could a feature prerequisite be a solution? Any other suggestions?
I hope I can solve this without the help of InstallAware anyhow...
(9) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 19, 2014
06:35 AM
Prerequisite should execute during the silent mode. What I would suggest is to create a batch file which would uninstall the older version before the actual MSI runs. This way we can avoid the scene where the two MSI wont run together.
For example:
Create a batch file which would execute the below command line
msiexec.exe /x {Product Code}
Create a new prerequisite which would run this batch file which in turn will uninstall the older version before Install Shield would initialize the MSI engine.
Hope this helps or provides some help to you.
For example:
Create a batch file which would execute the below command line
msiexec.exe /x {Product Code}
Create a new prerequisite which would run this batch file which in turn will uninstall the older version before Install Shield would initialize the MSI engine.
Hope this helps or provides some help to you.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 19, 2014
07:17 AM
Thank you Suhas Hegde,
the approach is good but not perfect, since I do not know the productcode because more than one version of this product was already released. I have to determine the ProductCode first.
I solved it this way:
I wrote a program that searches the registry for the Uninstallstring of the application and executes it.
I sequenced the prerequisite with this program as feature prererquisite and it semms to work - but I am still testing.
Maybe this could be the solution for all my InstallAware to InstallShield upgrade scenarios.
the approach is good but not perfect, since I do not know the productcode because more than one version of this product was already released. I have to determine the ProductCode first.
I solved it this way:
I wrote a program that searches the registry for the Uninstallstring of the application and executes it.
I sequenced the prerequisite with this program as feature prererquisite and it semms to work - but I am still testing.
Maybe this could be the solution for all my InstallAware to InstallShield upgrade scenarios.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 19, 2014
08:31 AM
After some more testing it seems that it is not really possible...anyhow.
So I tried a different approach:
Entering a new Upgrade item for the IA setup Upgrade code. In IA it is called Upgrades Product with product code: {xxxx}
This code"xxxx" I entered as Upgrade code in "Upgrade Item" and IS really finds the IA setup as related! 🙂
BUT: it is also not working since the MSI could not be found within "InstallSource" Folder. Error 1706.
Also your approach is not possible:
If you try this with an IA generated setup then you get the "insert Disk" Dialog where you should browser to the .msi file
So my conclusion for today:
Uninstall an InstallAware setup with InstallShield
1. via UpgradeItem => Not possible
2. via msiexec.exe /x {Product Code} => Not possible
3. via Prerequisite => Not possible, but still a glimmer of hope
So I tried a different approach:
Entering a new Upgrade item for the IA setup Upgrade code. In IA it is called Upgrades Product with product code: {xxxx}
This code"xxxx" I entered as Upgrade code in "Upgrade Item" and IS really finds the IA setup as related! 🙂
BUT: it is also not working since the MSI could not be found within "InstallSource" Folder. Error 1706.
Also your approach is not possible:
msiexec.exe /x {Product Code}
If you try this with an IA generated setup then you get the "insert Disk" Dialog where you should browser to the .msi file
So my conclusion for today:
Uninstall an InstallAware setup with InstallShield
1. via UpgradeItem => Not possible
2. via msiexec.exe /x {Product Code} => Not possible
3. via Prerequisite => Not possible, but still a glimmer of hope
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 21, 2014
07:41 AM
Well. There might be one more try. Going out of the box. Have you tried WMIC to uninstall an application?
something like the below command line
wmic product where "Name like '%ABCD%'" call uninstall
I have tried this out.It works for regular installers(windows Installer and Installshield).I am not sure how it would react to other Installers.
May be we can use this as a prerequisite?
Hope this helps.
something like the below command line
wmic product where "Name like '%ABCD%'" call uninstall
I have tried this out.It works for regular installers(windows Installer and Installshield).I am not sure how it would react to other Installers.
May be we can use this as a prerequisite?
Hope this helps.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 24, 2014
08:28 AM
Thank you Suhas Hegde,
I tried this approach and it is not working. I don't know why, here is the cmd output:
C:\Users\AHT>wmic product where "Name like '%EGR-Matz%'" call uninstall
(\\KLONDIKE\ROOT\CIMV2:Win32_Product.IdentifyingNumber="{210D8279-DC76-4A47-A6C7
-04CAA3F30DEC}",Name="EGR-MatzGenerator",Version="1.1.0.100")->Uninstall() wird
ausgeführt
Methode wurde ausgeführt.
Ausgabeparameter:
instance of __PARAMETERS
{
ReturnValue = 1603;
};
Sorry in german 😉
There is no Logfile created...
I tried this approach and it is not working. I don't know why, here is the cmd output:
C:\Users\AHT>wmic product where "Name like '%EGR-Matz%'" call uninstall
(\\KLONDIKE\ROOT\CIMV2:Win32_Product.IdentifyingNumber="{210D8279-DC76-4A47-A6C7
-04CAA3F30DEC}",Name="EGR-MatzGenerator",Version="1.1.0.100")->Uninstall() wird
ausgeführt
Methode wurde ausgeführt.
Ausgabeparameter:
instance of __PARAMETERS
{
ReturnValue = 1603;
};
Sorry in german 😉
There is no Logfile created...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 25, 2014
04:10 AM
It looks like there is some issue when uninstalling since it is throwing 1603. Are you able to uninstall it manually?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 25, 2014
04:21 AM
Yes I am able to uninstall it if I call the UninstallString manually. Then the installation is unstalled in interactive mode. But since there is no Logfile created I am not able to find out what is causing the error 1603.
This is the uninstall string:
C:\ProgramData\{156FCD6A-BD76-4716-8E81-88EAC10346AA}\EGR-MatzGenerator_installer.exe
Maybe the message box at the beginning of the uninstallation ("Are you sure you want to uninstall") is causing the error because it is not answered. Is it possible somehow to add paramters to the wmic command? For instance I think it would uninstall successfull if I would be able to pass the silent parameter (/s).
This is the uninstall string:
C:\ProgramData\{156FCD6A-BD76-4716-8E81-88EAC10346AA}\EGR-MatzGenerator_installer.exe
Maybe the message box at the beginning of the uninstallation ("Are you sure you want to uninstall") is causing the error because it is not answered. Is it possible somehow to add paramters to the wmic command? For instance I think it would uninstall successfull if I would be able to pass the silent parameter (/s).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 25, 2014
07:30 AM
That shouldn't be a problem when comes to uninstalling with WMIC. WMIC will override such parameters when uninstalling. Not sure what might be causing the problem. Maybe you can run a batch file which will trigger the uninstall string before the actual installation begins?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 07, 2014
06:18 AM
I got it working with a special .exe program running as prerequisite. The .exe detects and calls the UninstallString in the registry.