I am trying to setup windows application compatibility to where ever it installing(either it can be windows 7/8/10). This should be done before installation. If it can be done through any installation setup also fine. Just to inform, I am using bitrock setup for creating installer.
I have tried some links(How to programmatically disable Program Compatibility Assistant in Windows 7 and Vista for a native C++ application?), but not able get any option programmatically or through bitrock installation setup.
unfortunately I don't have any code so far.
I expect compatibility should be set to compiled executable where ever I am installing.
Somehow I managed to set the compatibility through
reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\Program Files\MyApp\Test.exe" /d "WIN7RTM"
Have executed this command from a batch script and attached to bitrock XML file.