diff --git a/Nutanix/VirtIO/Install.ps1 b/Nutanix/VirtIO/Install.ps1 index dde52d5..0e81474 100644 --- a/Nutanix/VirtIO/Install.ps1 +++ b/Nutanix/VirtIO/Install.ps1 @@ -1,13 +1,9 @@ # PowerShell Wrapper for MDT, Standalone and Chocolatey Installation - (C)2015 xenappblog.com - # Example 1: Start-Process "XenDesktopServerSetup.exe" -ArgumentList $unattendedArgs -Wait -Passthru - # Example 2 Powershell: Start-Process powershell.exe -ExecutionPolicy bypass -file $Destination - # Example 3 EXE (Always use ' '): # $UnattendedArgs='/qn' # (Start-Process "$PackageName.$InstallerType" $UnattendedArgs -Wait -Passthru).ExitCode - # Example 4 MSI (Always use " "): # $UnattendedArgs = "/i $PackageName.$InstallerType ALLUSERS=1 /qn /liewa $LogApp" # (Start-Process msiexec.exe -ArgumentList $UnattendedArgs -Wait -Passthru).ExitCode @@ -26,6 +22,7 @@ $LogApp = "${env:SystemRoot}" + "\Temp\$PackageName.log" $Destination = "${env:ChocoRepository}" + "\$Vendor\$Product\$Version\$packageName.$installerType" $UnattendedArgs = "/i $PackageName.$InstallerType ALLUSERS=1 /qn /liewa $LogApp" $url = "http://download.nutanix.com/mobility/1.1.3/Nutanix-VirtIO-1.1.3.msi" +$ProgressPreference = 'SilentlyContinue' Start-Transcript $LogPS @@ -38,7 +35,7 @@ CD $Version Write-Verbose "Downloading $Vendor $Product $Version" -Verbose If (!(Test-Path -Path $Source)) { - Invoke-WebRequest -Uri $url -OutFile $Source + Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $Source } Else { Write-Verbose "File exists. Skipping Download." -Verbose