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

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.
Labels (1)
0 Kudos
(1) Reply
Christopher_Pai
Level 16

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