﻿
$ErrorActionPreference = 'Stop';


$packageName= 'VisualStudio15'
$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url        = 'http://download.microsoft.com/download/7/e/9/7e931754-39ee-4bbf-9e31-12a193943c62/vs_enterprise.exe'
$url64      = $url

$packageArgs = @{
  packageName   = $packageName
  unzipLocation = $toolsDir
  fileType      = 'EXE'
  url           = $url
  url64bit      = $url64

  silentArgs	=	"/Q /L `"$($env:TEMP)\chocolatey\$($packageName)\$($packageName).MsiInstall.log`" /norestart /passive /S"
  validExitCodes= @(0, 3010, 1641)

  softwareName  = 'Microsoft Visual Studio Enterprise 15*'
  checksum      = ''
  checksumType  = 'md5'
  checksum64    = ''
  checksumType64= 'md5'
}

Install-ChocolateyPackage @packageArgs
﻿
$ErrorActionPreference = 'Stop';


$packageName= 'VisualStudio15'
$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url        = 
$url64      = $url

Get-ChocolateyWebFile 'VisualStudio15' "$env:temp\vs15.preview2.ent_enu.iso" 'http://download.microsoft.com/download/f/a/5/fa54602e-9782-45d9-a410-a837da46acc3/vs15.preview2.ent_enu.iso'
imdisk -a -f "$env:temp\vs15.preview2.ent_enu.iso" -m "w:"
Install-ChocolateyInstallPackage 'VisualStudio15' 'exe' '/q' 'w:\Setup.exe'
imdisk -d -m w:
Change VisualStudio15 to ISO-based install
Change VisualStudio15 to ISO-based install
