cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
GStrait
Level 4

OnUninstall not being called

I have an InstallShield MSI project. It appears the OnUninstall function in my script is not bieng called when I uninstall my application from Add/Remove Programs.

OK, I see that OnMaintUIBefore is called upon Add/Remove Programs. So, I edited my script to call OnUninstall from OnMaintUIBefore. OnUninstall is being entered and everything uninstalls as expected but I see this error message at the end of uninstall...

Error: -1605 This action is only valid for products that are currently installed.


Can anyone tell me how to get rid of that error? I think it has to do with a REINSTALLMODE setting. But I can not figure out how to set REINSTALLMODE.

Thanks in advance.
Labels (1)
0 Kudos
(1) Reply
kcarrasco
Level 3

Hello, did you ever get this working with your project. I'm having a similar issue where I cannot get OnUninstall to work ONLY when the user tries to launch the uninstaller through the add/remove programs.

Thanks
0 Kudos