Ignore:
Timestamp:
2010-07-30T11:08:36+12:00 (14 years ago)
Author:
sjm84
Message:

GLI in Windows will now ask for elevated permissions if it cannot write to the collect folder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/gli.bat

    r22409 r22525  
    1010
    1111:: This script must be run from within the directory in which it lives
    12 if exist gli.bat goto start
     12if exist gli.bat goto checkUserPermissions
    1313    if "%GLILANG%" == "en" echo This script must be run from the directory in which it resides.
    1414    if "%GLILANG%" == "es" echo Este gui¢n deber  ejecutarse desde el directorio en el que reside.
     
    1818    goto exit
    1919
     20:checkUserPermissions
     21echo Checking if GSDLHOME is writable...
     22echo This is a temporary file. It is safe to delete it. > "%GSDLHOME%\collect\testing.tmp"
     23if exist "%GSDLHOME%\collect\testing.tmp" goto deleteTempFile
     24    if "%1" == "Elevated" goto start
     25    "%GSDLHOME%\bin\windows\gstart.exe" %0 Elevated %1 %2 %3 %4 %5 %6 %7 %8 %9
     26    goto done
     27   
     28:deleteTempFile
     29del "%GSDLHOME%\collect\testing.tmp"
     30   
    2031:start
    2132if "%OS%" == "Windows_NT" goto progName
Note: See TracChangeset for help on using the changeset viewer.