PC Review


Reply
Thread Tools Rate Thread

Problem Running RunOnce Command After Setup

 
 
Chris Guimbellot
Guest
Posts: n/a
 
      1st Jul 2003
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


 
Reply With Quote
 
 
 
 
James Williams
Guest
Posts: n/a
 
      1st Jul 2003
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
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is there a maximum Command for Runonce =?Utf-8?B?TWFyaW8gU2F2YXJk?= Windows XP General 1 31st Aug 2006 10:26 PM
RunOnce entry without a command dialog grimgroups@gmail.com Microsoft Windows 2000 Deployment 0 10th May 2006 05:40 PM
restore command in HKLM runonce =?Utf-8?B?RGF2aWQgR293ZXI=?= Windows XP General 0 12th Oct 2004 11:33 PM
RunOnce running prematurely Rick M. Windows XP General 0 5th May 2004 07:00 PM
inserting Runonce key from a batch file run by Runonce command =?Utf-8?B?Uml0ZXNoIE1laHRh?= Microsoft Windows 2000 Deployment 1 3rd Dec 2003 02:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:02 AM.