This seems odd to me and I am not sure what is causing it.
I have a batch that adds the following registry string
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%ProgramFiles%(x86)\bquest\bq.exe" /t REG_SZ /d "WINXPSP2 RUNASADMIN" /f >NUL
All it does it make the shortcut with admin privilages for the user.
Problem: This is one script among many in my larger batch file I will issue to my gaming community. When compiled into exe it does not work. If I make it a .bat it works, but if I call it from an exe file it does not work. So I made an installer, which has the.bat as an include and launches it first before anything...and it does not work. It only works as a bat file executed directly, nothing else can call on it.
I have to get this working, it can be a .bat file i dont care, but it has to at least allow me to include it in the installer.
What could cause this? Some sort of windows permissions?