Last active
August 29, 2015 13:59
-
-
Save shafi-codez/10923731 to your computer and use it in GitHub Desktop.
MyPackages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cinst git | |
cinst notepadplusplus | |
cinst GoogleChrome | |
cinst 7zip | |
cinst javaruntime | |
cinst flashplayeractivex | |
cinstm skydrive | |
cinst XmlNotepad | |
cinst python | |
cinst ccleaner | |
cinst mysql.workbench | |
cinst putty | |
cinst virtualbox | |
cinst sublimetext2 | |
cinst Wget | |
cinst easy.install | |
cinst PDFCreator | |
cinst winmerge | |
cinst winscp | |
cinst teamviewer | |
cinst launchy | |
cinst pip | |
cinst vagrant | |
cinst java.jdk | |
cinst boxstarter | |
or | |
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="vlc"/> | |
<package id="quicktime"/> | |
<package id="Teracopy"/> | |
<package id="7zip.install"/> | |
<package id="git.install"/> | |
</packages> | |
or | |
# Autoinstall script using chocolatey | |
# Note: Net 4.0 must be installed prior to running this script | |
# | |
#Modify this line to change packages | |
$items = @("vlc", "quicktime", "Teracopy", "7zip.install", "git.install" ) | |
# Create packages.config based on passed arguments | |
$xml = '<?xml version="1.0" encoding="utf-8"?>'+ "`n" +'<packages>' + "`n" | |
foreach ($item in $items) | |
{ | |
$xml += "`t" +'<package id="' + $item + '"/>' + "`n" | |
} | |
$xml += '</packages>' | |
$file = "C:\Users\sulla\packages.config") | |
$xml | out-File $file | |
# Install chocolatey | |
#iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
cinst $file | |
# Delete packages.config | |
Remove-Item $file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment