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
- :
- Run exe w/ custom action only during uninstall (MSI Project)
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
‎Mar 18, 2009
06:54 PM
Run exe w/ custom action only during uninstall (MSI Project)
Hi, this is killing me. Pretty much a nube at installshield. I have created an MSI installer that launches an exe during installation to do one thing, I want to lunch during uninstall (with different arguments) to do another.
My custom action that runs during install works fine, but my custom action that needs to run during a remove all, never gets executed.
I found this:
>Use Action Conditions.
>To run an action during installation only, use the condition Not Installed.
>To run an action during a complete uninstallation only, use the condition >REMOVE="ALL" (which is available after the InstallValidate action).
However this is not working for me. I have the condition set to REMOVE="ALL" and I have it set to execute after InstallInitialize.
Another note: the exe I need to call is one of the files that I install during installation.
Any help? Thanks
My custom action that runs during install works fine, but my custom action that needs to run during a remove all, never gets executed.
I found this:
>Use Action Conditions.
>To run an action during installation only, use the condition Not Installed.
>To run an action during a complete uninstallation only, use the condition >REMOVE="ALL" (which is available after the InstallValidate action).
However this is not working for me. I have the condition set to REMOVE="ALL" and I have it set to execute after InstallInitialize.
Another note: the exe I need to call is one of the files that I install during installation.
Any help? Thanks
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 23, 2009
12:52 PM
Thanks, rgregory09 - I have precisely the same question, but probably would not have articulated it nearly as well.
I'm actively working on this, and if I learn anything useful, I will share that here. If you already have this figured out, any knowledge you can share is very much appreciated.
Cheers
I'm actively working on this, and if I learn anything useful, I will share that here. If you already have this figured out, any knowledge you can share is very much appreciated.
Cheers
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 24, 2009
10:11 AM
Have you created a log file? That may help you determine why the CA isn't running.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 24, 2009
01:02 PM
Thanks - I'm still a bit behind rgregory but will make sure to create a log file when it comes time to start testing our setup.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 06, 2009
08:18 AM
🙂
I followed the instructions that rgregory pasted, and it worked for me - For what it's worth, here's what I have as my settings for the ca.
[FONT="Courier New"]
Executable Filekey: MyApp.exe
Command line: /[arguments for MyApp]
Return Processing: Synchronous
Execution Scheduling: Always Execute
Install UI seq: Absent
Install Exec Seq: After InstallInitialize
Install Exec Condition: REMOVE="ALL"
(The rest of the "sequences" are set as "Absent")
Run During patch uninstall: No
[/FONT]
hope this helps (and thanks for your post)
I followed the instructions that rgregory pasted, and it worked for me - For what it's worth, here's what I have as my settings for the ca.
[FONT="Courier New"]
Executable Filekey: MyApp.exe
Command line: /[arguments for MyApp]
Return Processing: Synchronous
Execution Scheduling: Always Execute
Install UI seq: Absent
Install Exec Seq: After InstallInitialize
Install Exec Condition: REMOVE="ALL"
(The rest of the "sequences" are set as "Absent")
Run During patch uninstall: No
[/FONT]
hope this helps (and thanks for your post)