Jump to content

Run *.bat file during or after install?!


Recommended Posts

Posted

Hi all!

Is there some possibility to run a *.bat file during install, to take some tweaks or after install?

I saw one possibility with $OEM$ folder, used for WPI, but i will run the script directly from CD w/out copying it to HDD.

Is there such possibility?!


Posted

you need to copy the files to hd first, then you can use winnt.sif

[GuiRunOnce]

%systemdrive%\batchfile.bat

in $OEM$ folder put PRECOPY.BAT

@ECHO OFF

IF EXIST C:\CDROMSP4.TST set CDROM=C:

IF EXIST D:\CDROMSP4.TST set CDROM=D:

IF EXIST E:\CDROMSP4.TST set CDROM=E:

IF EXIST F:\CDROMSP4.TST set CDROM=F:

IF EXIST G:\CDROMSP4.TST set CDROM=G:

IF EXIST H:\CDROMSP4.TST set CDROM=H:

IF EXIST I:\CDROMSP4.TST set CDROM=I:

IF EXIST J:\CDROMSP4.TST set CDROM=J:

IF EXIST K:\CDROMSP4.TST set CDROM=K:

IF EXIST L:\CDROMSP4.TST set CDROM=L:

IF EXIST M:\CDROMSP4.TST set CDROM=M:

IF EXIST N:\CDROMSP4.TST set CDROM=N:

IF EXIST O:\CDROMSP4.TST set CDROM=O:

IF EXIST P:\CDROMSP4.TST set CDROM=P:

IF EXIST Q:\CDROMSP4.TST set CDROM=Q:

IF EXIST R:\CDROMSP4.TST set CDROM=R:

IF EXIST S:\CDROMSP4.TST set CDROM=S:

IF EXIST T:\CDROMSP4.TST set CDROM=T:

IF EXIST U:\CDROMSP4.TST set CDROM=U:

IF EXIST V:\CDROMSP4.TST set CDROM=V:

IF EXIST W:\CDROMSP4.TST set CDROM=W:

IF EXIST X:\CDROMSP4.TST set CDROM=X:

IF EXIST Y:\CDROMSP4.TST set CDROM=Y:

IF EXIST Z:\CDROMSP4.TST set CDROM=Z:

XCOPY /E /Y %CDROM%\$OEM$\$1 %SYSTEMDRIVE%

EXIT

files in $OEM$\$1

Posted (edited)

1. I was asking if it's possible to run files from CD directly, without copying it to HDD.

2. I think the part you gave comes from nLite which is designed for XP only, cause there is no WINNT.SIF file on CD...

Edited by V I R U S
Posted

As i see there, it's possible to set the file you wish to run on firstLogin. Mby there is possibility to run it during install too???

	  <FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<CommandLine>%Systemdrive%\Install\install.bat</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>

%Systemdrive% - most time it's C:

Is there some parameter to determine the CD-ROM dirve too? Like %CDROM%, so that just to replace and execute the files directly from CD?

Posted

Try to help from Legolash2Go. He makes some unattended installations that work with windows vista during installation. he is the maker of vista update toolkit & also a member of msfn or download vista update toolkit from wincert.com

Posted
As i see there, it's possible to set the file you wish to run on firstLogin. Mby there is possibility to run it during install too???

	  <FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<CommandLine>%Systemdrive%\Install\install.bat</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>

%Systemdrive% - most time it's C:

Is there some parameter to determine the CD-ROM dirve too? Like %CDROM%, so that just to replace and execute the files directly from CD?

No one knows this Point!? :blink:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...