create a multi program installer with chocolatey

0

There is some way to create a multi installer programs through chocolatey, create in a file .bat or .cmd where to install install chocolatey and often start installing a list of previously created programs, and install the latest version of each. Let only execute the file and start to install everything alone.

    
asked by Stivents 04.10.2018 в 23:29
source

1 answer

0

Personally, I use a script (to which I am adding more software and settings) for each installation I make on my computer. The following is part of the script:

If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole('
    [Security.Principal.WindowsBuiltInRole] “Administrator”)) {
    Write-Host “You do not have Administrator rights to run this script!'nPlease re-run this script as an Administrator!”
    Break
}

#Execution policy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force

#Install Chocolatey
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex

#Install software from Chocolatey
choco install powershell -y
choco install google-chrome-x64 -y
choco install visualstudiocode -y
choco install vscode-powershell -y
choco install docker -y
choco install inkscape -y
choco install 7zip -y
choco install slack -y
choco install vlc -y
choco install wunderlist -y

#install git y revisar error de Chrome

#Remove all desktop shortcuts
Remove-Item C:\Users\*\Desktop\*lnk –Force

This could be a way, since with Chocolatey you always install the latest version.

    
answered by 05.10.2018 в 11:05