Jump to content

Adding registry tweaks


Recommended Posts

I was wondering how do I add registry tweaks in a win2k unattended install.

I tried putting "Regedit /s regtweaks.reg" in my cmdlines.txt file and that doesnt work. Can I call up another .cmd file and put something like this in it?

cmdow @ /HID
@Echo Off

SET PATH=%SystemDrive%\reg.exe

%Path% ADD regtweaks.reg /s /f

EXIT

Or do I need to call regedit.exe? I have a bunch of files I want to add.

Thanks in advance

Link to comment
Share on other sites


Here is my working cmdlines.txt ...

[Commands]
".\AllUsers.cmd"
".\ie6.cmd"
".\wmp.cmd"
".\RunOnceEx.cmd"

and AllUsers.cmd

cmdow @ /HID
ECHO OFF
:: http://support.microsoft.com/kb/873374/en-us
:: Set Microsoft GDI+ Detection Tool to completed
REG ADD "HKLM\SOFTWARE\Microsoft\GdiDetectionTool" /v "GDITool" /t REG_DWORD /d "00000001" /f
EXIT

Link to comment
Share on other sites

Yeah I understand what you did, but I still dont know if using .reg files instead of each individual key. I have probably a thousand keys to add I am trying to save a lot of typing (Or at the very least cutting and pasting) time.

Link to comment
Share on other sites

Hi Guys, this is my first post on this fantastic forum so be gentle!

Strangely enough, I'm on XP and having exactly the same issue myself - that is my RegTweaks.reg file doesn't seem to automatically run, though when I run this once logged in it's fine (with the obvious exception of the regtweaks which need to be run from cmdlines.txt).

My cmdlines.txt is . . .

[COMMANDS]"REGEDIT32.EXE /S RegTweaks.reg"

".\RunOnceEx.cmd"

"BTS_DPs_ROE.cmd"

. . . and the RegTweaks.reg file is in the $OEM$ folder along with the cmdlines.txt file.

Any idea's anyone?????

Cheers

Marko

Link to comment
Share on other sites

As Sonic say's:

Regedit /s regtweaks.reg

if using reg.exe in a batch file, keep in mind that the version of reg.exe is different between W2K and XP. I copy the XP version to W2K to keep my batch files the same.

Also, check you reg files. XP uses "Windows Registry Editor Version 5.00" as the header info in it's reg files. It can use older versions, but W2K can't use newer.

Good luck

Link to comment
Share on other sites

for use .reg , you must use :
regedit /s YourRegFile.reg

the "reg" allow to add/remove/edit directly a registry value.

the "/s" allow silent way.

Goodbye.

Ask and you shall receive!!!!!

Sonic, many many thanks for this m8 - works like a charm and thanks too riverrm for the info.

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...