install-windows.bat 1.2 KB

123456789101112131415161718192021222324
  1. @ECHO OFF
  2. REM
  3. REM Copyright (c) Contributors to the Open 3D Engine Project.
  4. REM For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. REM
  6. REM SPDX-License-Identifier: Apache-2.0 OR MIT
  7. REM
  8. REM
  9. @SETLOCAL enableDelayedExpansion
  10. rem Constants for the install script
  11. rem DP0 includes a slash at the end, so we capture it in a SET to append data after it...
  12. set BATCH_FILE_DIR=%~dp0
  13. rem detect whether we are double clicked or running from a command line:
  14. @echo %SCRIPT:~0,1% | findstr /l %DQUOTE% > NUL
  15. if %ERRORLEVEL% EQU 0 set WAS_DOUBLE_CLICKED=1
  16. PowerShell -NoProfile -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""./install-windows-buildtools.ps1""' -Verb RunAs}"
  17. PowerShell -NoProfile -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""./install-windows-python3.ps1""' -Verb RunAs}"
  18. PowerShell -NoProfile -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""./install-windows-vsbuildtools.ps1""' -Verb RunAs}"
  19. PowerShell -NoProfile -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""./install-windows-android.ps1""' -Verb RunAs}"