View Single Post
  #6  
Old 02-03-2018, 11:32 PM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

Try This:
Don't Run As Admin, run normal from the desktop because I think it's already set to give you permission.

I reckon it's the same as when the Steam Installer says "don't run as admin", probably because they've already applied a dll fix which will break if you do.

Edit:

I'm probably wrong so an alternative (and opposite) could be calling cacls to force admin rights.

IE adding something like

Quote:
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' ( goto UAC
) else ( goto Admin )
:UAC
Set UAC = CreateObject^("Shell.Application"^) > "%temp%\adminreq0.vbs"
UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\adminreq0.vbs"
"%temp%\adminreq0.vbs"
exit /B
:Admin
if exist "%temp%\adminreq0.vbs" ( del "%temp%\adminreq0.vbs" )
pushd "%CD%"
CD /D "%~dp0"

Last edited by Guest001; 02-03-2018 at 11:45 PM.
Reply With Quote