A software setup or installation program used in the SMS environment must support unattended installation and deinstallation in the following ways:
Your application must not show any dialog boxes or windows during installation/deinstallation or maintenance. This is required for completely unattended installation/deinstallation using the Package Command Manager.
In order to set up multiple programs before a restart, the PCM prevents the restart, and then performs an ExitWindowsExec when the user elects to do so.
To coordinate multiple unattended setups, concatenate the batch file of each setup program to the file _MSSETUP.BAT. If _MSSETUP.BAT does not exist, then rename the batch file of the first setup program to _MSSETUP.BAT and concatenate the batch files of additional setup programs to that file. Next, create an _MSRSTRT.EXE program to be executed by the PCM when it calls ExitWindowsExec. This MS-DOS program (_MSRSTRT.EXE) must execute the batch file _MSSETUP.BAT and then delete the batch file and itself.
After the installations are complete, if the PCM detects both _MSSETUP.BAT and _MSRSTRT.EXE in the Windows directory, it displays a dialog box prompting the user to exit Windows and restart. This dialog box does not interfere with subsequent installations.