any way to attach a bat file to windows installation?
Moderator: DosItHelp
any way to attach a bat file to windows installation?
I want to automate some the installation of some drivers/programs i use on a daily basis to a windows iso. so lets so i reinstall windows, i want this batch file to run after the install is complete or during the installation process. is there any way to do that?
-
- Posts: 66
- Joined: 13 Jan 2015 06:55
Re: any way to attach a bat file to windows installation?
But you can just use Windows AIK to create your own Windows Install CD with all drivers and programs. It's much easier.
-
- Posts: 233
- Joined: 21 Nov 2010 08:07
- Location: At My Computer
Re: any way to attach a bat file to windows installation?
If your a 'hands on' type then you can use Win ToolKit to integrate your updates and drivers to your image file, then use the SetupComplete.cmd method to install applications automatically at the end of the OOBE process/before the first logon.
http://www.majorgeeks.com/files/details ... olkit.html
http://www.mydefrag.com/forum/index.php?topic=3244.0
~DP
http://www.majorgeeks.com/files/details ... olkit.html
http://www.mydefrag.com/forum/index.php?topic=3244.0
~DP
Re: any way to attach a bat file to windows installation?
This will make your program run at first logon.
winNT.SIF
However, drivers are best installed during the hardware installation stage of windows setup. You can use the free driverPacks to have most drivers installed automatically ( even mas-storage ).
You can also edit svcPack.INF if you want more control over the installation ( driverpacks doesn't always select the proper driver ). For example, W2kTNT10.EXE is a SFX-archive that ( after decompression ) launches a batch file that will invoke devCon.EXE to figure out if a certain device is present on a system and then decide to install or not based on the presence of a HWID.
svcPack.INF
Unattended installs are well documented at http://unattended.msfn.org/unattended.xp/. If you are trying to automate a more recent OS some things may have changed, but it's still a good place to start.
winNT.SIF
Code: Select all
[GuiRunOnce]
"%systemDrive%\ED\DIST\EDPrinstall_WinXPPro32x86.CMD"
You can also edit svcPack.INF if you want more control over the installation ( driverpacks doesn't always select the proper driver ). For example, W2kTNT10.EXE is a SFX-archive that ( after decompression ) launches a batch file that will invoke devCon.EXE to figure out if a certain device is present on a system and then decide to install or not based on the presence of a HWID.
svcPack.INF
Code: Select all
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Next executables are device drivers for specific devices.
; If the hardware is found on the system, they override any previous drivers installed.
; -------------------------------------------------------------------------------------------------------------
;
; Nvidia Riva TNT/TNT2 Pro driver for device 'PCI\VEN_10DE&DEV_0028'
W2kTNT10.EXE
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++