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
- :
- 'Uninstall' event not getting 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
‎Sep 17, 2007
07:47 AM
Unable to trigger 'OnUninstall' event.
Hi,
I m using Installshield 2008. OnUninstall event is not getting called when I 'm trying to uninstall the product through startmenu. can anyone help me to sort it out.
I m using Installshield 2008. OnUninstall event is not getting called when I 'm trying to uninstall the product through startmenu. can anyone help me to sort it out.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 17, 2007
09:28 AM
Are you uninstalling from a shortcut? If so, what are the shortcut properties (specifically the command line)? What type of project (InstallScript or InstallScript MSI)?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 19, 2007
01:07 AM
yes i m trying to uninstall from startcut(StartMenu Programs Folder) this is the commandline parameter i m using
"szCommand = UNINSTALL_STRING + " /M" + PRODUCT_GUID;"
It's an "InstallScript MSI" Project
Thanks
"szCommand = UNINSTALL_STRING + " /M" + PRODUCT_GUID;"
It's an "InstallScript MSI" Project
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 23, 2007
11:08 AM
I haven't tried it myself, but the help topic for OnUninstall states:
As an aside, the help topic "Creating Uninstallation Shortcuts for InstallScript and InstallScript MSI Projects" contains information that might be of interest.
This event is triggered only if the Enable Maintenance setting in the Project Properties area of the General Information view is set to No. If this setting is set to Yes, the OnMaintUIBefore and OnMaintUIAfter event handler functions are launched.Does your project have that setting?
As an aside, the help topic "Creating Uninstallation Shortcuts for InstallScript and InstallScript MSI Projects" contains information that might be of interest.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 24, 2007
06:13 PM
I am having the exact same issue. And yes I did set the Maint flag to "No".
Anyone know of a workaround for this bug?
(How did this one get through QA?)
Anyone know of a workaround for this bug?
(How did this one get through QA?)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2007
06:49 PM
I found a work-around (I think). First, make sure the Maint flag is "Yes" which will enable the OnMaintUIAfter event. You can check to see if you are in uninstall mode from there. Hope that helps someone out there. Here is a code snip:
function OnMaintUIAfter()
STRING szTitle, szMsg1, szMsg2, szOption1, szOption2;
NUMBER bOpt1, bOpt2;
begin
....
if( REMOVEALLMODE ) then
function OnMaintUIAfter()
STRING szTitle, szMsg1, szMsg2, szOption1, szOption2;
NUMBER bOpt1, bOpt2;
begin
....
if( REMOVEALLMODE ) then