Tyleo-Dev-AutoIT-Oldies/ChocoSetup/ChocolateyCustom.au3

17 lines
619 B
AutoIt
Raw Normal View History

2024-02-18 21:17:39 +00:00
#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)