Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Winbatch Script during Windows NT Unattended Setup

Keywords:     OEMSETUP.INF

Question:

Is there a way to run a winbatch script during a unattended NT installation? I'm trying to wait for the network adapter screen to come up during GUI mode and send keystroke s to answer the screen prompt. Here is the script:
        WinWaitChild("Windows NT Workstation Setup", "DEC DECchip", -1")
        SendKeyChild("Windows NT Workstation Setup", "DEC DECchip", "{ENTER}")
I tried adding the winbatch file as a detached program, problem is this runs after GUI mode(which is passed the network adapter screen). The NT resource kit is very helpful but no with the type of problem I have.

Answer:

If the network card you are installing has the OEMSETUP.INF file designed to run UNATTENDED, you can specify the login in the UNATTEND.TXT file (see Microsoft's Windows NT workstation deployment guide).

However, if you want to run a WBT after the GUI setup, you can certainly do so. In the CMDLINES.TXT file ($OEM$), connect to the network and run the executable...

	[Commands]
	".\regedit /s AdminFix.reg"
	
	; Apply Admin Fixes
	".\net use F: \\server\share
        /user:TG\userid password /persistent:no"
	"F:\Loadsets\Exe\TGISF001.EXE"

	; Appy Service Pak
	"F:\Install\Winnts\SP3\UPDATE.EXE -U -N -Z"

Article ID:   W13415
Filename:   Winbatch for Unattended NT Installation.txt