problems add reg key

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: problems add reg key

Post by highend »

1. It works on my system and on a fresh Win 7 x64 OS with a fresh XY installation. So it's probably not the PFA's fault...
2. There is no need to write me a pm to ask if I read this thread...
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 tnxs for reply! now...summary:
1) you have create a empty folder "sysnative" in C:\WINDOWS
2) launch a file.reg:

Windows Registry Editor Version 5.00

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

3) this add a value "EstimatedSize" into HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765

right? everything is correct? on my registry this value is add to
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765]
and this is not what i want...but if the above steps are correct, then i have a problem on my pc...just give me confirmation if the steps are correct

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

Re: problems add reg key

Post by highend »

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765]
"EstimatedSize"=dword:000014c8
Wow6432Node?...
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 »

Sysnative? :veryconfused:
see your post #2....
highend wrote:Exactly. A 32 bit application will write it to:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765

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

Re: problems add reg key

Post by swan_x »

however [HKEY_LOCAL_MACHINE\SOFTWARE\Sysnative\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765]
not work...

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

Re: problems add reg key

Post by highend »

Are you serious?
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765]
"EstimatedSize"=dword:000014c8
In which dimension should this entry be written into
HKEY_LOCAL_MACHINE\SOFTWARE\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 »

new value dword "EstimatedSize" 000014c8 (5,19 MB) into the key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765

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

Re: problems add reg key

Post by highend »

I'm out, too tired to deal with this...
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, highend is tired...no one else knows me better explain where is my problem??

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: problems add reg key

Post by bdeshi »

swan_x, follow my directions carefully:
You DO NOT have to edit your .reg file.
This is exactly what your reg file should be:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Arc98765]
"EstimatedSize"=dword:000014c8
Again, do not edit your reg file.
• Okay, now open Windows' own file Explorer.
• go to C:\WINDOWS\
• create a new folder here, name it Sysnative
• now open XYplorer. From it's main menu, select "Tools", then "Customize File Association".
• a new dialog opens. Click the button "New", then paste the following line:

Code: Select all

"Add 64BIT Registry|" *.reg>::run """%windir%\sysnative\cmd.exe"" /c regedit.exe /s ""<pfaitem>""", , 2, 0;msg "Registry key added successfully!";
• press OK.
• now right click on the registry file, select "Open With...", then select "Add 64BIT Registry"
• did you see a message that says "Registry key added successfully!" ?
• now open regedit and check that you registry key is added to the correct location. Do not look under Wow6432Node.
• does this solve your problem?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: problems add reg key

Post by swan_x »

yeeeeess!! :appl:
very thanks for your "precious" help :wink:

only one details: after step "File Association" on right click on the registry file, on select "Open With...", i don't have "Add 64BIT Registry"... (but this is a very little problem...i've found it on File-Open With [after selecting file.reg])

but another simple way is double clic on file.reg: the key is add immediately at the registry!

AND THIS WORKKKK!! many many thanks SammaySarkar :beer:

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: problems add reg key

Post by bdeshi »

I just copied highend's script, only made it more noticeable.
Glad to know it's helped.
Any custom PFA you add, can always be found it that "Open with" menu.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply