Program Compatibility Assistant Windows 10

Started by Tech710, December 27, 2017, 07:12:52 AM

Previous topic - Next topic

Tech710

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...

td

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.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade