PDA

View Full Version : A need for silent uninstall



brianthegood
11-30-2008, 03:30 PM
Installscript project.

I'm trying to do a major upgrade.
I change the GUID and then do a search for the previous GUID and do an
UninstallApplication (see code below).

RegDBGetUninstCmdLine ( Old_GUID, svUninstCmdLine );
svUninstCmdLine = svUninstCmdLine + " /SMS /s";
nResult = UninstallApplication(Old_GUID,"",LAAW_OPTION_HIDDEN | LAAW_OPTION_SHOW_HOURGLASS | LAAW_OPTION_WAIT);

I want to do this silently but I get the dialogbox that asks

"Do you want to completely remove the selected application and all of its features?"

I checked and it is not coming from OnUninstall or OnMaintUIBefore.

How do I prevent this dialog from coming up?

CRCInfoSys
01-13-2009, 10:58 AM
I'm having this same issue. Have you been able to figure out a solution?

brianthegood
01-13-2009, 11:59 AM
I carpet bomb everything but I do it in code.

I delete the following:
- shortcuts
- directories that the code was installed in
- registry entries that I created for this installation
- registry entry that contains the inventory for the control panel add/remove
- specific Installshield folder for my GUID under Program Files\InstallShield Installation Information

Scorched earth policy brought to you by brianthegood

morrischou
11-24-2009, 11:44 PM
The message comes from
nResult = MessageBox( SdLoadString( IFX_MAINTUI_MSG ), MB_YESNO )
in the OnMaintUIBefore


:)
MOrris