SMSINST: How to Create a Silent Uninstall for SMS Installer ProgramID: Q216826
|
In Systems Management Server 2.0, you can uninstall a program when it is no longer advertised.
In SMS Installer programs created with uninstall support, the uninstall process brings up a dialog box that prompts the user to select an Automatic or a Custom uninstall. In some cases, it might be necessary to have a silent uninstall that does not bring up any dialog boxes.
You can create a silent uninstall in one of the following ways:
Method 1
Modify the UNINSTAL.IPF before compiling your program. SMS Installer includes UNINSTAL.IPF (located in Program files\Microsoft SMS Installer\Include) when uninstall support is selected. You can modify this file with the script editor view of SMS Installer. Modify the registry statement highlighted below with '=> <='
If APPTITLE Not Equal "" then
If System has Windows 95 Shell
Registry Key Software\Microsoft\.....
=> Registry Key Software\Microsoft\...... <=
Else
.
.
End Block
End Block
"%UNINSTALL_PATH%" "%_LOGFILE_PATH_%" "%APPTITLE% Uninstall"
"%UNINSTALL_PATH%" /S "%_LOGFILE_PATH_%" "%APPTITLE% Uninstall"
Additional query words: prodsms installer silent quiet
Keywords : kbSMS200 kbSMS120 kbAdvertisement kbPackage kbSMSInst kbSoftwareDist
Version : WINDOWS:2.0; winnt:2.0
Platform : WINDOWS winnt
Issue type : kbhowto
Last Reviewed: March 17, 1999