PC Review
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 Setup
Problem Running RunOnce Command After Setup
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 Setup
Problem Running RunOnce Command After Setup
![]() |
Problem Running RunOnce Command After Setup |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hello,
I am using an unattend.txt file to install Win2K from a network share. All things work okay until after the install when the GUIRunOnce command runs and begins to install the final applications, etc. The unattend.txt file has the following GUIRunOnce commands: [GuiRunOnce] Command0="\\HI-SERVER\win2000\i386\runonce.bat" Command1="\\HI-SERVER\win2000\i386\winnt32 /cmdcons /unattend" The runonce.bat file follows: @echo off \\HI-SERVER\MpClients\Win2K\netsetupWin2K.exe -c client -a upgrade -i \\HI-SERVER\MpClients\Win2K\netsrdr.inf -q \\HI-SERVER\ClientApps5\Acrobat5\SETUP.EXE -S net time /setsntp:HI-SERVER \\HI-SERVER\FaxClients\setup.exe /wait /V"PRINTER_NAME=\\HI-SERVER\SharedFax APPLAUNCHER=TRUE ALLUSERS=1 REBOOT=ReallySupress /qb \\HI-SERVER\mspclnt\setup /wait /v"reboot=reallysuppress /qb" \\Hi-server\ClientApps5\IE6Test\ie6setup.exe /Q:A All applications (Shared Fax, Acrobat Reader, Firewall Client, net time, cmdcons) install correctly, but then when Internet Explorer installs, after a few minutes, I receive the following message: Program Error explorer.exe has generated errors and will be closed by windows. You will need to restart the program. An error log has been created. Basically, after I click OK out of this message, the screen goes blank (except for the blue background). When I CTRL + ALT + DEL out and restart the system, everything goes well and Internet Explorer finishes configuring the final settings as normal. If I were to pull out the last line in the runonce.bat file (the one that installs IE), then everything goes fine. When I go to the error log, I get the following message: The application, explorer.exe, generated an application error The error occurred on 07/01/2003 @ 09:58:11.086 The exception generated was c0000005 at address 711885CA (Ordinal134) This message doesn't seem to tell me anything. I think it may have something to do with the various switches between the programs listed in the GUIRunOnce section and the runonce.bat file, but not sure. Any ideas would be most appreciated. Thanks, Chris |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hey Chris. This is probably a function of the bastardized environment
that is GUI-mode setup. If IE Setup is looking to use parts of the OS that aren't initialized during GUISetup, you would probably see these errors. Since the /q flag makes the installer do its thing silently, you may just want to add a reg key (either by merging with regedit /s or by injecting with REG.EXE from the ResKit) to HKLM\Software\Microsoft\Windows\CurrentVersion\Runonce pointing to the IE install. That way, the software will be installed silently (which you want) and with the OS fully initialized (which it wants). If you're really determined not to have to touch the box during install, set it up to auto-login once and do it then. I'm sure the installer has a flag that will force a reboot after it finishes. IMHO, installing IE in GUIRunOnce is less than ideal. $0.02 (j) James Chris Guimbellot wrote: > Hello, > > I am using an unattend.txt file to install Win2K from a network share. All > things work okay until after the install when the GUIRunOnce command runs > and begins to install the final applications, etc. The unattend.txt file has > the following GUIRunOnce commands: > > [GuiRunOnce] > Command0="\\HI-SERVER\win2000\i386\runonce.bat" > Command1="\\HI-SERVER\win2000\i386\winnt32 /cmdcons /unattend" > > The runonce.bat file follows: > > @echo off > > \\HI-SERVER\MpClients\Win2K\netsetupWin2K.exe -c client -a upgrade -i > \\HI-SERVER\MpClients\Win2K\netsrdr.inf -q > \\HI-SERVER\ClientApps5\Acrobat5\SETUP.EXE -S > net time /setsntp:HI-SERVER > \\HI-SERVER\FaxClients\setup.exe /wait > /V"PRINTER_NAME=\\HI-SERVER\SharedFax APPLAUNCHER=TRUE ALLUSERS=1 > REBOOT=ReallySupress /qb > \\HI-SERVER\mspclnt\setup /wait /v"reboot=reallysuppress /qb" > \\Hi-server\ClientApps5\IE6Test\ie6setup.exe /Q:A > > All applications (Shared Fax, Acrobat Reader, Firewall Client, net time, > cmdcons) install correctly, but then when Internet Explorer installs, after > a few minutes, I receive the following message: > > Program Error > explorer.exe has generated errors and will be closed by windows. You > will need to restart the program. > > An error log has been created. > > Basically, after I click OK out of this message, the screen goes blank > (except for the blue background). When I CTRL + ALT + DEL out and restart > the system, everything goes well and Internet Explorer finishes configuring > the final settings as normal. If I were to pull out the last line in the > runonce.bat file (the one that installs IE), then everything goes fine. > > When I go to the error log, I get the following message: > > The application, explorer.exe, generated an application error The error > occurred on 07/01/2003 @ 09:58:11.086 The exception generated was c0000005 > at address 711885CA (Ordinal134) > > This message doesn't seem to tell me anything. I think it may have something > to do with the various switches between the programs listed in the > GUIRunOnce section and the runonce.bat file, but not sure. > > Any ideas would be most appreciated. Thanks, > > Chris > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

