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 using Pre requisite
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 16, 2011
05:42 AM
Uninstall using Pre requisite
With our previous product we delivered SQL Express Management studio 2005 Express. Now with new product we would like to provide SQL 2008 Management studio 2008 Express.
Before installing new one i would like to uninstall previous one. From commandline foloowing command works perfect and i am able to uninstall SQL 2005 Express Management Studio Express.
Msiexec.exe /qb /x {20608BFA-6068-48FE-A410-400F2A124C27}
Now i would like to carry out this operation from Pre Requisites. I know pre requisites are used for Install and not uninstall, but has got some advantage over Custom Action.( i am going to include this uninstallation operation in a feature which has does carry out many other installations / upgrades etc.)
On pre requisite dialog i am expected to provide path for "Files To Include"
I tried [SystemFolder]\Msiexec.exe but its not working.
Do you have any clue how to set the path for msiexec.exe ?
Thanks in advance.
Amarjeet
Before installing new one i would like to uninstall previous one. From commandline foloowing command works perfect and i am able to uninstall SQL 2005 Express Management Studio Express.
Msiexec.exe /qb /x {20608BFA-6068-48FE-A410-400F2A124C27}
Now i would like to carry out this operation from Pre Requisites. I know pre requisites are used for Install and not uninstall, but has got some advantage over Custom Action.( i am going to include this uninstallation operation in a feature which has does carry out many other installations / upgrades etc.)
On pre requisite dialog i am expected to provide path for "Files To Include"
I tried [SystemFolder]\Msiexec.exe but its not working.
Do you have any clue how to set the path for msiexec.exe ?
Thanks in advance.
Amarjeet
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 21, 2011
04:59 PM
pre-requisites are meant to be used for files you include with the installation, not refer to files already expected to be on the target system. If you're calling a microsoft component such as msiexec, you don't want to be including this exe with your installation... I don't think these can be freely re-distributed.
There's another approach I can suggest - it may be more work than you wanted for this, but how about creating a light program (compiled to a .exe) which calls the msiexec command? We use this for handling uninstallation of all previous versions, so there is some add'l logic and many GUIDs to look for, so it makes more sense in our case to have a dedicated program for this. Still, it would do the trick here.
There's another approach I can suggest - it may be more work than you wanted for this, but how about creating a light program (compiled to a .exe) which calls the msiexec command? We use this for handling uninstallation of all previous versions, so there is some add'l logic and many GUIDs to look for, so it makes more sense in our case to have a dedicated program for this. Still, it would do the trick here.