Windows 7 Forums


Windows 7: problem with running .reg files

27 Nov 2009   #1

Windows 7 Home Premium
 
 
problem with running .reg files

When I run .reg files I choose to run them as administrator. I get an information saying that the information was succesfully added to the registry. However, when I open the registry I see that those keys weren't added at all. What's wrong?

My System SpecsSystem Spec

27 Nov 2009   #2

W7 x64
3rd Rock from the Sun
 
 

And following reboot?
My System SpecsSystem Spec
27 Nov 2009   #3

Windows 7 32 bit
 
 

You can download my free program called UpdateEnv from this page:
Faves Downloads

The registry is kept in memory but sometimes if you run UpdateEnv 6 or 8 times you can get the shell to write changes or let go of files. It's just a utility that sometimes can save logging off, then back on, to get the shell to save.

If that doesn't work, try logging off, then back on. As last resort, reboot.
My System SpecsSystem Spec
.


27 Nov 2009   #4

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello Beholder,

In addition to restarting the computer, are you merging the reg files while logged on a administrator account? Depending on the registry location, some will not merge no matter what if logged on to a standard account.
My System SpecsSystem Spec
27 Nov 2009   #5

Windows 7 Home Premium
 
 

Thanks for all your replys. The reboot doesn't change anything. Brink, what do you mean by 'merging the reg files'?
My System SpecsSystem Spec
27 Nov 2009   #6

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Merging the .reg file is the same as running it, or right clicking on it and clicking on Merge. That's all.

Could you upload (paperclip icon) the .reg file for us to take a look at it to see if there may something wrong with it?
My System SpecsSystem Spec
27 Nov 2009   #7

Windows 7 Ultimate x64 Service Pack 1
Doncaster, UK
 
 

What are the registry files? Depending on the location in the registry, you can either merge them under a standard account or an account with administrative privileges

HKEY_CLASSES_ROOT Administrative Privileges required

HKEY_CURRENT_USER Both (see note)

HKEY_LOCAL_MACHINE Administrative Privileges required

note: the current user is either the standard user OR the elevated user.

My System SpecsSystem Spec
27 Nov 2009   #8

Windows 7 32 bit
 
 

If it's a permissions thing, shouldn't he get an error instead of "successfully added" msg?
My System SpecsSystem Spec
02 Dec 2009   #9

Windows 7 Home Premium
 
 

Here's the upload
Attached Files
File Type: reg reg.reg (140 Bytes, 548 views)
My System SpecsSystem Spec
02 Dec 2009   #10

Windows 7 Ultimate x64 Service Pack 1
Doncaster, UK
 
 

OK. For information to others, here is the text equivalent of the file.

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\RP\Data]
"OutputDir"="D:\\Output"
"DataPath"="D:\\CurrentBuild\\Data"

Using the information from this Tutorial Registry Editing - Vista Forums

@ECHO OFF
REG ADD "HKLM\SOFTWARE\RP\Data" /v "OutputDir" /t REG_SZ /d "D:\\Output" /f
REG ADD "HKLM\SOFTWARE\RP\Data" /v "DataPath" /t REG_SZ /d "D:\\CurrentBuild\\Data" /f

Save the above as a batch file (with a .bat extension). Right click on it and select Run as administrator.
My System SpecsSystem Spec
Reply

 problem with running .reg files problems?



Thread Tools



Similar help and support threads for: problem with running .reg files
Thread Forum
Cmd Batch Files Running Without Finishing: Recursion problem?? General Discussion
.exe files running problem General Discussion
Solved Problem running some .exe and .bat files General Discussion
Trouble Running .jar Files Software
problem: running srt,sub with mkv files Media Center


All times are GMT -5. The time now is 04:24 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32