Tyleo-Dev-AutoIT-Oldies/ChocoSetup/ChocolateySetup.au3
2024-02-18 22:17:39 +01:00

13 lines
No EOL
759 B
AutoIt
Executable file

#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=SETUP.ico
#AutoIt3Wrapper_Outfile_x64=Releases\ChocoSetup.Exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
$ChocoGlobal = "choco feature enable -n=allowGlobalConfirmation"
$ChocoCMD = "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"
Run("powershell" & " " & $ChocoCMD)
Run("cmd" & " /c " & $ChocoGlobal)
If FileExists(@ScriptDir & "\ChocolateyCustom.exe") Then
Run(@ScriptDir & "\ChocolateyCustom.exe")
EndIf