winget-create
winget-create copied to clipboard
Add null contitional operator to installers.installer.InstallerType
- [x] Have you signed the Contributor License Agreement?
- [x] Are you working against an Issue? https://github.com/microsoft/winget-create/issues/466 - Noticed separate from this issue, but found when looking for existing issues
- Adds a Null Conditional Operator to installers.installer.InstallerType.
- InstallerType is a required field, but is not always defined in the installer list. It may be defined for all lists earlier in the schema, so it should be potentially null here.
Additionally tested against NoMachine.NoMachine (The package I noticed this on) and Microsoft.WindowsSDK.10.0.22621 (The package from #466).
Below screenshots were generated by:
- Running
wingetcreate.exe update Microsoft.WindowsSDK.10.0.22621 -i - Feeding in the same Installer URL
- Responding
nthenyto keep the manifest and edit it - Selecting
INSTALLERmanifest - Selecting
Installersproperty - Observing Crash vs No Crash
Microsoft.WindowsSDK.10.0.22621 before this change:
Microsoft.WindowsSDK.10.0.22621 after this change:
Microsoft Reviewers: Open in CodeFlow
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
/azp run
Azure Pipelines successfully started running 1 pipeline(s).