PDA

View Full Version : Silent UnInstall



Edokyar
09-03-2003, 02:43 PM
My current UnInstall String in the registry looks like this:
RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{6074AF40-6B28-11D3-B973-ABD2116BE47B}\setup.exe" -uninst

How do I alter it so that the "UnInstall" runs in SILENT mode.

I've tried adding the "-a" and nothing seems to work.
I still get the "are you sure" dialog box.

Any suggestion ?

Thanks in advance.

magicclaw
09-11-2003, 09:09 AM
I have an installer that I wanted to be silent during uninstall as well. I didn't have a need for it to EVER show a screen, so rather than mess with the "silent" mode, I just altered the contents of the OnMaintUIBefore() to have only a single line:

ComponentRemoveAll();

This doesn't show a confirm dialog (because the confirm code is gone) and also doesn't cause IS to display the file transfer progress screen.

You will have to do a similar removal of code in the OnMaintUIAfter() function, removing any calls to display dialogs or messageboxes.


If you really want to use silent mode, try adding a statement such as this to your OnMaintUIBefore() and OnMaintUIAfter() functions:

if MODE != SILENTMODE then
// Display your dialogs or messageboxes
endif;