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
- :
- How to Execute Custom Action during uninstall
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 21, 2012
04:50 AM
How to Execute Custom Action during uninstall
Hi!
I want to execute a JScript in a Custom Action during the uninstall of my application.
I've created a Custom Action with this parameter :
- Return processing : Ignores exit code
- Run during Patch Uninstall : Yes
- Install Exec Sequence : After SetARPINSTALLLOCATION
- Install Exec Condition : REMOVE = "ALL" OR MaintenanceMode="Remove"
But my script is never executed.
Have you ideas why and how to resolve my problem?
Thanks.
I want to execute a JScript in a Custom Action during the uninstall of my application.
I've created a Custom Action with this parameter :
- Return processing : Ignores exit code
- Run during Patch Uninstall : Yes
- Install Exec Sequence : After SetARPINSTALLLOCATION
- Install Exec Condition : REMOVE = "ALL" OR MaintenanceMode="Remove"
But my script is never executed.
Have you ideas why and how to resolve my problem?
Thanks.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 21, 2012
05:46 AM
Are you really sure it didn't run? Have you logged the installer and read it?
What you describe makes me suspect that it ran but through an error and didn't do anything and it's not obvious since you've told it to ignore the exit code.
Also, FWIW, there's a lot of things you need to know to write properly behaving custom actions:
http://blogs.msdn.com/b/robmen/archive/2004/05/20/136530.aspx
http://robmensching.com/blog/posts/2007/8/17/Zataoca-Custom-actions-are-generally-an-admission-of-failure
http://www.installsite.org/pages/en/isnews/200108/index.htm
What you describe makes me suspect that it ran but through an error and didn't do anything and it's not obvious since you've told it to ignore the exit code.
Also, FWIW, there's a lot of things you need to know to write properly behaving custom actions:
http://blogs.msdn.com/b/robmen/archive/2004/05/20/136530.aspx
http://robmensching.com/blog/posts/2007/8/17/Zataoca-Custom-actions-are-generally-an-admission-of-failure
http://www.installsite.org/pages/en/isnews/200108/index.htm
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)