Changeset 22577

Show
Ignore:
Timestamp:
05.08.2010 14:17:41 (9 years ago)
Author:
sjm84
Message:

Fixed several errors introduced from previous commit

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/shared/core/uninstaller/Uninstall.bat

    r22573 r22577  
    44:checkUserPermissions 
    55    echo Checking if the Greenstone directory is writable ... 
    6     (echo This is a temporary file. It is safe to delete it. > "%GSDLHOME%\testing.tmp" ) 2>nul 
    7     if exist "%GSDLHOME%\testing.tmp" goto deleteTempFile  
     6    (echo This is a temporary file. It is safe to delete it. > "testing.tmp" ) 2>nul 
     7    if exist "testing.tmp" goto deleteTempFile  
    88    if "%1" == "Elevated" goto printWarning 
    99    echo ... FAILED 
    10     echo The uninstaller cannot write to the Greenstone directory (%GSDLHOME%) 
     10    echo The uninstaller cannot write to the Greenstone directory (%CD%) 
    1111    echo Requesting elevated status to become admin user to continue. 
    12     "%GSDLHOME%\bin\windows\gstart.exe" %0 Elevated %1 %2 %3 %4 %5 %6 %7 %8 %9 
     12    bin\windows\gstart.exe %0 Elevated %1 %2 %3 %4 %5 %6 %7 %8 %9 
    1313    goto done 
    1414     
    1515:printWarning 
    1616    echo ... FAILED 
    17     echo The uninstaller cannot write to the Greenstone directory (%GSDLHOME%).  
     17    echo The uninstaller cannot write to the Greenstone directory (%CD%).  
    1818    echo Attempting to continue without permissions. 
    1919    goto shiftElevated 
     
    2121:deleteTempFile 
    2222    echo ... OK 
    23     del "%GSDLHOME%\testing.tmp" 
     23    del "testing.tmp" 
    2424 
    2525:shiftElevated 
     
    5858     
    5959) 
     60 
     61:done