Skip to content

Commit 7ff68d2

Browse files
committed
Add new installer types and reorder switch cases
Update Get-InstallerType.ps1 to add mappings for new installer keywords: 'grouppolicy' -> GroupPolicy, 'minimalist' -> Minimal, and 'noadmin' -> NoAdmin. Reorder and consolidate existing switch entries (portable, no-installer, debug, user, winmsi, qt6, etc.) for clarity; default behavior remains unchanged.
1 parent e776434 commit 7ff68d2

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

Evergreen/Private/Get-InstallerType.ps1

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ function Get-InstallerType {
77
)
88

99
switch -Regex ($String.ToLower()) {
10-
"min" { $Type = "Minimal"; break }
11-
"user" { $Type = "User"; break }
12-
"portable" { $Type = "Portable"; break }
13-
"no-installer" { $Type = "Portable"; break }
14-
"debug" { $Type = "Debug"; break }
1510
"airgap" { $Type = "Airgap"; break }
16-
"winmsi" { $Type = "MSI"; break }
11+
"debug" { $Type = "Debug"; break }
12+
"grouppolicy" { $Type = "GroupPolicy"; break }
13+
"minimalist" { $Type = "Minimal"; break }
1714
"ndm" { $Type = "NonDarkMode"; break }
18-
"qt6" { $Type = "Qt6"; break }
15+
"no-installer" { $Type = "Portable"; break }
16+
"noadmin" { $Type = "NoAdmin"; break }
17+
"portable" { $Type = "Portable"; break }
1918
"qt5" { $Type = "Qt5"; break }
19+
"qt6" { $Type = "Qt6"; break }
20+
"user" { $Type = "User"; break }
21+
"winmsi" { $Type = "MSI"; break }
2022
default {
2123
Write-Verbose -Message "$($MyInvocation.MyCommand): Installer type not found in $String, defaulting to 'Default'."
2224
$Type = "Default"

0 commit comments

Comments
 (0)