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

Commit 55b1e48

Browse files
authored
Merge pull request #27 from Romanitho/dev
Minor changes
2 parents a63bef7 + 4b9c2f9 commit 55b1e48

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Sources/Winget-Install-GUI.ps1

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ param(
1717
)
1818

1919
<# APP INFO #>
20+
2021
$Script:WiGuiVersion = "1.5.1"
2122
$Script:WAUGithubLink = "https://github.com/Romanitho/Winget-AutoUpdate/archive/refs/tags/v1.11.0.zip"
2223
$Script:WIGithubLink = "https://github.com/Romanitho/Winget-Install/archive/refs/tags/v1.6.0.zip"
23-
$Script:WingetLink = "https://github.com/microsoft/winget-cli/releases/download/v1.3.1251-preview/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
24+
$Script:WingetLink = "https://github.com/microsoft/winget-cli/releases/download/v1.3.1391-preview/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
2425

2526
<# FUNCTIONS #>
2627

@@ -228,7 +229,7 @@ function Get-WingetAppInfo ($SearchApp){
228229
return $upgradeList
229230
}
230231

231-
function Get-InstallGUI {
232+
function Start-InstallGUI {
232233

233234
## FORM ##
234235
#
@@ -1087,15 +1088,16 @@ function Get-WiGuiLatestVersion {
10871088
## RETURNS ##
10881089
$WiGuiUpdRespond = $WiGuiUpdate.ShowDialog()
10891090

1090-
if ($WiGuiUpdRespond -eq "OK"){
1091-
Break
1092-
}
1093-
10941091
}
10951092

10961093
#Show Wait form
10971094
Close-PopUp
10981095

1096+
if ($WiGuiUpdRespond -eq "OK"){
1097+
Remove-Item -Path $Location -Force -Recurse -ErrorAction SilentlyContinue
1098+
Break
1099+
}
1100+
10991101
}
11001102

11011103

@@ -1127,7 +1129,7 @@ Get-WiGuiLatestVersion
11271129
Get-WingetStatus
11281130

11291131
#Run WiGui
1130-
Get-InstallGUI
1132+
Start-InstallGUI
11311133

11321134
#Remove temp items
11331135
Remove-Item -Path $Location -Force -Recurse -ErrorAction SilentlyContinue

0 commit comments

Comments
 (0)