How can I put .reg file in Windows XP ?

Discussion in 'Windows XP / Older OS' started by sanjose, Jan 26, 2014.

  1. sanjose

    sanjose MDL Member

    Jan 23, 2012
    174
    18
    10
    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.
     
  2. urie

    urie Moderator
    Staff Member

    May 21, 2007
    8,725
    3,091
    300
  3. sanjose

    sanjose MDL Member

    Jan 23, 2012
    174
    18
    10
    @urie

    Thank for your link.
     
  4. Dos_Probie

    Dos_Probie MDL Senior Member

    Jul 18, 2012
    250
    84
    10
    #4 Dos_Probie, Jan 26, 2014
    Last edited by a moderator: Apr 20, 2017
  5. sanjose

    sanjose MDL Member

    Jan 23, 2012
    174
    18
    10
    #5 sanjose, Jan 27, 2014
    Last edited: Jan 27, 2014
    (OP)
    @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.
     
  6. urie

    urie Moderator
    Staff Member

    May 21, 2007
    8,725
    3,091
    300
    #6 urie, Jan 27, 2014
    Last edited by a moderator: Apr 20, 2017
    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.
     
  7. sanjose

    sanjose MDL Member

    Jan 23, 2012
    174
    18
    10
    @urie

    Thanks so much for your help. Have a nice day.
     
  8. sanjose

    sanjose MDL Member

    Jan 23, 2012
    174
    18
    10
    @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 .
     
  9. urie

    urie Moderator
    Staff Member

    May 21, 2007
    8,725
    3,091
    300
    #9 urie, Jan 28, 2014
    Last edited by a moderator: Apr 20, 2017
    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"
    :eek: