Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit a0d7ef6

Browse files
authored
Update winget-install.ps1
add comment and remove comma
1 parent fa376f0 commit a0d7ef6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

winget-install.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Forward Winget App ID to install. For multiple apps, separate with ",". Case sen
1313
.PARAMETER Uninstall
1414
To uninstall app. Works with AppIDs
1515
16+
.PARAMETER AllowUpgrade
17+
To allow upgrade app if present. Works with AppIDs
18+
1619
.PARAMETER LogPath
1720
Used to specify logpath. Default is same folder as Winget-Autoupdate project
1821
@@ -34,6 +37,9 @@ If '-Uninstall' is used, it removes the app from WAU White List.
3437
3538
.EXAMPLE
3639
.\winget-install.ps1 -AppIDs "7zip.7zip -v 22.00", "Notepad++.Notepad++"
40+
41+
.EXAMPLE
42+
.\winget-install.ps1 -AppIDs "Notepad++.Notepad++" -AllowUpgrade
3743
#>
3844

3945
[CmdletBinding()]
@@ -42,7 +48,7 @@ param(
4248
[Parameter(Mandatory = $False)] [Switch] $Uninstall,
4349
[Parameter(Mandatory = $False)] [String] $LogPath,
4450
[Parameter(Mandatory = $False)] [Switch] $WAUWhiteList,
45-
[Parameter(Mandatory = $False)] [Switch] $AllowUpgrade,
51+
[Parameter(Mandatory = $False)] [Switch] $AllowUpgrade
4652
)
4753

4854

0 commit comments

Comments
 (0)