Prepare ms-private 0.0.1 release candidate
This commit is contained in:
1 parent
7aacc0b63f
commit
a515538438
75 files changed
+3957
-3484
No files matched your search
+3
-1
@@ -12,7 +12,9 @@ foreach ($name in @($App | Select-Object -Unique)) {
|
||||
if ($PSCmdlet.ShouldProcess($package.Id, 'Install from exact WinGet community-source package; retain installer prompts')) {
|
||||
$winget = Get-Command winget.exe -ErrorAction Stop
|
||||
# No bypassed hash checks, remote PowerShell execution, automatic source/license acceptance or forced restart.
|
||||
& $winget.Source install --id $package.Id --exact --source winget --interactive
|
||||
& $winget.Source install --id $package.Id --exact --source winget --interactive --disable-interactivity
|
||||
if ($LASTEXITCODE -ne 0) { throw "WinGet returned $LASTEXITCODE for $name. Installation was not confirmed; inspect its output." }
|
||||
& $winget.Source list --id $package.Id --exact --source winget --disable-interactivity | Out-Host
|
||||
if ($LASTEXITCODE -ne 0) { throw "$name was not found after the installer returned success." }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user