reganetal Posted July 14, 2005 Share Posted July 14, 2005 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 OffSET PATH=%SystemDrive%\reg.exe%Path% ADD regtweaks.reg /s /fEXITOr 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 More sharing options...
Incroyable HULK Posted July 14, 2005 Share Posted July 14, 2005 Have you added REG.EXE to your system32 folder? Link to comment Share on other sites More sharing options...
reganetal Posted July 14, 2005 Author Share Posted July 14, 2005 Yes I have Link to comment Share on other sites More sharing options...
Incroyable HULK Posted July 14, 2005 Share Posted July 14, 2005 Here is my working cmdlines.txt ...[Commands]".\AllUsers.cmd"".\ie6.cmd"".\wmp.cmd"".\RunOnceEx.cmd"and AllUsers.cmdcmdow @ /HIDECHO OFF:: http://support.microsoft.com/kb/873374/en-us:: Set Microsoft GDI+ Detection Tool to completedREG ADD "HKLM\SOFTWARE\Microsoft\GdiDetectionTool" /v "GDITool" /t REG_DWORD /d "00000001" /fEXIT Link to comment Share on other sites More sharing options...
reganetal Posted July 14, 2005 Author Share Posted July 14, 2005 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 More sharing options...
marko2002 Posted July 22, 2005 Share Posted July 22, 2005 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?????CheersMarko Link to comment Share on other sites More sharing options...
Sonic Posted July 22, 2005 Share Posted July 22, 2005 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. Link to comment Share on other sites More sharing options...
riverrm Posted July 22, 2005 Share Posted July 22, 2005 As Sonic say's: Regedit /s regtweaks.regif 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 More sharing options...
marko2002 Posted July 22, 2005 Share Posted July 22, 2005 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.<{POST_SNAPBACK}>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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now