Configuring the “Compatibility” tab
This post discusses how to configure options on the Compatibility tab for a given executable by making modifications through the registry.
There are two different ways to go about doing it, making a change for an executable for all users on a system and making a change for an executable for a single user.
When you configure an executable to run in compatibility mode, Windows XP and 7 will store that configuration change either under HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers (If the change is only for a particular user.) or HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers (If making the change for all users.) Under the Layers key, the OS creates a String value for each executable and then assigned the compatibility properties to the value of that string. For example, if you had an executable living under C:\Program Files\Adobe\Reader\AdbRd.exe and you wanted Windows 7 to run the executable in Windows XP SP3 compatility mode, you would create the following string.
Value Name: C:\Program Files\Adobe\Reader\AdbRd.exe
Data: WINXPSP3
After that string is in place, depending on where you placed the string (System or User) the next time the executable is launched it will run under Windows XP SP3 compatibility.
In addition to just defining the OS compatibility, you can also specify all the additional options that you would see on the compatibility tab using that same string value. Below I’ve listed the available options and how you would call for that option to be enabled.
Windows XP Options
Windows 95 = WIN95
Windows 98/ME = WIN98
Windows NT 4.0 SP5 = NT4SP5
Windows 2000 = WIN2000
Run in 256 Colors = 256COLOR
Run in 640 x 480 screen resolution = 640X480
Disable visual themes = DISABLETHEMES
Turn off advanced text services for this program = DISABLECICERO
Windows 7 Options
Windows 95 = WIN95
Windows 98/ME = WIN98
Windows NT 4 SP5 = NT4SP5
Windows 2000 = WIN2000
Windows XP SP2 = WINXPSP2
Windows XP SP3 = WINXPSP3
Server 2003 SP1 = WINSRV03SP1
Server 2008 SP1 = WINSRV08SP1
Windows Vista = VISTARTM
Windows Vista SP1 = VISTASP1
Windows Vista SP2 = VISTASP2
Windows 7 = WIN7RTM
Run in 256 colors = 256COLOR
Run in 640×480 screen resolution = 640X480
Disable visual themes = DISABLETHEMES
Disable desktop composition = DISABLEDWM
Disable display scaling on high DPI settings = HIGHDPIAWARE
Run this program as an Administrator = RUNASADMIN
When wanting to use any of the additional options other than the OS mode, you simple need to add the option on to the value data. For example, if you wanted an executable to run under Windows XP SP3 mode and also run as an Administrator, the value would look like the following. “WINXPSP3 RUNASADMIN” Luckily, the order you provide these values in doesn’t matter. So even though on the compatibility tab the run as administrator option is always at the bottom, you can specify it first and then maybe specify the run in 256 colors option last.

