Old 20th January 2011, 13:35   #1
starfighter5's Avatar
Join Date: Sep 2010
Posts: 66
AppCompatFlags Windows 7 Registry Problems

I am repackaging an application that I no longer have access to the source code, because of this I am unable to make it compatible with Windows 7 so am using compatability mode instead.

My installer detects if it is being used on Windows 7 and the inserts the following key into the registry...

When I right click the icon and view its properties I am seeing the correct compatibility settings I expect to see, but the program doesnt run

If I delete the reg key and manually set the compatibility settings it works, wierd things is, doing things manually creates the exact same key in the registry.

Is there some other data that needs to be stored somewhere?

This is only happening for HKEY_LOCAL_MACHINE, it works correctly if installed into HKEY_CURRENT_USERS
starfighter5 is offline   Reply With Quote
Old 20th January 2011, 17:02   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,891
Well, that key is undocumented AFAIK so...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 27th June 2013, 03:08   #3
Junior Member
Join Date: Jun 2012
Posts: 12
i am also experiencing this and only happens in HKLM and not in HKCU. I have been searching everywhere and I cannot find any solution.
cupid062985 is offline   Reply With Quote
Old 27th June 2013, 08:45   #4
Major Dude
T.Slappy's Avatar
Join Date: Jan 2006
Location: Slovakia
Posts: 519
Send a message via ICQ to T.Slappy
So what is the problem?
Compatibility setting can be set for Current user or for all users -> that means HKCU or HKLM.

If HKCU is working fine then change compatibility for all users by enumerating all users.
Use ${EnumUsersReg} Your_Function

Still: on the same Windows all users need to have this turned on otherwise the program will not work correctly.

Cool looking skinned Graphical Installers: www.graphical-installer.com
I offer NSIS scripting, C/C++/C#/Delphi programming: www.unsignedsw.com
Develop NSIS projects in Visual Studio 2005-2017: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.2 Tokyo: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump