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
- :
- Uninstalling an Executable
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
‎Jan 12, 2009
04:29 AM
Uninstalling an Executable
Hi,
I have created a Basic MSI Project and it works fine.
Now i want to execute an executable MyApp.exe with command parameters "-i" i-e. MyApp.exe -i. For this i studied Launching Executable Files from help and created a custom action using Custom Action Wizard. It executes fine.
But at uninstallation, the uninstallation fails as the application needs "-u" parameter to uninstall i-e. MyApp.exe -u. I am not getting it how to handle it.
If anyone can help me in this matter.
Thanks
Irfan Zaidi
I have created a Basic MSI Project and it works fine.
Now i want to execute an executable MyApp.exe with command parameters "-i" i-e. MyApp.exe -i. For this i studied Launching Executable Files from help and created a custom action using Custom Action Wizard. It executes fine.
But at uninstallation, the uninstallation fails as the application needs "-u" parameter to uninstall i-e. MyApp.exe -u. I am not getting it how to handle it.
If anyone can help me in this matter.
Thanks
Irfan Zaidi
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 12, 2009
04:59 AM
Create 2 Custom Actions, one for Install, one for Un-install and pass the arguments accordingly. Put condition on them, for the first one NOT REMOVE for example; for the 2nd one REMOVE.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 12, 2009
02:57 PM
Quite right, the condition Not Installed detects a first-time installation, and REMOVE="ALL" (after InstallValidate) detects complete uninstallation.
Please see, for example, the help topic "Conditioning Actions to Run During Removal".
Please see, for example, the help topic "Conditioning Actions to Run During Removal".