Changeset 22532


Ignore:
Timestamp:
2010-07-30T16:55:38+12:00 (11 years ago)
Author:
sjm84
Message:

Uninstall.bat will now ask for elevated permissions if it cannot write to the directory in which it resides

File:
1 edited

Legend:

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

    r19461 r22532  
    11@echo off
    22CD /D "%~dp0"
     3
     4:checkUserPermissions
     5echo Checking if the collection directory is writable...
     6echo This is a temporary file. It is safe to delete it. > testing.tmp 2>nul
     7if 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
     10    goto done
     11
     12:deleteTempFile
     13del testing.tmp
     14
     15:shiftElevated
     16:: Shift "Elevated" (one of our own internal command words) out of the way if present
     17:: so the command-line is as it was when the user initiated the command
     18if "%1" == "Elevated" shift
     19
    320if exist .\bin\windows\search4j.exe .\bin\windows\search4j.exe -p .\packages\jre -l .\uninst.jar
    421
Note: See TracChangeset for help on using the changeset viewer.