22 lines
997 B
Batchfile
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
|
|
)
|
|
|