Hi All, I have a .reg file ( backup.reg ) and want to put it in Windows XP Installation CD in order that this .reg file will automatically run when I re-install a fresh installation. Can anyone help me the command lines .bat or .cmd file for running this .reg file please ? ** I create a $OEM$ and put backup.reg inside, is it right ? Thanks in advance for your concern.
@Dos_Probie Thanks so much for your help and hint. As I read your .sif file, I edited my Winnt.sif. But I still get confused a little bit ... Can you tell me what I need to do .... step by step ? All I need is .... I want to add a .reg file ( backup.reg ) to Windows XP .iso .... this file will automatically run when I re-install Windows. Thanks for your concern and help.
you need to make folders $OEM$\$1\Install and copy your regfile into install folder then make basic winnt.sif file example Code: [Data] MSDosInitiated=0 UnattendedInstall=Yes [Unattended] OemPreinstall=Yes UnattendSwitch="yes" [GuiRunOnce] "regedit /s %systemdrive%\install\ backup.reg" after that copy winnt.sif file to i386 folder and $OEM$ folder to root of cd.
@urie I followed all your steps and re-install a fresh installation. the result is that it only copies the install folder with backup.reg inside systemdrive. Unfortunately, backup.reg file can not automatically run until I have to run it manually. Do you have any ideas or Do I need a .cmd file ??? Thanks again, urie .
OOPs My mistake there is space in command line at [GuiRunOnce] Code: "regedit /s %systemdrive%\install\ backup.reg" should be Code: "regedit /s %systemdrive%\install\backup.reg"