-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.bat
28 lines (19 loc) · 977 Bytes
/
setup.bat
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
set "rustupVersion=1.25.1"
set "$sqliteVersion=3.12.2"
choco -V >> NUL
IF %ErrorLevel% NEQ 0 @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command " [System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
rustup --help >> NUL
IF %ErrorLevel% NEQ 0 choco install rustup.install -y --version %rustupVersion%
set "url=https://download.sqlitebrowser.org/SQLiteDatabaseBrowserPortable_3.12.2_English.paf.exe"
set "outputFile=SQLiteDatabaseBrowserPortable_3.12.2_English.paf.exe"
set "installerPath=%outputFile%"
curl -O %url%
if %errorlevel% neq 0 (
echo Error: Failed to download the sqlitebrowser installer file.
exit /b 1
)
echo Download completed successfully.
echo Running the installer...
start "" "%installerPath%"
refreshenv