- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Windows 11 RegDBGetKeyValueEx and WOW6432Node
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Windows 11 RegDBGetKeyValueEx and WOW6432Node
Hello
We use InstallShield 2012.
On a Windows 11 PC we install a software which creates registry entries in "HKLM\SOFTWARE\folder_x\folder_y\CurrentVersion".
Now we have a Setup.exe which was created with InstallShield (InstallScript MSI Project). This setup checks the value of a key in "HKLM\SOFTWARE\folder_x\folder_y\CurrentVersion". This has worked without problems so far, just not in Windows 11.
We have found that Windows 11 searches in "HKLM\SOFTWARE\WOW6432Node\folder_x\folder_y\currentVersion".
Although we explicitly specify the path, it goes into the WOW6432Node which shouldn't be.
How can I search for the key in the path without it automatically going to WOW6432.
Here is an example code:
// Included header files ----------------------------------------------------
#include "ifx.h"
// Registry Path
#define REG_PATH "SOFTWARE\\folder_x\\folder_y\\CurrentVersion"
#define REG_VERSION "Version"
// Prototyp
prototype GetValueFromRegistry();
function OnFirstUIBefore()
begin
GetValueFromRegistry();
end;
function GetValueFromRegistry()
NUMBER nType, nSize;
STRING sResult;
begin
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
if (RegDBGetKeyValueEx(REG_PATH, REG_UV_VERSION, nType, sResult, nSize) >= 0) then
MessageBox("Version found.", SEVERE);
else
MessageBox("Version not found.", SEVERE);
endif;
end;
Thank you.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @axiansinfoma,
Thank you for your post.
InstallShield 2012 does not support Windows 11. InstallShield 2012 has reached its end-of-life, so InstallShield 2012 is no longer supported. For technical support, please contact us via the Contact Us Form at the following link to upgrade to InstallShield 2022, which is the latest supported InstallShield version:
https://www.revenera.com/about-us/contact-us
Once you are on a supported InstallShield version, we'd be happy to assist you.
Please let us know if you have any questions or concerns. Thanks!
