Skip to content

Instantly share code, notes, and snippets.

@degnome
Last active August 29, 2015 13:56
Show Gist options
  • Save degnome/9121355 to your computer and use it in GitHub Desktop.
Save degnome/9121355 to your computer and use it in GitHub Desktop.
Win7-DevMachine-Free
try {
# Configure basic system settings
Update-ExecutionPolicy Unrestricted
# Standard packages to install
cinst VisualStudio2013ExpressWeb
cinst mssqlserver2012express
cinst git-credential-winstore
cinst poshgit
cinst Firefox
cinst GoogleChrome
cinst SublimeText3
cinst SublimeText3.PackageControl
cinst SourceTree
cinst nunit
Install-WindowsUpdate -AcceptEula
# Create taskbar items
Install-ChocolateyPinnedTaskBarItem "$($boxstarter.programfiles86)\Google\Chrome\Application\chrome.exe"
Install-ChocolateyPinnedTaskBarItem "$($boxstarter.programfiles86)\Mozilla Firefox\firefox.exe"
Install-ChocolateyPinnedTaskBarItem "$env:windir\system32\WindowsPowerShell\v1.0\powershell.exe"
Install-ChocolateyPinnedTaskBarItem "$($boxstarter.programfiles86)\NUnit 2.6.3\bin\nunit-x86.exe"
Install-ChocolateyPinnedTaskBarItem "$($boxstarter.programfiles86)\Atlassian\SourceTree\SourceTree.exe"
Install-ChocolateyPinnedTaskBarItem "$($boxstarter.programfiles86)\Microsoft Visual Studio 12.0\Common7\IDE\VWDExpress.exe"
$EnvPath=(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).Path
$EnvPath+=";C:\Program Files (x86)\MSBuild\12.0\Bin;C:\Program Files (x86)\NUnit 2.6.3\bin"
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH –Value $EnvPath
Write-ChocolateySuccess 'boxstarter.desktop'
} catch {
Write-ChocolateyFailure 'boxstarter.desktop' $($_.Exception.Message)
throw
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment