-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
singleton.md
1012 lines (682 loc) · 49.1 KB
/
singleton.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[JSON schema]: https://github.com/microsoft/winget-cli/blob/master/schemas/JSON/manifests/v1.7.0/manifest.singleton.1.7.0.json
[semantic version]: https://semver.org
[install]: https://docs.microsoft.com/windows/package-manager/winget/install
[list]: https://docs.microsoft.com/windows/package-manager/winget/list
[upgrade]: https://docs.microsoft.com/windows/package-manager/winget/upgrade
[MSIX]: https://docs.microsoft.com/windows/msix/overview
[MSI]: https://docs.microsoft.com/windows/win32/msi/windows-installer-portal
[Inno]: https://jrsoftware.org/isinfo.php
[Nullsoft]: https://sourceforge.net/projects/nsis
[WiX]: https://wixtoolset.org
[Burn]: https://wixtoolset.org/documentation/manual/v3/bundle
[Windows Package Manager Manifest Creator]: https://github.com/microsoft/winget-create
[App capability declarations]: https://docs.microsoft.com/windows/uwp/packaging/app-capability-declarations
## Minimal singleton YAML file example
As specified in the singleton [JSON schema], only a number of fields are required. The singleton format is only valid for packages containing a single installer and a single locale. If more than one installer or locale is provided, the multiple YAML file format and schema must be used.
> [!WARNING]
The singleton manifest format has been deprecated in the Windows Package Manager Community Repository. The Windows Package Manager 1.7 client still supports singleton manifests.
### Singleton Manifest
```YAML
PackageIdentifier: # The package unique identifier
PackageVersion: # The package version
Channel: # *Not implemented* distribution channel
PackageLocale: # The package meta-data locale
Publisher: # The publisher name
PackageName: # The package name
License: # The package license
ShortDescription: # The short package description
Description: # Optional full package description
Moniker: # Optional most common package term
Tags: # Optional list of package terms
Agreements: # Optional package agreements
- AgreementLabel: # Optional agreement label
Agreement: # Optional agreement text
AgreementUrl: # Optional agreement URL
Documentations: # Optional documentation
- DocumentLabel: # Optional documentation label
DocumentUrl: # Optional documentation URL
ReleaseDate: # Optional release date
ReleaseNotes: # Optional release notes
ReleaseNotesUrl: # Optional release notes URL
PurchaseUrl: # Optional purchase URL
InstallationNotes: # Optional notes displayed upon installation
Installers: # The package installer
- Architecture: # The architecture of the installer
InstallerLocale: # Optional locale of the installer
Platform: # Optional installer supported operating system
MinimumOSVersion: # Optional installer minimum operating system version
InstallerType: # The installer type
InstallerUrl: # The installer URL
InstallerSha256: # The SHA256 hash of the installer
SignatureSha256: # Optional SHA256 hash of the MSIX signature
NestedInstallerType: # The installer type when InstallerType is an archive type
NestedInstallerFiles: # Details about the installers when InstallerType is an archive type
- RelativeFilePath: # The relative path to the nested installer file
PortableCommandAlias: # The command alias to be used for calling the package. Only applies when NestedInstallerType is 'portable'
Scope: # Optional installer scope
InstallModes: # Optional installer modes
InstallerSwitches: # Optional installer switches
Silent: # Optional installer switches for silent
SilentWithProgress: # Optional installer switches for silent with progress
Interactive: # Optional installer switches for interactive
InstallLocation: # Optional install location path
Log: # Optional installer log file path
Upgrade: # Optional installer switches for upgrade
Custom: # Optional installer switches for custom behavior
Repair: # Optional installer switches to use when repairing the package installation
UpgradeBehavior: # Optional upgrade method
Commands: # Optional commands or aliases to run the package
Protocols: # Optional list of protocols supported by the package
FileExtensions: # Optional list of file extensions supported by the package
Dependencies: # *Experimental* list of dependencies required by the package
- ExternalDependencies: # *Not implemented* list of external dependencies
PackageDependencies: # *Experimental* list of package dependencies
WindowsFeatures: # *Not implemented* list of Windows feature dependencies
WindowsLibraries: # *Not implemented* list of Windows library dependencies
PackageFamilyName: # Optional MSIX package family name
Capabilities: # Optional list of MSIX package capabilities
RestrictedCapabilities: # Optional list of MSIX package restricted capabilities
InstallerAbortsTerminal: # Optional indicator for packages that abort terminal
InstallLocationRequired: # Optional indicator for packages that require install location
RequireExplicitUpgrade: # Optional indicator for packages that upgrade themselves
ElevationRequirement: # Scope required to install package
UnsupportedOSArchitectures: # Optional architectures the package is not supported on
Markets: # Optional markets the package is allowed to be installed
ExcludedMarkets: # Optional markets the package is not allowed to be installed
InstallerSuccessCodes: # Optional non-zero installer success codes
ExpectedReturnCodes: # Optional non-zero installer return codes
- InstallerReturnCode: # Optional non-zero installer return code
ReturnResponse: # Optional response for an expected return code
ReturnResponseUrl: # Optional response URL for an expected return code
ProductCode: # Optional product code of the installer
AppsAndFeaturesEntries: # Optional entries from the Add and Remove Programs (ARP) table
- DisplayName: # Optional program name shown in the ARP entry
DisplayVersion: # Optional version displayed in the ARP entry
Publisher: # Optional publisher displayed in the ARP entry
ProductCode: # Optional product code of the installer
UpgradeCode: # Optional upgrade code of the installer
InstallerType: # Optional installer type
UnsupportedArguments: # Optional list of Windows Package Manager Client arguments the installer does not support
- UnsupportedArgument: # Optional unsupported Windows Package Manager Client argument
DisplayInstallWarnings: # *Not implemented* Optional indicator for packages that are known to interfere with running application during install
InstallationMetadata: # Optional metadata for deeper installation detection
- DefaultInstallLocation: # Optional default install location for the package
Files: # Optional list of files installed by the package
- RelativeFilePath: # Optional relative path to the installed file
FileSha256: # Optional Sha256 of the installed file
FileType: # Optional installed file type. Treated as 'other' if not specified
InvocationParameter: # Optional parameter for invocable files
DisplayName: # Optional display name for invocable files
DownloadCommandProhibited: # Optional indicator for packages which cannot be downloaded for offline installation
RepairBehavior: # Optional repair method to use with 'winget repair`
ManifestType: singleton # The manifest type
ManifestVersion: 1.7.0 # The manifest syntax version
```
### [Singleton Minimal Example](#tab/minimal/)
```YAML
PackageIdentifier: Microsoft.WindowsTerminal
PackageVersion: 1.6.10571.0
PackageLocale: en-US
Publisher: Microsoft
PackageName: Windows Terminal
License: MIT
ShortDescription: The new Windows Terminal, a tabbed command line experience for Windows.
Installers:
- Architecture: x64
InstallerType: msix
InstallerUrl: https://github.com/microsoft/terminal/releases/download/v1.6.10571.0/Microsoft.WindowsTerminal_1.6.10571.0_8wekyb3d8bbwe.msixbundle
InstallerSha256: 092aa89b1881e058d31b1a8d88f31bb298b5810afbba25c5cb341cfa4904d843
SignatureSha256: e53f48473621390c8243ada6345826af7c713cf1f4bbbf0d030599d1e4c175ee
ManifestType: singleton
ManifestVersion: 1.7.0
```
## Fields
<details>
<summary><b>PackageIdentifier</b> - The package unique identifier</summary>
**Required Field**
This key is the unique identifier for a given package. This value is generally in the form of `Publisher.Package`. It is case sensitive, and this value must match the folder structure under the partition directory in GitHub.
</details>
<details>
<summary><b>PackageVersion</b> - The package version</summary>
**Required Field**
This key represents the version of the package. It is related to the specific release this manifests targets. In some cases you will see a perfectly formed [semantic version] number, and in other cases you might see something different. These may be date driven, or they might have other characters with some package specific meaning for example.
The Windows Package Manager client uses this version to determine if an upgrade for a package is available. In some cases, packages may be released with a marketing driven version, and that causes trouble with the [`winget upgrade`][upgrade] command.
> [!NOTE]
The current best practice is to use the value reported in Add / Remove Programs when this version of the package is installed. In some cases, packages do not report a version resulting in an upgrade loop or other unwanted behavior. This practice may seem contrary to using semantic versioning, but it provides the best end to end experience for customers. It will take time for publishers and ISVs to migrate to semantic versioning, and some may intentionally choose to preserve other versioning schemes. In these cases, it is best practice to include the "AppsAndFeaturesEntries" section for each installer.
</details>
<details>
<summary><b>Channel</b> - The distribution channel</summary>
**Optional Field**
This key represents the distribution channel for a package. Examples may include "stable" or "beta".
> [!NOTE]
This key is included for future use. The Windows Package Manager currently does not have any behavior associated with this key. The intent behind this key is to help disambiguate the different channels for packages lacking support for side by side installation. Some packages support having more than one package channel available on a system simultaneously; in this case it is better to use unique packages rather than channels. This key is intended to ensure the proper channel for a package is used during install and upgrade scenarios.
</details>
<details>
<summary><b>Description</b> - The full package description</summary>
**Optional Field**
This key represents the full or long description for a package. It is *not* currently used in the Windows Package Manager.
> [!NOTE]
This was included for future integration with the Microsoft Store source to provide the ability to display the full package description.
</details>
<details>
<summary><b>Moniker</b> - The most common package term</summary>
**Optional Field**
This key represents the most common term users would search for when installing or upgrading a package. If only one package uses this moniker, then the [install], [list] and [upgrade] command may match with this package.
>Note:Moniker is the third property evaluated when searching for a matching package.
</details>
<details>
<summary><b>Tags</b> - List of additional package search terms</summary>
**Optional Field**
This key represents other common term users would search for when looking for packages.
> [!NOTE]
The best practice is to present these terms in all lower case with hyphens rather than spaces.
</details>
<details>
<summary><b>Agreements</b> - List of package agreements</summary>
**Optional Field**
This key holds any agreements a user must accept prior to download and subsequent install or upgrade.
> [!IMPORTANT]
In the Windows Package Manager Community Repository, these are only allowed to be submitted by verified developers.
</details>
<details>
<summary><b>AgreementLabel</b> - The label for a package agreement</summary>
**Optional Field**
This key represents the label for a package agreement.
</details>
<details>
<summary><b>Agreement</b> - The text for a package agreement</summary>
**Optional Field**
This key represents the text or body of a package agreement.
</details>
<details>
<summary><b>AgreementUrl</b> - The URL for a package agreement</summary>
**Optional Field**
This key represents the URL for a package agreement.
</details>
<details>
<summary><b>Documentations</b> - List of documentation</summary>
**Optional Field**
This key holds any documentation for providing software guides such as manuals and troubleshooting URLs.
</details>
<details>
<summary><b>DocumentLabel</b> - The documentation label</summary>
**Optional Field**
This key represents the label for a documentation.
</details>
<details>
<summary><b>DocumentUrl</b> - List of documentation</summary>
**Optional Field**
This key represents the URL for a documentation.
</details>
<details>
<summary><b>ReleaseDate</b> - The Release Date for a package.</summary>
**Optional Field**
This key represents the release date for a package.
</details>
<details>
<summary><b>ReleaseNotes</b> - The Release Notes for a package.</summary>
**Optional Field**
This key represents release notes for a package.
</details>
<details>
<summary><b>ReleaseNotesUrl</b> - The Release Notes web page for a package.</summary>
**Optional Field**
This key represents release notes web page for a package.
</details>
<details>
<summary><b>PurchaseUrl</b> - The Purchase URL for a package.</summary>
**Optional Field**
This key represents the purchase url for acquiring entitlement for a package.
</details>
<details>
<summary><b>InstallationNotes</b> - The Installation Notes for a package.</summary>
**Optional Field**
This key represents the notes displayed to the user upon completion of a package installation.
</details>
<details>
<summary><b>Installers</b> - Package installer</summary>
**Required Field**
The key represents an installer for a package.
> [!IMPORTANT]
Many of the keys related to installers may either be at the root level of the manifest, or included in an installer. Any values provided at the root level and not specified in an installer will be inherited.
</details>
<details>
<summary><b>Architecture</b> - The installer target architecture</summary>
**Required Field**
This key represents the hardware architecture targeted by the installer. The Windows Package Manager will attempt to determine the best architecture to use. If emulation is available and the native hardware architecture does not have a supported installer, the emulated architecture may be used.
</details>
<details>
<summary><b>InstallerLocale</b> - Locale for package installer</summary>
**Optional Field**
This key represents the locale for an installer *not* the package meta-data. Some installers are compiled with locale or language specific properties. If this key is present, it is used to represent the package locale for an installer.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>Platform</b> - The installer supported operating system</summary>
**Optional Field**
This key represents the Windows platform targeted by the installer. The Windows Package Manager currently supports "Windows.Desktop" and "Windows.Universal". The Windows Package Manager client currently has no behavior associated with this property. It was added for future looking scenarios.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>MinimumOSVersion</b> - The installer minimum operating system version</summary>
**Optional Field**
This key represents the minimum version of the Windows operating system supported by the package.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>InstallerType</b> - Enumeration of supported installer types.</summary>
**Required Field**
This key represents the installer type for the package. The Windows Package Manager supports [MSIX], [MSI], and executable installers. Some well known formats ([Inno], [Nullsoft], [WiX], and [Burn]) provide standard sets of installer switches to provide different installer experiences. Portable packages are supported as of Windows Package Manager 1.3. Zip packages are supported as of Windows Package Manager 1.5.
> [!IMPORTANT]
The Windows Package Manager does not support loose executables with the .exe or .com file extension directly. Progressive Web Applications (PWAs) and fonts are also not supported.
> [!NOTE]
The Windows Package Manager defaults to the install mode providing install progress. A best practice is to determine if one of the supported installer technologies was used to build an installer with the .exe file extension. The [Windows Package Manager Manifest Creator] tool can be used to determine if one of the known tools was used to build an installer with the .exe file extension.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>InstallerUrl</b> - The installer Url</summary>
**Required Field**
This key represents the URL to download the installer.
</details>
<details>
<summary><b>InstallerSha256</b> - Sha256 is required. Sha256 of the installer</summary>
**Required Field**
This key represents the SHA 256 hash for the installer. It is used to confirm the installer has not been modified. The Windows Package Manager will compare the hash in the manifest with the calculated hash of the installer after it has been downloaded.
> [!NOTE]
The [Windows Package Manager Manifest Creator] can be used to determine the SHA 256 of the installer. The `winget hash <pathToInstaller>` command can also be used to determine the SHA 256 of the installer.
</details>
<details>
<summary><b>SignatureSha256</b> - SignatureSha256 is recommended for appx or msix. It is the sha256 of the signature file inside the appx or msix. Could be used during streaming install if applicable.</summary>
**Optional Field**
This key represents the signature file (AppxSignature.p7x) inside an MSIX installer. It is used to provide streaming install for MSIX packages.
> [!IMPORTANT]
MSIX installers must be signed to be included in the Microsoft community package repository. If the installer is an MSIX this signature should be included in the manifest. The [Windows Package Manager Manifest Creator] can be used to determine the signature SHA 256. The `winget hash <pathToInstaller> --msix` command can also be used to determine the signature SHA 256.
</details>
<details>
<summary><b>NestedInstallerType</b> - NestedInstallerType is required when InstallerType is an archive type such as '.zip'</summary>
**Required Field**
This key represents the installer type of the file within the archive which will be used as the installer.
</details>
<details>
<summary><b>NestedInstallerFiles</b> - NestedInstallerFiles is required when InstallerType is an archive type such as '.zip'</summary>
**Required Field**
This key is a list of all the installers to be executed within an archive.
> Note: This field can only contain one nested installer file unless the NestedInstallerType is 'portable'
</details>
<details>
<summary><b>RelativeFilePath</b> - RelativeFilePath is required within NestedInstallerFiles</summary>
**Required Field**
The relative path to the installer file contained within the archive.
</details>
<details>
<summary><b>PortableCommandAlias</b> - The command alias to be used for calling the package</summary>
**Required Field**
The alias which is added to the PATH for calling the package from the command line.
> Note: This field is only valid when NestedInstallerType is 'portable'
</details>
<details>
<summary><b>Scope</b> - Scope indicates if the installer is per user or per machine</summary>
**Optional Field**
This key represents the scope the package is installed under. The two configurations are "user" and "machine". Some installers support only one of these scopes while others support both via arguments passed to the installer using "InstallerSwitches".
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>InstallModes</b> - List of supported installer modes</summary>
**Optional Field**
This key represents the install modes supported by the installer. The Microsoft community package repository requires a package support "silent" and "silent with progress". The Windows Package Manager also supports "interactive" installers. The Windows Package Manager client does not have any behavior associated with this key.
> [!IMPORTANT]
Some installers will attempt to install missing dependencies. If these dependencies require user interaction, the package will not be allowed into the Microsoft community package repository.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>InstallerSwitches</b> - Switches passed to installers</summary>
**Optional Field**
This key represents the set of switches passed to installers.
> [!IMPORTANT]
The Microsoft community repository currently requires support for silent and silent with progress installation. Many custom .exe installers will require the proper switches to meet this requirement. The [Windows Package Manager Manifest Creator] tool can be used to determine if one of the known tools was used to build an installer with the .exe file extension. In the event the tool is unable to determine the tool used to build the installer, the publisher may have documentation for the proper switches.
</details>
<details>
<summary><b>Silent</b> - Silent is the value that should be passed to the installer when user chooses a silent or quiet install</summary>
**Optional Field**
This key represents switches passed to the installer to provide a silent install experience. These would be used when the command `winget install <package> --silent` is executed.
> [!NOTE]
When the Windows Package Manager installs a package using the "silent" install mode, any custom switches will also be passed to the installer. If a user applies override switches via command line via the Windows Package Manager, none of the switches from the manifest will be passed to the installer.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>SilentWithProgress</b> - SilentWithProgress is the value that should be passed to the installer when user chooses a non-interactive install</summary>
**Optional Field**
This key represents switches passed to the installer to provide a silent with progress install experience. This is intended to allow a progress indication to the user, and the indication may come from an installer UI dialogue, but it must not require user interaction to complete. The Windows Package Manager currently defaults to this install experience.
> [!NOTE]
When the Windows Package Manager installs a package using the "silent with progress" install mode, any custom switches will also be passed to the installer. If a user applies override switches via command line via the Windows Package Manager, none of the switches from the manifest will be passed to the installer.
</details>
<details>
<summary><b>Interactive</b> - Interactive is the value that should be passed to the installer when user chooses an interactive install</summary>
**Optional Field**
This key represents switches passed to the installer to provide an interactive install experience. This is intended to allow a user to interact with the installer. These would be used when the command `winget install <package> --interactive` is executed.
> [!NOTE]
When the Windows Package Manager installs a package using the "interactive" install mode, any custom switches will also be passed to the installer. If a user applies override switches via command line via the Windows Package Manager, none of the switches from the manifest will be passed to the installer.
</details>
<details>
<summary><b>InstallLocation</b> - InstallLocation is the value passed to the installer for custom install location. </summary>
**Optional Field**
This key represents the path to install the package if the installer supports installing the package in a user configurable location. The **<INSTALLPATH>** token can be included in the switch value so the Windows Package Manager will replace the token with the user provided path.
</details>
<details>
<summary><b>Log</b> - Log is the value passed to the installer for custom log file path.</summary>
**Optional Field**
This key represents the path logs will be directed to if the installer supports specifying the log path in a user configurable location. The **<LOGPATH>** token can be included in the switch value so the Windows Package Manager will replace the token with the user provided path.
</details>
<details>
<summary><b>Upgrade</b> - Upgrade is the value that should be passed to the installer when user chooses an upgrade.</summary>
**Optional Field**
This key represents the switches to be passed to the installer during an upgrade. This will happen only if the upgrade behavior is "install".
> [!NOTE]
If a user applies override switches via command line via the Windows Package Manager, none of the switches from the manifest will be passed to the installer.
</details>
<details>
<summary><b>Custom</b> - Custom switches will be passed directly to the installer by the Windows Package Manager.</summary>
**Optional Field**
This key represents any switches the Windows Package Manager will pass to the installer in addition to "Silent", "SilentWithProgress", and "Interactive".
> [!NOTE]
If a user applies override switches via command line via the Windows Package Manager, none of the switches from the manifest will be passed to the installer.
</details>
<details>
<summary><b>Repair</b> - Repair is the value that should be passed to the installer when a user chooses to repair an existing installation</summary>
**Optional Field**
This key represents the switches to be passed during the repair of an existing installation. This will be passed to the installer, ModifyPath ARP command, or Uninstaller ARP command depending on the RepairBehavior specified in the manifest.
> [!NOTE]
If a user applies override switches via command line via the Windows Package Manager, none of the switches from the manifest will be passed to the installer.
</details>
<details>
<summary><b>UpgradeBehavior</b> - The upgrade method</summary>
**Optional Field**
This key represents what the Windows Package Manager should do regarding the currently installed package during a package upgrade. If the package should be uninstalled first, the "uninstallPrevious" value should be specified. If the package should not be upgraded through WinGet, the "deny" value should be specified.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>Commands</b> - List of commands or aliases to run the package</summary>
**Optional Field**
This key represents any commands or aliases used to execute the package after it has been installed.
> [!IMPORTANT]
The Windows Package Manager does not update the path during the install workflow. In those cases, the user may need to restart their shell or terminal before the command will execute the newly installed package. The Windows Package Manager does not support any behavior related to commands or aliases.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>Protocols</b> - List of protocols the package provides a handler for</summary>
**Optional Field**
This key represents any protocols supported by the package. The Windows Package Manager does not support any behavior related to protocols handled by a package.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>FileExtensions</b> - List of file extensions the package could support</summary>
**Optional Field**
This key represents any file extensions supported by the package. The Windows Package Manager does not support any behavior related to the file extensions supported by the package.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>Dependencies</b> - List of dependencies needed to install or execute the package</summary>
**Optional Field**
This key represents any dependencies required to install or run the package.
> [!IMPORTANT]
The Windows Package Manager does not support any behavior related to dependencies.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>ExternalDependencies</b> - List of external package dependencies</summary>
**Optional Field**
This key represents any external dependencies required to install or run the package.
> [!IMPORTANT]
The Windows Package Manager does not support any behavior related to dependencies.
</details>
<details>
<summary><b>PackageDependencies</b> - List of package dependencies from current source</summary>
**Optional Field**
This key represents any packages from the same source required to install or run the package.
> [!IMPORTANT]
The Windows Package Manager does not support any behavior related to dependencies.
</details>
<details>
<summary><b>WindowsFeatures</b> - List of Windows feature dependencies</summary>
**Optional Field**
This key represents any Windows features required to install or run the package.
> [!IMPORTANT]
The Windows Package Manager does not support any behavior related to dependencies.
</details>
<details>
<summary><b>WindowsLibraries</b> - List of Windows library dependencies</summary>
**Optional Field**
This key represents any Windows libraries required to install or run the package.
> [!IMPORTANT]
The Windows Package Manager does not support any behavior related to dependencies.
</details>
<details>
<summary><b>PackageFamilyName</b> - PackageFamilyName for appx or msix installer. Could be used for correlation of packages across sources</summary>
**Optional Field**
This key represents the package family name specified in an MSIX installer. This value is used to assist with matching packages from a source to the program installed in Windows via Add / Remove Programs for list, and upgrade behavior.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>Capabilities</b> - List of appx or msix installer capabilities</summary>
**Optional Field**
This key represents the capabilities provided by an MSIX package. More information is available for [App capability declarations]
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>RestrictedCapabilities</b> - List of appx or msix installer restricted capabilities</summary>
**Optional Field**
This key represents the restricted capabilities provided by an MSIX package.More information is available for [App capability declarations]
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>InstallerAbortsTerminal</b> - Indicator for installers that abort the terminal.</summary>
**Optional Field**
This key represents the behavior associated with installers that abort the terminal. This most often occurs when a user is performing an upgrade of the running terminal.
> [!NOTE]
Windows Terminal no longer causes this to occur as the MSIX install behavior from the Windows Package Manager is deferred registration.
</details>
<details>
<summary><b>InstallLocationRequired</b> - Indicator for packages requiring an install location to be specified.</summary>
**Optional Field**
This key represents the requirement to have an install location specified. These installers are known to deploy files to the location the installer is executed in.
</details>
<details>
<summary><b>RequireExplicitUpgrade</b> - Indicator for packages that upgrade themselves.</summary>
**Optional Field**
This key identifies packages that upgrade themselves. By default, they are excluded from `winget upgrade --all`.
</details>
<details>
<summary><b>ElevationRequirement</b> - Indicator for elevation requirements when installing or upgrading packages.</summary>
**Optional Field**
This key represents which scope a package is required to be executed under. Some packages require user level execution while others require administrative level execution.
</details>
<details>
<summary><b>UnsupportedOSArchitectures</b> - List of unsupported architectures for a package.</summary>
**Optional Field**
This key represents any architectures a package is known not to be compatible with. Generally, this is associated with emulation modes.
</details>
<details>
<summary><b>Markets</b> - List of supported markets for a package.</summary>
**Optional Field**
This key represents any markets a package may be installed in.
> [!IMPORTANT]
If a market is listed in both this key and the ExcludedMarkets key, the market will be excluded. Both keys are present to reduce the need to list the larger set of markets.
</details>
<details>
<summary><b>ExcludedMarkets</b> - List of unsupported markets for a package.</summary>
**Optional Field**
This key represents any markets a package may not be installed in.
> [!IMPORTANT]
If a market is listed in both this key and the Markets key, the market will be excluded. Both keys are present to reduce the need to list the larger set of markets.
</details>
<details>
<summary><b>InstallerSuccessCodes</b> - List of additional non-zero installer success exit codes other than known default values by the Windows Package Manager.</summary>
**Optional Field**
This key represents any status codes returned by the installer representing a success condition other than zero.
> [!IMPORTANT]
Some return codes indicate a reboot is suggested or required. The Windows Package Manager does not support the reboot behavior currently. Some installers will force a reboot, and the Windows Package Manager does not currently suppress reboot behavior.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>ExpectedReturnCodes</b> - List of additional non-zero installer exit codes other than known default values by the Windows Package Manager.</summary>
**Optional Field**
This key represents any status codes returned by the installer representing a condition other than zero.
> [!IMPORTANT]
Some return codes indicate a reboot is suggested or required. The Windows Package Manager does not support the reboot behavior currently. Some installers will force a reboot, and the Windows Package Manager does not currently suppress reboot behavior.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>InstallerReturnCode</b> - The non-zero installer exit code other than known default values by the Windows Package Manager.</summary>
**Optional Field**
This key represents any status code returned by the installer representing a condition other than zero. MSIX and MSI packages have well known return codes. This is primarily intended for executable installers that have custom or unique return coes that can be mapped to a return response.
</details>
<details>
<summary><b>ReturnResponse</b> - The return response to be displayed in the event an expected return code is encountered.</summary>
**Optional Field**
This key represents a return response to display when an installer returns an expected return code. MSIX and MSI packages have well known return codes. This is primarily intended for executable installers that have custom or unique return coes that can be mapped to a return response.
> [!NOTE]
An enumerated list of values in the JSON schema must be specified for consistency of user experience.
</details>
<details>
<summary><b>ReturnResponseUrl</b> - The return response URL to be displayed in the event an expected return code is encountered.</summary>
**Optional Field**
This key represents a return response URL to display when an installer returns an expected return code. MSIX and MSI packages have well known return codes. This is primarily intended for executable installers that have custom or unique return codes that can be mapped to a return response.
> [!NOTE]
An enumerated list of values in the JSON schema must be specified for consistency of user experience.
</details>
<details>
<summary><b>ProductCode</b> - ProductCode is used for correlation of packages with manifests in configured sources.</summary>
**Optional Field**
This key represents the product code specified in an MSI installer. This value is used to assist with matching packages from a source to the program installed in Windows via Add / Remove Programs for list, and upgrade behavior.
> [!NOTE]
This key may be present in the root of the manifest as the default value for all installer nodes. This key may also be present in an individual installer node as well. If this key is in the manifest root and in an installer node, the value in the installer node will apply.
</details>
<details>
<summary><b>AppsAndFeaturesEntries</b> - AppsAndFeaturesEntries are used to match installed packages with manifests in configured sources.</summary>
**Optional Field**
This key represents the values reported by Windows Apps & Features. When a package is installed, entries are made into the Windows Registry.
</details>
<details>
<summary><b>DisplayName</b> - DisplayName is what is displayed in the Control Panel for installed packages.</summary>
**Optional Field**
This key represents the package name as displayed in Windows Apps & Features. It is used to help correlate installed packages with manifests in configured sources.
</details>
<details>
<summary><b>DisplayVersion</b> - DisplayVersion is the version displayed in the Control Panel for installed packages.</summary>
**Optional Field**
This key represents the package version as displayed in Windows Apps & Features. It is used to help correlate installed packages with manifests in configured sources.
> Note: When the PackageVersion and DisplayVersion are the same, the DisplayVersion should be omitted from the AppsAndFeaturesEntries
</details>
<details>
<summary><b>Publisher</b> - Publisher is the value of the package publisher reported in the Windows registry.</summary>
**Optional Field**
This key represents the Publisher reported in the Windows registry. It is used to help correlate installed packages with manifests in configured sources.
</details>
<details>
<summary><b>ProductCode</b> - ProductCode is used for correlation of packages with manifests in configured sources.</summary>
**Optional Field**
This key represents the product code for a package. It is used to help correlate installed packages with manifests in configured sources.
> [!NOTE]
This key is displayed twice for completeness. When AppsAndFeaturesEntries are specified, the ProductCode should be placed both within the installer and the AppsAndFeaturesEntries
</details>
<details>
<summary><b>UpgradeCode</b> - UpgradeCode is used for correlation of packages with manifests in configured sources.</summary>
**Optional Field**
This key represents the upgrade code for a package. It is used to help correlate installed packages with manifests in configured sources.
</details>
<details>
<summary><b>InstallerType</b> - Enumeration of supported installer types.</summary>
**Optional Field**
This key represents the installer type for the package. It is used to help correlate installed packages with manifests in configured sources. In some cases, an installer is an .exe based installer, but contains an MSI installer. This key will help the Windows Package Manager understand if upgrading an MSI should be performed when it is contained in an .exe installer.
> [!NOTE]
This key is displayed twice for completeness. When AppsAndFeaturesEntries are specified, the InstallerType should be placed within the installer only, unless the AppsAndFeaturesEntries represent a different InstallerType
</details>
<details>
<summary><b>UnsupportedArguments</b> - List of unsupported Windows Package Manager Client arguments for an installer.</summary>
**Optional Field**
This key represents the list of Windows Package Manager Client arguments the installer does not support. Only the `--log` and `--location` arguments can be specified as unsupported arguments for an installer.
</details>
<details>
<summary><b>DisplayInstallWarnings</b> - Indicator for displaying a warning message prior to install or upgrade.</summary>
**Optional Field**
This key represents whether a warning message is displayed to the user prior to install or upgrade if the package is known to interfere with any running applications.
> [!NOTE]
The DisplayInstallWarnings behavior is not implemented in the Windows Package Manager 1.7 client.
</details>
<details>
<summary><b>InstallationMetadata</b> - Details about the installation.</summary>
**Optional Field**
This key allows for additional metadata to be used for deeper installation detection.
</details>
<details>
<summary><b>DefaultInstallLocation</b> - The default installed package location.</summary>
**Optional Field**
This key represents the default install location for the package.
</details>
<details>
<summary><b>Files</b> - The list of installed files.</summary>
**Optional Field**
This key represents the files installed for the package.
</details>
<details>
<summary><b>RelativeFilePath</b> - The relative path to the installed file.</summary>
**Optional Field**
This key represents the path to the installed file relative to the default install location.
</details>
<details>
<summary><b>FileSha256</b> - The optional Sha256 of the installed file.</summary>
**Optional Field**
This key represents the Sha256 hash of the installed file.
</details>
<details>
<summary><b>FileType</b> - The optional installed file type.</summary>
**Optional Field**
This key represents the type of the installed file - `launch`, `uninstall`, or `other`. If not specified, the file is treated as `other`.
</details>
<details>
<summary><b>InvocationParameter</b> - Optional parameter for invocable files.</summary>
**Optional Field**
This key represents the parameter to use for invocable files.
</details>
<details>
<summary><b>DisplayName</b> - Optional display name for invocable files</summary>
**Optional Field**
This key represents the display name to use for invocable files.
</details>
<details>
<summary><b>DownloadCommandProhibited</b> - Optional indicator for packages which cannot be downloaded for offline installation</summary>
**Optional Field**
When `true`, this flag will prohibit the manifest from being downloaded for offline installation with the `winget download` command
</details>
<details>
<summary><b>RepairBehavior</b> - Optional repair method to use with 'winget repair`</summary>
**Optional Field**
This field controls what method is used to repair existing installations of packages. Specifying `modify` will use the ModifyPath string from the package's ARP data, `uninstaller` will use the Uninstall string from the package's ARP data, and `installer` will download and run the installer. In each case, the `Repair` value from `InstallerSwitches` will be added as an argument when invoking the command to repair the package.
</details>
<details>
<summary><b>ManifestType</b> - The manifest type</summary>