cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
irfanzaidi
Level 2

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
Labels (1)
0 Kudos
(2) Replies
JoderCoder
Level 8

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.
0 Kudos
RobertDickau
Flexera Alumni

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".
0 Kudos