cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Saruman
Pilgrim

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!......
Labels (1)
0 Kudos
1 Reply
dolving
Pilgrim

Re: InstallScript MSI "OnUninstall" BUG

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