Skip to content

Commit

Permalink
Add a simply Windows dependency install script
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Jul 20, 2019
1 parent 951f406 commit a4d1d04
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions setup/win/install_deps.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
@echo off

net session >nul 2>&1

if %errorLevel% NEQ 0 (
echo Need Administrator permission to install dependencies
pause
exit
)

where choco >nul 2>&1

if %errorLevel% == 0 (
echo Found Chocolatey
choco --version
) else (
echo Install Chocolatey...
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
)

if exist "C:\Program Files (x86)\Inno Setup 5\ISCC.exe" (
echo Found Inno Setup v5
) else (
choco install innosetup --version=5.6.1 -y
)

if exist "C:\Program Files (x86)\Inno Download Plugin\idp.iss" (
echo Found Inno Download Plugin
) else (
choco install inno-download-plugin -y
)

if exist "C:\lazarus\lazbuild.exe" (
echo Found Lazarus
) else (
choco install lazarus --x86 -y
)

if exist "C:\Program Files\Git\git-cmd.exe" (
echo Found git
) else (
choco install git -y
)

pause

0 comments on commit a4d1d04

Please sign in to comment.