How to Make a exe file run when user uninstall the application using InstallShield

962 views Asked by At

I am New to InstallShield what i am trying to do is when the user Uninstall my application i want to run an exe to delete some file created by my application and uninstall a window service. I tried creating a custom action with condition REMOVE="ALL". Although i have no idea what this condition do.

Its so nice of you if anyone can provide some tutorial for InstallShield

2

There are 2 answers

3
Christopher Painter On BEST ANSWER

If you are using Windows Installer's ServiceInstall, ServiceControl and RemoveFile tables (shown in InstallShield via the component advanced settings view ) you shouldn't need any custom actions.

2
Shahzad On

If your installer installs a Windows service, it will automatically remove the service on uninstallation. Also, it will remove all files it created during installation. If you are willing to perform any other action or delete some other files, you need to invoke a Custom Action after uninstallation completes. That custom action can be an EXE file as you mentioned and you just need to configure the custom action and point it to the specific file to run. You can refer How to pass parameters and invoke custom action. Ignore the part to pass parameters. You won't need that. But it will give you an idea on how to configure a custom action or EXE to run during installation/uninstallation.