Article ID: 114606
Article Last Modified on 10/29/2003
SetRestartDir DEST$
The specified directory does not need to exist. It will be created
if necessary.
if RestartListEmpty ()=0 then
'' The following two lines must go on one line.
MessageBox hwndFrame (), "Windows will now be exited and
restarted.", "Sample Setup Script", MB_OK+MB_ICONINFORMATION
eer:
i%=ExitExecRestart ()
'' The following three lines must go on one line.
MessageBox hwndFrame (), "Windows cannot be restared because
MS-DOS-based applications are active. Close all MS-DOS-based
applications, and then click OK.", "Sample Setup Script",
MB_OK+MB_ICONSTOP
goto eer
end if
NOTE: In order to use the MessageBox() function you must add the
following lines at the beginning of your setup script:
const MB_ICONINFORMATION = 64
'' The following two lines must go on one line.
declare sub MessageBox lib "user.exe" (hwnd%, message$,
title$, options%)
[files]
_mssetup.ex_ = _mssetup.exe
if you did not mark it as compressed,
[files]
_mssetup.exe = _mssetup.exeAdditional query words: 3.10 3.50 setup toolkit mssetup
Keywords: KB114606