Hello All,
Is there a way with WinBatch to bypass the Program Compatibility Assistant? I am not adding reg keys with a batch file to launch a WinBatch application. There has to be a better way...
REG ADD "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v %InstLocation% /t REG_SZ /d "$ ElevateCreateProcess" /f InstLocation is the name & path of the app...
You should never need to use the Program Compatibility Assistant with a compiled WinBatch script. If you need to execute a compiled script with elevated administrator privileges then set the appropriate manifest settings when you compile the script.
If you using Program Compatibility Assistant because you are starting a second executable from your compiled script then use the WinBatch ShellExecute function instead of one of the "Run*" functions.
If you are starting a compiled script from a third-party application then that third-party application either needs to be fixed or you need to use a different technique to start the script assuming the third-party application provides one.