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
- :
- uninstall before install a package
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 07, 2011
05:31 PM
uninstall before install a package
I want to create a custom action that uninstall a previously install package before a new installation begins. I don't want to do it from the major update feature of MSI. I want to run the command:
msiexec.exe /uninstall {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
in a custom action before the MSI finds out that the package is already installed and drop my installation.
I tried Before System Search which is the earliest action you can perform but this happened after the MSI finds that the package is already installed.
Any suggestion?
Thanks in advance,
Alberto
msiexec.exe /uninstall {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
in a custom action before the MSI finds out that the package is already installed and drop my installation.
I tried Before System Search which is the earliest action you can perform but this happened after the MSI finds that the package is already installed.
Any suggestion?
Thanks in advance,
Alberto
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 27, 2012
01:17 AM
the custom actions even if you sequence them before the first action they will not get executed immediately but they will be recorded and then executed so the custom actions cant be used to uninstall before the script is generated...so what ever may be sequence the product search will be done first