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

17 lines
No EOL
619 B
AutoIt
Executable file

#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=SETUP_CUST.ico
#AutoIt3Wrapper_Outfile_x64=Releases\ChocolateyCustom.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
if not FileExists(@ScriptDir & "\ChocoPackages.ini") Then
IniWrite(@ScriptDir & "\ChocoPackages.ini","Packages","PACKAGES","")
Exit(1)
EndIf
$packages = IniRead(@ScriptDir & "\ChocoPackages.ini","Packages","PACKAGES","424242")
if $packages = "424242" Then
Exit(1)
EndIf
Run("choco feature enable -n=allowGlobalConfirmation")
Run("choco install " & $packages)