problem with 64 bit registry
hi all,
i'm new to sccm and i have a problem with the registry;
after installing an 64 bits application into windows 7 64 bits, i need to import a reg file but the reg changes are done under the 32 bits reg key, which is WOW6432Node.
so far, i tried regedit /s regfile, reg import regfile, but nothing works.
how can i import my reg file under the correct reg keys via sccm?
thanks!
i'm new to sccm and i have a problem with the registry;
after installing an 64 bits application into windows 7 64 bits, i need to import a reg file but the reg changes are done under the 32 bits reg key, which is WOW6432Node.
so far, i tried regedit /s regfile, reg import regfile, but nothing works.
how can i import my reg file under the correct reg keys via sccm?
thanks!
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
mikkojarvinen
13 years ago
SCCM client is a 32-bit application. If you launch regedit.exe or reg.exe from SCCM client, WOW64 gives you 32-bit version of those tools and basically you cannot even see the 64-bit part of the registy. You have a few options, however. In Windows 7 x64 you can script your way around WOW64, use %sysnative% variable to launch the 64-version of the tool or you can give reg.exe additional switch /reg:64. (Or /reg:32 if you wish to work with 32-bit part. That works with both 32- and 64-bit versions of reg.exe).
Posted by:
SCCM FUN
12 years ago
This is a fantastic piece of information to spread around.
I spent a week trying to figure out a way around this issue.
reg import <name>.reg /reg:64
Brilliant!
I spent a week trying to figure out a way around this issue.
reg import <name>.reg /reg:64
Brilliant!
Comments:
-
This fixed my issue THANK YOU - Ninjaroo 10 years ago
Posted by:
kardock
13 years ago
ORIGINAL: mikkojarvinen
SCCM client is a 32-bit application. If you launch regedit.exe or reg.exe from SCCM client, WOW64 gives you 32-bit version of those tools and basically you cannot even see the 64-bit part of the registy. You have a few options, however. In Windows 7 x64 you can script your way around WOW64, use %sysnative% variable to launch the 64-version of the tool or you can give reg.exe additional switch /reg:64. (Or /reg:32 if you wish to work with 32-bit part. That works with both 32- and 64-bit versions of reg.exe).
yes sir. /reg:64 worked.
thanks!
Comments:
-
I have implimemted below commad line by appending /reg:64 for 64 bit version of registries and it can be viewed when deployed via 32-Bit SCCM client.
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Test123 - English" /v DisplayName /t REG_SZ /d "Test123" /f /reg:64
The question is if /reg:64 is appended to below command which has 32-bit version registires, does it have any harm or there any implications?
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\test32bit" /v NoREMOVE /t REG_DWORD /d 00000001 /f /reg:64
Please suggest. - sadanand619 12 years ago
Posted by:
Matias M Andersen
13 years ago
Hi Kardock,
I would think it is because of the 64bit redirection. Theres a couple of workarounds on the internet. I would solve this by creating a 64bit MSI package containing the reistry.
I would think it is because of the 64bit redirection. Theres a couple of workarounds on the internet. I would solve this by creating a 64bit MSI package containing the reistry.
Posted by:
Lucid
13 years ago
So you need to write to the ...\SOFTWARE\Wow6432Node node, or just to the ...\SOFTWARE node? The SCCM client runs as a 32-bit process, so you shouldn't have a problem writing to the 32-bit registry space. And for the 64-bit, try using the full path the 64-bit version of REGEDIT.EXE (there are two of them on the system).
We use VBScript code to manipulate the 32-bit and 64-bit registry spaces all the time from SCCM, so if that doesn't work for you, try posting here and I'll see if I can post some VBScript code snippets for you...
We use VBScript code to manipulate the 32-bit and 64-bit registry spaces all the time from SCCM, so if that doesn't work for you, try posting here and I'll see if I can post some VBScript code snippets for you...
Posted by:
andys0123
12 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.