09-15-2012, 11:11 PM
I ran the deploy script with echo on as admin on a windows 7 machine with UAC enabled, this is what happened:
It seems Windows changes the currenct directory to the system root when ran as admin, screwing up the relative links.
Code:
C:\Windows\system32>echo ------------------------------------------------------
------------------------------------------------------
C:\Windows\system32>echo LAS VENTURAS PLAYGROUND: DEPLOYING THE GAMEMODE
LAS VENTURAS PLAYGROUND: DEPLOYING THE GAMEMODE
C:\Windows\system32>echo ------------------------------------------------------
------------------------------------------------------
C:\Windows\system32>set DEPLOY_MODE=normal
C:\Windows\system32>set DEPLOY_RESULT=1
C:\Windows\system32>if "" == "--editor" set DEPLOY_MODE=editor
C:\Windows\system32>set SOURCE_PATH=C:\Windows\system32
C:\Windows\system32>pushd .
C:\Windows\system32>cd ..
C:\Windows>set ROOT_PATH=C:\Windows
C:\Windows>popd
C:\Windows\System32>set SERVER_PATH=C:\Windows\server
C:\Windows\System32>if not exist "C:\Windows\server" goto server_doesnt_exist
C:\Windows\System32>echo The SA-MP Server directory could not be found.
The SA-MP Server directory could not be found.
C:\Windows\System32>echo Please execute this file from the gamemode/ directory,
and
Please execute this file from the gamemode/ directory, and
C:\Windows\System32>echo ensure that the server/ directory (one level up) also e
xists.
ensure that the server/ directory (one level up) also exists.
C:\Windows\System32>goto deploy_exit
C:\Windows\System32>if 1 == 0 goto clean_exit
C:\Windows\System32>echo ------------------------------------------------------
------------------------------------------------------
C:\Windows\System32>echo FAILURE: The deploy script failed, please review the er
rors and fix them.
FAILURE: The deploy script failed, please review the errors and fix them.
C:\Windows\System32>if "normal" == "normal" pause
Druk op een toets om door te gaan. . .It seems Windows changes the currenct directory to the system root when ran as admin, screwing up the relative links.