This repository has been archived on 2023-05-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
SysTools/InstallTools/Install-Chocolatey.cmd
2021-07-15 15:28:03 +02:00

22 lines
997 B
Batchfile

@echo off
REM #############################################################
REM # @description: #
REM # Downloads and install Chocolatry #
REM # This tools is used for installing and managing software #
REM # #
REM # @project: IMGSystTools #
REM # @author: Bram Prieshof #
REM #############################################################
NET SESSION >nul 2>&1
IF %ERRORLEVEL% EQU 0 (
PowerShell.exe "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))"
ECHO Chocolatey installed
PAUSE
) ELSE (
ECHO Please run this script as administrator
PAUSE
)