aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--download.ps18
1 files changed, 3 insertions, 5 deletions
diff --git a/download.ps1 b/download.ps1
index b77b8f5..4abe754 100644
--- a/download.ps1
+++ b/download.ps1
@@ -24,11 +24,9 @@ Write-Output "Target: $target"
Write-Output "Target dir: $targetdir"
Write-Output "Log file: $logfile"
-# $client = New-Object System.Net.WebClient
-# $client.DownloadFile($url, $target)
+$client = New-Object System.Net.WebClient
+$client.DownloadFile($url, $target)
-# ((Get-Content -path unattend.xml.in -raw) -replace 'TARGET_DIR',$targetdir) | Set-Content -path unattend.xml
-
-# & "$target" /quiet /log "$logfile"
+((Get-Content -path unattend.xml.in -raw) -replace 'TARGET_DIR',$targetdir) | Set-Content -path unattend.xml
Start-Process -FilePath "$target" -ArgumentList "/quiet","/log","$logfile" -Wait