Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 9ae942b

Browse files
authored
Merge pull request #45 from Romanitho/fix-uninstall-multiple-apps-at-once
Fixes multiple app uninstallations at once
2 parents 145753a + f21a3bb commit 9ae942b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Compiler/ps2exe_script.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ $InputFile = "$Path\Sources\Winget-Install-GUI.ps1"
77
$OutputFile = "$Path\Compiler\WiGui.exe"
88
$Icon = "$Path\Sources\WiGui.ico"
99
$Title = "WiGui"
10-
$AppVersion = "1.6.1"
10+
$AppVersion = "1.6.2"
1111
Invoke-ps2exe -inputFile $InputFile -outputFile $OutputFile -noConsole -requireAdmin -title $Title -version $AppVersion -copyright "Romanitho" -product $Title -icon $Icon -noerror

Sources/Winget-Install-GUI.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ param(
1818

1919
<# APP INFO #>
2020

21-
$Script:WiGuiVersion = "1.6.1"
21+
$Script:WiGuiVersion = "1.6.2"
2222
$Script:WAUGithubLink = "https://github.com/Romanitho/Winget-AutoUpdate/archive/refs/tags/v1.11.4.zip"
2323
$Script:WIGithubLink = "https://github.com/Romanitho/Winget-Install/archive/refs/tags/v1.7.4.zip"
2424
$Script:WingetLink = "https://github.com/microsoft/winget-cli/releases/download/v1.3.1391-preview/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
@@ -1135,9 +1135,10 @@ function Start-Uninstallations ($AppToUninstall) {
11351135
Get-GithubRepository $WIGithubLink
11361136
}
11371137

1138-
#Run Winget-Install
1138+
#Run Winget-Install -Uninstall
11391139
$WIInstallFile = (Resolve-Path $TestPath)[0].Path
1140-
Start-Process "powershell.exe" -Argument "-NoProfile -ExecutionPolicy Bypass -Command `"$WIInstallFile -AppIDs $AppToUninstall -Uninstall`"" -Wait -Verb RunAs
1140+
$AppsToUninstall = "'$($AppToUninstall -join "','")'"
1141+
Start-Process "powershell.exe" -Argument "-NoProfile -ExecutionPolicy Bypass -Command `"$WIInstallFile -AppIDs $AppsToUninstall -Uninstall`"" -Wait -Verb RunAs
11411142

11421143
Close-PopUp
11431144
}

0 commit comments

Comments
 (0)