EmZvr Posted June 22, 2008 Share Posted June 22, 2008 Hi everyone. I finished my XP SP3 customization and integrated drivers via DriverPack. The only thing I don't know hot to do is: How can I made a bat file to start after the windows instalation is finished. I read the explanation in the MSFN Unattended Instalation guide but I can't get it. Here's what I want to do. I made the bat file but it's ok. Ut should do this: 1. Delete all shortcuts in from the desktop 2. Copy some files from the CD to C:\WINDOWS\System32 (calc.exe, iis.dll, iis.ini, oeminfo.inf) 3. Apply registry tweaks in the file Tweaks.reg 4. Restart the computer. And here's how I did it:cmdow @ /HIDshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."del %systemdrive%\Users\EmZvr\Desktop\*.inkcopy %SOURCE%\Tweaks\*.* %systemdrive%\WINDOWS\System32REG ADD %KEY% /V 1 /D "REGEDIT /S %SOURCE%\Tweaks\tweaks.reg" /fEXITIs it correct ? And where should I put the bat file and the files that must be copied in the system32 folder ?Thanks in advance Link to comment Share on other sites More sharing options...
mazmorbid Posted June 22, 2008 Share Posted June 22, 2008 (edited) You need to read that guide again, you should have:a folder named $OEM$ in your Setup files with these in it:1. $$ folder with a System32 folder with cmdow.exe inside that2. Software folder (or whatever you want as long as you put it in the RunOnceEx.cmd) where you want all the apps to get copied or installed3. cmdlines.txt with this:[COMMANDS]"RunOnceEx.cmd"4. a RunOnceEx.cmd with something like this:cmdow @ /HID@echo offSetLocal enableextensionsSET CDROM=%~d0SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\001 /V 1 /D "%CDROM%\$OEM$\Software\##Location to your .bat file or you can possibly add what you have in your .bat file here (Not done what your doing so not really sure)EndLocalEXITHope that helps ...[EDIT]Why are you trying to copy the oeminfo.inf file to the system32 folder in Windows? I'm pretty sure that stays on the cd and is not used by the OS, its only used during setup. Edited June 22, 2008 by mazmorbid Link to comment Share on other sites More sharing options...
EmZvr Posted June 22, 2008 Author Share Posted June 22, 2008 mazmorbid Thanks alot for the help. From what I understand I did this. In the cd I have a folder $OEM$ which has cmdlines.txt (which has: [Commands] "rundll32 advpack.dll,LaunchINFSection nLite.inf,U""RunOnceEx.cmd" ), RunOnceEx.cmd (which has: cmdow @ /HID@echo offSetLocal enableextensionsSET CDROM=%~d0SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\001 /V 1 /D "%CDROM%\$OEM$\Software\Tweaks.regEndLocalEXIT) and a folder $$ which has System32( with cmdow.exe in it) and the folder Software( which has all the files that should be copied and the Tweaks.reg)I think it's ok but It will only add the tweaks.reg to the registry but what command to add that will copy the files :/The file oeminfo adds a button in my coputer's properties "Support Insformation" which holds a information about your computer.p.s. It's really difficult to express what i want to say in English :/ Link to comment Share on other sites More sharing options...
mazmorbid Posted June 22, 2008 Share Posted June 22, 2008 (edited) Sorry i did miss read and thought i saw oobeinfo oops .. Try adding this into your RunOnceEx.cmd to copy oeminfo.inf into the system32 folder:copy %CDROM%\$OEM$\Software\oeminfo.inf %systemroot%\system32\ Edited June 22, 2008 by mazmorbid Link to comment Share on other sites More sharing options...
EmZvr Posted June 22, 2008 Author Share Posted June 22, 2008 Thanks, everything is working fine Link to comment Share on other sites More sharing options...
mazmorbid Posted June 22, 2008 Share Posted June 22, 2008 No probs, glad it all worked out. Link to comment Share on other sites More sharing options...
mazmorbid Posted June 28, 2008 Share Posted June 28, 2008 actually with your oeminfo.inf file I think it also works without putting any entry into the .bat file .. all you need to do is put your oeminfo.inf into $OEM$ -> $$ -> System32 folder and it gets copied onto your system drive?? Link to comment Share on other sites More sharing options...
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