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: InstallScript MSI "OnUninstall" BUG
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
Jan 15, 2009
05:27 AM
InstallScript MSI "OnUninstall" BUG
Unlike previous versions (e.g. InstallShield 12), the OnUninstall event handler cannot be overridden! With 'Enable Maintenance' set to NO, uninstalling from the Add/Remove panel does not call my OnUninstall:
[SIZE="2"]function OnUninstall()
string svResult, szCaption;
begin
svResult = SdLoadString(ISWI_IS5_UNINST_MSG);
szCaption = SdLoadString(IFX_ONMAINTUI_CAPTION);
Sprintf (svResult, svResult, @PRODUCT_NAME);
if (IDCANCEL = SprintfBox(MB_OKCANCEL, szCaption, svResult)) then
abort;
endif;
MessageBox("I am here!", INFORMATION);
Enable(STATUSEX);
FeatureRemoveAll();
........................[/SIZE]
The MessageBox is never called!......
[SIZE="2"]function OnUninstall()
string svResult, szCaption;
begin
svResult = SdLoadString(ISWI_IS5_UNINST_MSG);
szCaption = SdLoadString(IFX_ONMAINTUI_CAPTION);
Sprintf (svResult, svResult, @PRODUCT_NAME);
if (IDCANCEL = SprintfBox(MB_OKCANCEL, szCaption, svResult)) then
abort;
endif;
MessageBox("I am here!", INFORMATION);
Enable(STATUSEX);
FeatureRemoveAll();
........................[/SIZE]
The MessageBox is never called!......
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 20, 2009
07:24 AM
I am using IS2008 Premier and it's neither possible.
But I did some research a couple of weeks back on that matter and if I remember correctly you can call the Setup with the /x command and the OnUninstall() event will be triggered. Though, a really big con to that is that you have to do _all_ the cleanup by yourself.
I hope this helps a bit.
Greetings,
Dolving.
But I did some research a couple of weeks back on that matter and if I remember correctly you can call the Setup with the /x command and the OnUninstall() event will be triggered. Though, a really big con to that is that you have to do _all_ the cleanup by yourself.
I hope this helps a bit.
Greetings,
Dolving.