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
- :
- Re: OnUninstall not being called
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
Oct 09, 2009
10:55 AM
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.
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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 01, 2010
09:51 PM
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
Thanks