Skip to content

Instantly share code, notes, and snippets.

@nvnivs
Last active October 22, 2015 10:24
Show Gist options
  • Save nvnivs/f3541a9d083c8caf0b04 to your computer and use it in GitHub Desktop.
Save nvnivs/f3541a9d083c8caf0b04 to your computer and use it in GitHub Desktop.
@PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/z0c/f3541a9d083c8caf0b04/raw/'))"
<#
.Synopsis
Installs all required components for Vuture Vx development on a vanilla environment
.Link
https://gist.github.com/z0c/f3541a9d083c8caf0b04
#>
# DEPRECATED: Moving to Chef
# Broken due to changes in chocolatey 0.9.9
# Custom package sources not implemented in current version of chocolatey
# Need fix on Invoke-Choco for quotes in install arguments
function Invoke-Choco {
param (
[parameter(Position=0, Mandatory=$true)]
[string]
$package,
[string] $source,
[string] $arguments,
[switch] $overrideArguments,
[string] $version,
[switch] $x86,
[switch] $force
)
$command = "Choco install $package -y"
if (-not ([string]::IsNullOrEmpty($source))) {
$command += " -s $source"
}
if (-not ([string]::IsNullOrEmpty($arguments))) {
$command += " --ia '$arguments'"
}
if ($overrideArguments) {
$command += " -o"
}
if (-not ([string]::IsNullOrEmpty($version))) {
$command += " --version $version"
}
if ($x86) {
$command += " -x86"
}
if ($force) {
$command += " -force"
}
$command
Invoke-Expression $command
if ($lastexitcode -ne 0) {
Write-Error "Setup $package failed"
Exit -1
}
}
$ErrorActionPreference = "Stop"
if ((Get-Command Choco -ErrorAction SilentlyContinue) -eq $null) {
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
}
Invoke-Choco VisualStudio2013Professional -arguments '"/Features:''WebTools'' "'
Invoke-Choco WebDeploymentProjects2010
Invoke-Choco ReSharper -version 8.2.3000.5176
Invoke-Choco DotCover -version 2.7.0.662
# Copy MsBuild Web extensions to v10 folder so they can be picked up by WebDeploymentProjects2010
if (!(Test-Path("C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web"))) {
Copy-Item "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web" "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web" -Recurse
Write-Output ("Copied MsBuild extensions for Web")
}
# Microsoft Visual C++ 2010 SP1 Redistributable Package required by TortoiseSvn on newer versions of Windows
# to fix 'Mfc100u.dll is missing' when launching the GUI
# Invoke-Choco VcRedist2010
#Invoke-Choco AnkhSvn
Invoke-Choco CCTray
Invoke-Choco HMailServer
# Persits email agent .net: currently does not support silent installations
Invoke-Choco Nagstamon
Invoke-Choco GoogleChrome
Invoke-Choco Firefox
Invoke-Choco Fiddler4
Invoke-Choco NotepadPlusPlus
Invoke-Choco AdobeReader
Invoke-Choco RdTabs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment