Windows compatibility mode

From ISXKB

(Difference between revisions)
Jump to: navigation, search
Current revision (11:51, 4 May 2009) (view source)
(Code formatting)
 
Line 4: Line 4:
<pre>
<pre>
[Registry]
[Registry]
-
Root: HKLM; Subkey: "Software\Microsoft\Windows
+
Root: HKLM; Subkey: "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: String; ValueName: "{app}\program.exe"; ValueData: "WIN98"; Flags: Uninsdeletekey
-
  NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: String; ValueName:
+
-
  "{app}\program.exe"; ValueData: "WIN98"; Flags: Uninsdeletekey
+
</pre>
</pre>

Current revision

Some applications do not run properly or look good when running under XP or Windows Vista. If you want to set the application compatibility mode you can use the following registry key:

[Registry]
Root: HKLM; Subkey: "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: String; ValueName: "{app}\program.exe"; ValueData: "WIN98"; Flags: Uninsdeletekey

Replace the ValueName with the location and name of your program and the ValueData with the Windows version you want to use:

  • WIN95 - Windows 95
  • WIN98 - Windows 98 / Me
  • NT4SP5 - Windows NT4.0 (Service Pack 5)
  • WIN2000 - Windows 2000
  • WINXPSP2 - Windows XP (Service Pack 2)

Taken from Andrew Martins post in the INNO news groups.

The same key structure is available under HKCU, but that should not be changed from an installer unless the installation works on a per-user basis.

Personal tools
Ads: