InstallerSwitches Hotfix (#11576)
Fixed InstallerSwitches getting commented out..
This commit is contained in:
		| @@ -273,7 +273,7 @@ Function Read-WinGet-InstallerValues { | |||||||
|     $Installer += "    UpgradeBehavior: $UpgradeBehavior`n" |     $Installer += "    UpgradeBehavior: $UpgradeBehavior`n" | ||||||
|  |  | ||||||
|     $Installer.TrimEnd().Split("`n") | ForEach-Object { |     $Installer.TrimEnd().Split("`n") | ForEach-Object { | ||||||
|         if ($_.Split(":").Trim()[1] -eq '') { |         if ($_.Split(":").Trim()[1] -eq '' -and $_ -notin @("    InstallerSwitches:")) { | ||||||
|             $script:Installers += $_.Insert(0,"#") + "`n" |             $script:Installers += $_.Insert(0,"#") + "`n" | ||||||
|         } else { |         } else { | ||||||
|             $script:Installers += $_ + "`n" |             $script:Installers += $_ + "`n" | ||||||
| @@ -718,7 +718,7 @@ New-Item -ItemType "Directory" -Force -Path $AppFolder | Out-Null | |||||||
| $InstallerManifestPath = $AppFolder + "\$PackageIdentifier" + '.installer' + '.yaml' | $InstallerManifestPath = $AppFolder + "\$PackageIdentifier" + '.installer' + '.yaml' | ||||||
|  |  | ||||||
| $InstallerManifest | ForEach-Object { | $InstallerManifest | ForEach-Object { | ||||||
|     if ($_.Split(":").Trim()[1] -eq '' -and $_ -notin @("FileExtensions:","Protocols:","Commands:","InstallerSuccessCodes:","InstallModes:","Installers:","  - Architecture","    InstallerSwitches:")) { |     if ($_.Split(":").Trim()[1] -eq '' -and $_ -notin @("FileExtensions:","Protocols:","Commands:","InstallerSuccessCodes:","InstallModes:","Installers:","    InstallerSwitches:")) { | ||||||
|         $_.Insert(0,"#") |         $_.Insert(0,"#") | ||||||
|     } else { |     } else { | ||||||
|         $_ |         $_ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user