Skip to content

Commit

Permalink
Windows - packages_install.ps1: Fix scoop installation error
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-revay committed Dec 18, 2024
1 parent 8e6ccd8 commit 03e9c94
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Windows_1X/packages_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ Set-PSDebug -Trace 1
$ErrorActionPreference = "Stop"

# Install Scoop
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
# TODO an attempt to reload the path (investigate further)
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
if (-not (Get-Command scoop -ErrorAction SilentlyContinue)) {

Check notice

Code scanning / Psscriptanalyzer (reported by Codacy)

Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead. Note

Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead.
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

Check notice

Code scanning / Psscriptanalyzer (reported by Codacy)

Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead. Note

Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead.
# TODO an attempt to reload the path (investigate further)
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
}
# TODO uncomment the next line resp. fix it so that it works and (scoop is not found right after the installation, probably path problem)
scoop install windows-virtualdesktop-helper

Expand Down

0 comments on commit 03e9c94

Please sign in to comment.