I have a 32-bit application and a 32-bit installer written in Wise Installation Studio. I know ... I should not use the Wise, and I should switch to something else. But now I'm stuck.
Our application uses graphics intensively and improves performance; we want it to disable desktop layout (Windows Aero) during operation. We performed this on 32-bit systems by adding an entry to the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
with value DISABLEDWM.
This sets the "Disable Desktop Layout" checkbox on the property compatibility tab for our EXE by default.
This works fine on 32-bit systems, but when you run the installer on a 64-bit system, Windows redirects the creation of registry entries to HKLM\SOFTWARE\Wow6432Node, and the flag is set incorrectly. If I manually create an entry in the 64-bit representation of the registry, then it works.
So, how can I get this registry key to be created in a 64-bit registry view from our 32-bit installer? Or is there a better way to set this property besides creating a registry entry?
source
share