Anyone can check out this for himself with some basic knowledge of the command prompt.
You use this tool Inno Setup Unpacker to extract files from the gog installer.
http://innounp.sourceforge.net/
example command line: innounp -x setup_system_shock2_2.0.0.9.exe install_script.iss
Open install_script.iss with any text editor and search for this lines.
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueName: "{app}\shock2.exe"; ValueType: String; ValueData: "RUNASADMIN HIGHDPIAWARE"; Components: Component0; MinVersion: 0.0,5.0; Flags:
uninsdeletekey Root: HKCU; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueName: "{app}\shock2.exe"; ValueType: String; ValueData: "RUNASADMIN HIGHDPIAWARE"; Components: Component0; MinVersion: 0.0,5.0; Flags:
uninsdeletekey uninsdeletekey is culprit. It should delete just the value instead of the whole key.