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
- :
- Basic MSI Project - Prerequisite Question
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
‎Dec 11, 2009
08:27 PM
Basic MSI Project - Prerequisite Question
Hello, I have a basic MSI project in which I would like to uninstall a given product using msiexec.exe /x {ProductCode}. However, it appears that you must actually add a file to the Files to Include tab in order to run an executable. I don't really want to add the msiexec.exe to a prerequisite, and would like to know how to do what I am asking if it can be done.
Thanks in advance!
Tim
Thanks in advance!
Tim
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 14, 2009
10:55 AM
I don't think it can quite be done the way you're doing it. As a total hack, you could theoretically create a stub .msi which matched the package and product code of that you wanted to uninstall, and run it with REMOVE=ALL /qb (or /qn) as its command line. But this is enough of a hack I can't recommend it.
The proper way to do this with our architecture would be to create a helper exe in e.g. C++, or perhaps even just a vbs file, which will invoke the msiexec command line you want when it is run. An alternate non-prerequisite approach may be to use a Major Upgrade item to remove this alternate product by its upgrade code and version. If this satisfies your needs, I would probably prefer it to the other approaches.
The proper way to do this with our architecture would be to create a helper exe in e.g. C++, or perhaps even just a vbs file, which will invoke the msiexec command line you want when it is run. An alternate non-prerequisite approach may be to use a Major Upgrade item to remove this alternate product by its upgrade code and version. If this satisfies your needs, I would probably prefer it to the other approaches.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 14, 2009
01:55 PM
Thanks for the input Michael!
Tim
Tim