So i have an install i need to push out to x86 and x64 bit systems via software distribution from the K1000. I have a batch script in a zipped folder that runs as follows.

@echo off
if defined ProgramFiles(x86) goto AMD64

:x86
start /wait "install info goes here"
start /wait REGEDIT.EXE  /S  "file.REG"
goto end
 
:amd64
start /wait "install info goes here"
start /wait REGEDT32.EXE  /S  "file.REG"
goto end
:end

exit 0


And a .reg file

--- Windows Registry Editor Version 5.00--- 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\CMGShield] 
"AlwaysApplySDE"=dword:00000001
"AllowNonDomainActivations"=dword:00000001

Im running regedt32.exe to try and emulate the instructions below. 
https://support.software.dell.com/k1000-systems-management-appliance/kb/131517

So far my x86 deployments are going just fine, perfect even, but my x64 deployments are still putting regsitry changes in WOW6432. I need them to get back to HKLM/software/windows/windowsnt/winlogon/cmgshield. If i run the .reg from a thumb drive or the desktop its just fine on the x64 machines too. The files still go where they need to be. But when i run everything through software distribution the x64 install breaks. 

I hope this all makes sense. 

Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

1
since the client is 32bit it is calling the regedit from the the 32 area.  you can either use the %sysnative% varible or uploading 2 reg files and for the 64 bit use hklm64\software\....
Answered 03/02/2015 by: SMal.tmcc
Red Belt

Please log in to comment