PDA

View Full Version : Customizing uninstall - proper UninstallString key format?



mgrose
04-30-2002, 09:12 AM
I am trying to use a custom DLL for the uninstall of my product. I have been trying to use the _ConfigureUninstInfo routine that I downloaded from the InstallShield site (by #including config.rul) but have not gotten it to work. So, I have used Regedit to modify the UninstallString manually -- and no matter the format I have tried, the Uninstall aborts with the error:
"Internal error, unable to load or call external DLL".

What is the exact format for this string? (The Help text disagrees with the description in the whitepaper I downloaded.) Anybody have a real life example of using a custom DLL? How can I tell from this error whether the problem is in the "load" or the "call" to the DLL?

Any help appreciated.

Michael Rose
Unisys Corp

Uriel Volovich
05-01-2002, 08:15 AM
I'm using by custom dll and it's code that create uninstall string:

LongPathToQuote ( svLogFile, TRUE );
szUninstString = UNINST + " -f" + svLogFile + " -c\"" + TARGETDIR + "\\UNINST.dll\"" ;//my custom dll reside in the TARGETDIR
szKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" + @UNINST_KEY;
RegDBSetDefaultRoot ( HKEY_LOCAL_MACHINE );
RegDBSetKeyValueEx(szKey, "UninstallString", REGDB_STRING, szUninstString, -1);

And check with "Dependency Walker" that names of the dll function is correct (i.e. 'UninstInitialize'/'UninstUnInitialize').

Thanks

mgrose
05-03-2002, 05:33 PM
Thanks Uriel....

I'll try your approach and skip use of _ConfigureUninstInfo.

(I have to put this on hold for a week perhaps...So I'll reply when I've tried your approach.)

Gracia...and hope things improve for all citizens of Jerusalem.

Michael Rose
-Unisys Corp.