Jump to content

How to run a REG file


roadapathy

Recommended Posts

I bet this is a dumb question but I haven't found the answer anywhere.

How do you run a REG file during/after the windows installation using nLite? Do I use the RUNONCE feature for this?

Thanks and I really hope this hasn't been covered like 20 times in the forum.

Link to comment
Share on other sites


You can run any reg file using CMDLINES.TXT

Create a folder named $OEM$ at root of disc, now create a text file named CMDLINES.TXT in the folder.

copy your reg file such as tweaks.reg and add these line into CMDLINES.TXT

[COMMANDS]
"regedit /s tweaks.reg"

Link to comment
Share on other sites

NEO: You are the mannnnnnnn! Thank you very much. I am going to try this right now.

PETESKI: I tried that method of turning a .REG file into an .INF but for some reason, it did not make the changes that I required. I only wanted to add some registry keys to software, some system tweaks, and some taskbar tweaks.

Link to comment
Share on other sites

  • 3 years later...

If you use neo's method from post #2, the .reg file will merge and there will be no need to delete it, since in will not copy to hard disk; it will be executed from the XP CD.

Now, if you WANT it copied to HDD and then deleted, that's a different thing. But the above mentioned is much more simple.

I suppose the command to add to nLite would be something like

regedit /s %source%$OEM$\regfile.reg

Cheers

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...