From 5b91e03b3f779aff5016a2310ffebaf7f6f08949 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 24 Jan 2017 10:00:39 +0800 Subject: remove install.bat --- install.bat | 62 ------------------------------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 install.bat diff --git a/install.bat b/install.bat deleted file mode 100644 index 080d3989b..000000000 --- a/install.bat +++ /dev/null @@ -1,62 +0,0 @@ -@echo off - -rem get the admin permissions ->nul 2>&1 "%systemroot%\system32\cacls.exe" "%systemroot%\system32\config\system" -if '%errorlevel%' neq '0' ( - echo requesting administrative privileges... - goto uac_prompt -) else ( goto got_admin ) - -:uac_prompt - echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" - echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" - - "%temp%\getadmin.vbs" - exit -B - -:got_admin - if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" ) - pushd "%cd%" - cd /D "%~dp0" - -rem create the xmake install directory -if %PROCESSOR_ARCHITECTURE%==x86_64 ( - set xmake_dir_install_default=C:\Program Files (x86^)\xmake -) else if %PROCESSOR_ARCHITECTURE%==AMD64 ( - set xmake_dir_install_default=C:\Program Files (x86^)\xmake -) else ( - set xmake_dir_install_default=C:\Program Files\xmake -) -echo please input the install directory -if not "%1" == "noinput" set /p xmake_dir_install=(default: %xmake_dir_install_default%): -if "%xmake_dir_install%"=="" set xmake_dir_install=%xmake_dir_install_default% -if exist "%xmake_dir_install%" rmdir /s /q "%xmake_dir_install%" -if not exist "%xmake_dir_install%" mkdir "%xmake_dir_install%" - -rem compile xmake-core -rem echo compiling xmake-core... -rem set XMAKE_PROGRAM_DIR=%~dp0\xmake -rem cd core -rem ..\tools\xmake.exe f -c -rem ..\tools\xmake.exe -rem cd .. - -rem install the xmake core file -echo installing xmake-core... -rem set xmake_core=core\build\demo.exe -set xmake_core=tools\xmake.exe -set xmake_core_install=%xmake_dir_install%\xmake.exe -copy /Y "%xmake_core%" "%xmake_core_install%" > install.log - -rem install the xmake directory -xcopy /S /Q /Y "xmake" "%xmake_dir_install%" >> install.log - -rem set global PATH=%xmake_dir_install% -echo register xmake... -echo %path% | findstr /i /C:"%xmake_dir_install%" >> nul && (goto set_path_ok) -tools\dtreg.exe -MachineEnvSet path="%path%;%xmake_dir_install%" >> install.log -:set_path_ok - -rem ok -echo ok! -if not "%1" == "noinput" pause -- cgit v1.3.1