PDA

View Full Version : Suppress Reboot Dialog



JMcGinnis
02-05-2010, 04:02 PM
I have InstallShield 2008 Professional. I use to run install on Windows 2003 Server R2 x64. There are some drivers to be installed. I have InstallScript code as follows as:

if (SYSINFO.bIsWow64) then
Disable (WOW64FSREDIRECTION);
endif;

szFileName = System64Folder ^ "rundll32.exe";
szCmdLine=System64Folder ^ "setupapi.dll,InstallHinfSection " + svSection + " 128 "+svInf;
LongPathToQuote (szCmdLine, FALSE);
nLaunchResult=LaunchAppAndWait(szFileName, szCmdLine,WAIT);

if (nLaunchResult < 0) then
MessageBox( "LaunchAppAndWait returns: " + FormatMessage( nLaunchResult ), WARNING);
endif;
Log ("CMDLINE " + szCmdLine);
Log("Command is: rundll32.exe SetupApi.dll,InstallHinfSection "+svSection+" 128 "+svInf);

if (SYSINFO.bIsWow64) then
Enable(WOW64FSREDIRECTION);
endif;

The driver install works fine, but the system prompted the reboot dialog even though the reboot mode is 128. My co-worker will have to call Microsoft for some support. DO you have any suggestions? :confused: