Ignore:
Timestamp:
2010-08-05T09:49:08+12:00 (14 years ago)
Author:
sjm84
Message:

Updated the messages printed by the uninstaller if extra permissions are required

File:
1 edited

Legend:

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

    r22532 r22573  
    33
    44:checkUserPermissions
    5 echo Checking if the collection directory is writable...
    6 echo This is a temporary file. It is safe to delete it. > testing.tmp 2>nul
    7 if exist testing.tmp goto deleteTempFile
    8     if "%1" == "Elevated" goto shiftElevated
    9     bin\windows\gstart.exe %0 Elevated %1 %2 %3 %4 %5 %6 %7 %8 %9
     5    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
     8    if "%1" == "Elevated" goto printWarning
     9    echo ... FAILED
     10    echo The uninstaller cannot write to the Greenstone directory (%GSDLHOME%)
     11    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
    1013    goto done
     14   
     15:printWarning
     16    echo ... FAILED
     17    echo The uninstaller cannot write to the Greenstone directory (%GSDLHOME%).
     18    echo Attempting to continue without permissions.
     19    goto shiftElevated
    1120
    1221:deleteTempFile
    13 del testing.tmp
     22    echo ... OK
     23    del "%GSDLHOME%\testing.tmp"
    1424
    1525:shiftElevated
    1626:: Shift "Elevated" (one of our own internal command words) out of the way if present
    1727:: so the command-line is as it was when the user initiated the command
    18 if "%1" == "Elevated" shift
     28    if "%1" == "Elevated" shift
    1929
    2030if exist .\bin\windows\search4j.exe .\bin\windows\search4j.exe -p .\packages\jre -l .\uninst.jar
Note: See TracChangeset for help on using the changeset viewer.