Skip to content

Commit 0837833

Browse files
authored
Merge pull request #15 from agret/patch-1
Update Download.ps1 with missing products
2 parents 29a4480 + de8842f commit 0837833

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Download.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Choose Office channel: 2019, 2021, 2024, and 365
1010
1111
.PARAMETER Components
12-
Choose Office components: Access, OneDrive, Outlook, Word, Excel, PowerPoint, Teams
12+
Choose Office components: Access, OneDrive, Outlook, Word, Excel, PowerPoint, Teams, OneNote, Publisher
1313
1414
.EXAMPLE Download Office 2019 with the Word, Excel, PowerPoint components
1515
Download.ps1 -Branch ProPlus2019Retail -Channel Current -Components Word, Excel, PowerPoint
@@ -46,7 +46,7 @@ param
4646
$Channel,
4747

4848
[Parameter(Mandatory = $true)]
49-
[ValidateSet("Access", "OneDrive", "Outlook", "Word", "Excel", "PowerPoint", "Teams")]
49+
[ValidateSet("Access", "OneDrive", "Outlook", "Word", "Excel", "OneNote", "Publisher", "PowerPoint", "Teams")]
5050
[string[]]
5151
$Components
5252
)
@@ -208,6 +208,16 @@ foreach ($Component in $Components)
208208
$Node = $Config.SelectSingleNode("//ExcludeApp[@ID='PowerPoint']")
209209
$Node.ParentNode.RemoveChild($Node)
210210
}
211+
OneNote
212+
{
213+
$Node = $Config.SelectSingleNode("//ExcludeApp[@ID='OneNote']")
214+
$Node.ParentNode.RemoveChild($Node)
215+
}
216+
Publisher
217+
{
218+
$Node = $Config.SelectSingleNode("//ExcludeApp[@ID='Publisher']")
219+
$Node.ParentNode.RemoveChild($Node)
220+
}
211221
Teams
212222
{
213223
Write-Information -MessageData "" -InformationAction Continue

0 commit comments

Comments
 (0)