Jump to content

Recommended Posts

Posted

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.


Posted

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"

Posted

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.

  • 3 years later...
Posted (edited)

I have same problem.

Can anyone tell me what command should be write in "Command to add" ? to merge reg file and delete from hard disk after that.

post-244073-007562600 1288089186_thumb.j

Edited by Nic303
Posted

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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