File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -151,10 +151,9 @@ function InstallWinGet {
151151 pwsh.exe - MTA - Command " Set-PSRepository -Name PSGallery -InstallationPolicy Trusted"
152152
153153 # check if the Microsoft.Winget.Client module is installed
154- $wingetClientPackage = Get-Module - ListAvailable - Name Microsoft.WinGet.Client | Where-Object { $_.Version -ge " 1.9.2411" }
154+ $wingetClientPackage = pwsh.exe - Command " Get-Module -ListAvailable -Name Microsoft.WinGet.Client | Where-Object { ` $ _.Version -ge ' 1.9.2411' } "
155155 if (! ($wingetClientPackage )) {
156156 Write-Host " Installing Microsoft.Winget.Client"
157- Install-Module Microsoft.WinGet.Client - Scope $PsInstallScope
158157 pwsh.exe - MTA - Command " Install-Module Microsoft.WinGet.Client -Scope $PsInstallScope "
159158 Write-Host " Done Installing Microsoft.Winget.Client"
160159 }
@@ -163,7 +162,7 @@ function InstallWinGet {
163162 }
164163
165164 # check if the Microsoft.WinGet.Configuration module is installed
166- $wingetConfigurationPackage = Get-Module - ListAvailable - Name Microsoft.WinGet.Configuration | Where-Object { $_.Version -ge " 1.8.1911" }
165+ $wingetConfigurationPackage = pwsh.exe - Command " Get-Module -ListAvailable -Name Microsoft.WinGet.Configuration | Where-Object { ` $ _.Version -ge ' 1.8.1911' } "
167166 if (! ($wingetConfigurationPackage )) {
168167 Write-Host " Installing Microsoft.WinGet.Configuration"
169168 pwsh.exe - MTA - Command " Install-Module Microsoft.WinGet.Configuration -AllowPrerelease -Scope $PsInstallScope "
Original file line number Diff line number Diff line change @@ -162,19 +162,18 @@ function InstallWinGet {
162162 pwsh.exe - MTA - Command " Set-PSRepository -Name PSGallery -InstallationPolicy Trusted"
163163
164164 # check if the Microsoft.Winget.Client module is installed
165- $wingetClientPackage = Get-Module - ListAvailable - Name Microsoft.WinGet.Client | Where-Object { $_.Version -ge " 1.9.2411" }
165+ $wingetClientPackage = pwsh.exe - Command " Get-Module -ListAvailable -Name Microsoft.WinGet.Client | Where-Object { ` $ _.Version -ge ' 1.9.2411' } "
166166 if (! ($wingetClientPackage )) {
167- Write-Host " Installing Microsoft.Winget.Client -RequiredVersion 1.9.25190"
168- Install-Module Microsoft.WinGet.Client - Scope $PsInstallScope - RequiredVersion 1.9 .25190
169- pwsh.exe - MTA - Command " Install-Module Microsoft.WinGet.Client -Scope $PsInstallScope -RequiredVersion 1.9.25190"
167+ Write-Host " Installing Microsoft.Winget.Client"
168+ pwsh.exe - MTA - Command " Install-Module Microsoft.WinGet.Client -Scope $PsInstallScope "
170169 Write-Host " Done Installing Microsoft.Winget.Client"
171170 }
172171 else {
173172 Write-Host " Microsoft.Winget.Client is already installed"
174173 }
175174
176175 # check if the Microsoft.WinGet.Configuration module is installed
177- $wingetConfigurationPackage = Get-Module - ListAvailable - Name Microsoft.WinGet.Configuration | Where-Object { $_.Version -ge " 1.8.1911" }
176+ $wingetConfigurationPackage = pwsh.exe - Command " Get-Module -ListAvailable -Name Microsoft.WinGet.Configuration | Where-Object { ` $ _.Version -ge ' 1.8.1911' } "
178177 if (! ($wingetConfigurationPackage )) {
179178 Write-Host " Installing Microsoft.WinGet.Configuration"
180179 pwsh.exe - MTA - Command " Install-Module Microsoft.WinGet.Configuration -Scope $PsInstallScope "
You can’t perform that action at this time.
0 commit comments