V I R U S Posted December 4, 2008 Posted December 4, 2008 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?!
aviv00 Posted December 5, 2008 Posted December 5, 2008 yea use shift + f10 or f12 i dont rememberu will get command console
V I R U S Posted December 5, 2008 Author Posted December 5, 2008 Ahm... I mean automatically, during installation =))
Nexus_06 Posted December 5, 2008 Posted December 5, 2008 you need to copy the files to hd first, then you can use winnt.sif[GuiRunOnce] %systemdrive%\batchfile.batin $OEM$ folder put PRECOPY.BAT@ECHO OFFIF 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%EXITfiles in $OEM$\$1
V I R U S Posted December 5, 2008 Author Posted December 5, 2008 (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 December 5, 2008 by V I R U S
V I R U S Posted December 5, 2008 Author Posted December 5, 2008 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?
JatinBeniwal Posted December 5, 2008 Posted December 5, 2008 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
V I R U S Posted December 7, 2008 Author Posted December 7, 2008 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!?
meowing Posted December 10, 2008 Posted December 10, 2008 Did you get this to work somehow? I'd like to know as well..
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now