Hello Kashif and welcome to Advanced Installer forums,
Unfortunately, we do not have predefined support for such a task.
However, this can still be manageable through a custom action.
For instance, the options from the "Compatibility" tab are reflected in the registry, in the following registry keys:
Code: Select all
HKCU:\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
or
Code: Select all
HKLM:\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
With that being said, we can have a custom action that will do just that
The custom action can look as it follows:
Code: Select all
$runCompatModeReg = "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"
$name = "C:\Users\Catalin\Desktop\sample.exe"
$value = "WIN8RTM"
New-ItemProperty -Path $runCompatModeReg -Name $name -Value $value -PropertyType string -Force | Out-Null
The $value variable can take a multitude of values, such as the ones presented in the article below:
https://www.verboon.info/2011/03/runnin ... lity-mode/
The custom action should be added as a
"PowerShell Inline Script" (in the
"Custom Actions" page) and it should be scheduled after the "Add Resources" action group, with its execution time being of
"When the system is being modified (deferred)".
Hope this helps.
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging