Skip to content

Commit

Permalink
Update Install.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
haavarstein committed Jan 16, 2019
1 parent 8f99717 commit f9ed1bf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions 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
Expand All @@ -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

Expand All @@ -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
Expand Down

0 comments on commit f9ed1bf

Please sign in to comment.