3 if "%1"=="" goto show_usage
5 rem Instead of running the script from the current location
6 rem we copy ourselves over to the TMP directory and run
9 if not "%2"=="intemp" goto copy_and_run
11 rem Do the actual work
14 echo This will replace the current installation of OpenAFS with
15 echo the upgraded version at :
17 set /p response=Continue? (y/n):
18 if "%response%"=="y" goto do_this
19 if "%response%"=="Y" goto do_this
22 echo Cancelling. No changes were made to your computer.
32 msiexec /fvomus "%~f1"
41 copy "%~f0" "%TMP%\tmp_replace_afs.cmd"
42 "%TMP%\tmp_replace_afs.cmd" "%~f1" intemp
47 echo %0: Upgrade an existing installation of OpenAFS
49 echo This command replaces the existing installation with a new
50 echo installation. You need to obtain the new .MSI from openafs.org
51 echo and run this command as follows :
53 echo %0 [path to new .msi]
55 echo The latest release can be found at the following URL:
56 echo http://www.openafs.org/release/latest.html