Delphianrex Posted July 6, 2006 Posted July 6, 2006 (edited) 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, 2006 by Delphianrex
spazmire11 Posted July 6, 2006 Posted July 6, 2006 you want the cmdlines.txt, svcpack.inf and [GuiRunOnce] section:http://unattended.msfn.org/unattended.xp/view/web/30/
Delphianrex Posted July 6, 2006 Author Posted July 6, 2006 Thanks for your reply but i want to know if it`s possible to add a line to svcpack to execute it or not?
T D Posted July 6, 2006 Posted July 6, 2006 (edited) 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, 2006 by T D
Delphianrex Posted July 7, 2006 Author Posted July 7, 2006 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.
Lau Posted July 7, 2006 Posted July 7, 2006 @ 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
Takeshi Posted July 7, 2006 Posted July 7, 2006 one more thing, how can i add some line to this batch file to edit boot.ini.Use the bootcfg command.
Delphianrex Posted July 8, 2006 Author Posted July 8, 2006 (edited) Thanks alot for the replies.but there`s a problem, this batch file is not executed during installation Edited July 12, 2006 by Delphianrex
T D Posted July 12, 2006 Posted July 12, 2006 Is boot.cmd in the svcpack dir? It should not be compressed.
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