-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.bat
More file actions
28 lines (24 loc) · 774 Bytes
/
Copy pathinstall.bat
File metadata and controls
28 lines (24 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off
setlocal
cd /d "%~dp0"
title LocalSoundsAPI - One-Click Setup
if not exist "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" (
echo.
echo ERROR: Windows PowerShell is required to install LocalSoundsAPI.
echo This installer supports 64-bit Windows 10 and Windows 11.
echo.
pause
exit /b 1
)
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" ^
-NoLogo -NoProfile -ExecutionPolicy Bypass ^
-File "%~dp0scripts\install.ps1" %*
set "INSTALL_EXIT_CODE=%ERRORLEVEL%"
if not "%INSTALL_EXIT_CODE%"=="0" (
echo.
echo Setup did not complete. Read the error above, then run install.bat again.
echo An interrupted download will be resumed where possible.
echo.
pause
)
exit /b %INSTALL_EXIT_CODE%