Compatibility mode
Hello, I need my installer to create a shorcut in compatibility mode in Windows 7, x64, and I found some strange behavior. If I include the following line in the installer script, the shortcut does not get created in compatibilty mode, whereas If I run it from a console window, It does:
ExecShell 'reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "$INSTDIR\MyTest.exe" /d "WINXPSP3" /f' SHOWNORMAL
I've also tried to include the commad line in a cmd file and ExceShell' it from the installer, but no luck. Again, If I run the .cmd file from a system console, the shortcut gets modified correctly.
Bottom line: Does anybody know how to create a shortcut with compatibility mode set to WINXPSP3 from within an installer script?
Best regards,
Miguel