July 6, 200620 yr hi every body out there i have made a batch file to copy some files into windows folder and besides that i have made a reg file containing some registry tweaks that this batch file should add them to the registry.OKmy problem is that i dont know how to execute this batch file while installing windows. Thanks in Advance Edited July 6, 200620 yr by Delphianrex
July 6, 200620 yr you want the cmdlines.txt, svcpack.inf and [GuiRunOnce] section:http://unattended.msfn.org/unattended.xp/view/web/30/
July 6, 200620 yr Author Thanks for your reply but i want to know if it`s possible to add a line to svcpack to execute it or not?
July 6, 200620 yr Why not?[SetupHotfixesToRun] (or something like that;)batch.cmdName it batch.cmd and put it in i386\svcpack and voila.Don't forget to take out "(or something like that;)" Edited July 6, 200620 yr by T D
July 7, 200620 yr Author Thanks for your alternative. I am going to try it.one more thing, how can i add some line to this batch file to edit boot.ini.
July 7, 200620 yr @ DelphianrexSave as boot.cmd.Edit for your needs.@echo offATTRIB -R -S -H %systemdrive%\boot.inidel /F /Q %systemdrive%\boot.iniSET inifile="%systemdrive%\boot.ini"ECHO [boot loader] >> %inifile%ECHO timeout=0 >> %inifile%ECHO default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS >> %inifile%ECHO [operating systems] >> %inifile%ECHO multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="XP SP2 Pro" /bootlogo /noguiboot /fastdetect>> %inifile%ATTRIB +R +S +H %systemdrive%\boot.iniexit
July 7, 200620 yr one more thing, how can i add some line to this batch file to edit boot.ini.Use the bootcfg command.
July 8, 200620 yr Author Thanks alot for the replies.but there`s a problem, this batch file is not executed during installation Edited July 12, 200620 yr by Delphianrex
Create an account or sign in to comment