Skip to content

Commit

Permalink
Install NuGet
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoobdude authored Nov 5, 2024
1 parent 2e18cde commit 605218b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ try {
# Delete config file after use
Remove-Item -Path .\config.json

# Install Scoop
# Install required PS module
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Scope CurrentUser -Force
Install-Module -Name Microsoft.PowerShell.Archive -Scope CurrentUser -Force

# Install Scoop
if (!(Get-Command "scoop" -errorAction SilentlyContinue)){
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
Expand Down

0 comments on commit 605218b

Please sign in to comment.