Changeset 22573 for main/trunk/release-kits
- Timestamp:
- 2010-08-05T09:49:08+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/release-kits/shared/core/uninstaller/Uninstall.bat
r22532 r22573 3 3 4 4 :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 10 13 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 11 20 12 21 :deleteTempFile 13 del testing.tmp 22 echo ... OK 23 del "%GSDLHOME%\testing.tmp" 14 24 15 25 :shiftElevated 16 26 :: Shift "Elevated" (one of our own internal command words) out of the way if present 17 27 :: so the command-line is as it was when the user initiated the command 18 if "%1" == "Elevated" shift28 if "%1" == "Elevated" shift 19 29 20 30 if 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.