Page 1 of 2

problems add reg key

Posted: 19 Apr 2014 10:45
by swan_x
i have reg key to add to my registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765]
"EstimatedSize"=dword:000014c8

well if i add file.reg to my reg from XY don't work...
if i add file.reg to my reg from win explorer work!
this problem is for 64bit redirection?? (i have win 7 64 bit)

Re: problems add reg key

Posted: 19 Apr 2014 10:54
by highend
Exactly. A 32 bit application will write it to:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765

Re: problems add reg key

Posted: 19 Apr 2014 15:41
by swan_x
yes i understand...but not work :(

and this only because XY is 32bit? with future XY 64bit redirection no longer required?

Re: problems add reg key

Posted: 19 Apr 2014 16:07
by highend
Yes, it's because XY is a 32 bit application and if ever a 64bit one comes out, it'll work right out of the box.

A workaround:
Create a portable file association:
*.reg>::run """%windir%\sysnative\cmd.exe"" /c regedit.exe /s ""<pfaitem>""", , 2, 0;

Re: problems add reg key

Posted: 19 Apr 2014 17:48
by swan_x
alright, but....why HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\.........don't work??
you've tried? :naughty:

Re: problems add reg key

Posted: 19 Apr 2014 17:58
by highend
Häh?

You wanted to write your key to
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765]

and that's what the pfa does. Yes, I tried it...

Re: problems add reg key

Posted: 19 Apr 2014 19:29
by swan_x
after several attempts...
yes write my key, but the key is add to [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765]

not into [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765] :eh:

Re: problems add reg key

Posted: 19 Apr 2014 19:39
by highend
Read about WOW64 Redirection (64-bit Windows only) in the helpfile and create the necessary sysnative folder.

Re: problems add reg key

Posted: 19 Apr 2014 20:16
by swan_x
i have read this but i don't have understand! otherwise i would not ask help here!
and this is your reply?
i appreciate your help, but with your suggestion add the value to mistaken key :(

Re: problems add reg key

Posted: 19 Apr 2014 20:22
by highend
What is so difficult about creating a single folder?

Dos box with admin rights:
mkdir "%windir%\Sysnative"

or open the windows explorer and rightclick inside C:\Windows - > New folder
UAC will handle the admin part.

Re: problems add reg key

Posted: 19 Apr 2014 20:48
by swan_x
folder??? i do not understand...
i want add a value to key on HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\......
with your suggestion i add a value on HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\......
what does new folder?? :ninja:

Re: problems add reg key

Posted: 19 Apr 2014 20:53
by highend
YOU HAVE TO CREATE THE FOLDER "SYSNATIVE" IN C:\WINDOWS (or wherever your windows dir resides)...

Re: problems add reg key

Posted: 19 Apr 2014 23:46
by swan_x
ok i create this folder, and...??
now if add my .reg file (with \Wow6432Node\ or without this) i always have the same result as above... :whistle:
(...this thing is very hard!) :roll:

Re: problems add reg key

Posted: 20 Apr 2014 17:21
by swan_x
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765]
"EstimatedSize"=dword:000014c8

or

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765]
"EstimatedSize"=dword:000014c8

i have the same result: the value is add to: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765
but not into HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765

Re: problems add reg key

Posted: 21 Apr 2014 10:39
by swan_x
@ highend

but you believe your correct behavior?? i have one problem, i follow your suggestion, but not work correctly (for me, or i did not understand you...), i send you PM but you not reply...you seem correct? :naughty: