Skip to content

Commit

Permalink
AnswerFileTemplates/base: add Function Install-NuGet
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhong Yin <[email protected]>
  • Loading branch information
tcler committed Sep 3, 2023
1 parent 8294580 commit 6fa14b2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions AnswerFileTemplates/base/postinstall.ps1.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ Function Sync-Time {
}
}

Function Install-NuGet {
param([string]$curl = "https://dist.nuget.org/win-x86-commandline/v3.3.0/nuget.exe")
$progPath='C:\Program Files'
$target = "$progPath\nuget.exe"

echo "[info] download $curl to $target ..."
Invoke-WebRequest $curl -OutFile $target
Set-Alias nuget $target -Scope Global -Verbose
}

Function virtio-win-install() {
param([string]$AnsfDrvLetter)
$msifile, $exefile, $drvDir = "", "", ""
Expand Down

0 comments on commit 6fa14b2

Please sign in to comment.