problems add reg key

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

problems add reg key

Post 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)

highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: problems add reg key

Post by highend »

Exactly. A 32 bit application will write it to:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: problems add reg key

Post by swan_x »

yes i understand...but not work :(

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

highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: problems add reg key

Post 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;
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: problems add reg key

Post by swan_x »

alright, but....why HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\.........don't work??
you've tried? :naughty:

highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: problems add reg key

Post 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...
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: problems add reg key

Post 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:

highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: problems add reg key

Post by highend »

Read about WOW64 Redirection (64-bit Windows only) in the helpfile and create the necessary sysnative folder.
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: problems add reg key

Post 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 :(

highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: problems add reg key

Post 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.
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: problems add reg key

Post 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:

highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: problems add reg key

Post by highend »

YOU HAVE TO CREATE THE FOLDER "SYSNATIVE" IN C:\WINDOWS (or wherever your windows dir resides)...
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: problems add reg key

Post 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:
Last edited by swan_x on 20 Apr 2014 20:18, edited 1 time in total.

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: problems add reg key

Post 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

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: problems add reg key

Post 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:

Post Reply