Package element
The Package element is analogous to the main function in a C program. When linking, only one Package section can be given to the build to produce a successful result. Using this element creates an MSI file which often referred to as a Product.
Parents
Children
- AdminExecuteSequence
- AdminUISequence
- AdvertiseExecuteSequence
- AppId
- Binary
- BroadcastEnvironmentChange (Util extension)
- BroadcastSettingChange (Util extension)
- CheckRebootRequired (Util extension)
- CloseApplication (Util extension)
- ComplianceCheck
- ComPlusApplication (Complus extension)
- ComPlusApplicationRole (Complus extension)
- ComPlusPartition (Complus extension)
- ComPlusPartitionRole (Complus extension)
- Component
- ComponentGroup
- ComponentGroupRef
- ComponentRef
- CustomAction
- CustomActionRef
- CustomTable
- CustomTableRef
- Directory
- DirectoryRef
- DotNetCompatibilityCheck (Netfx extension)
- DotNetCompatibilityCheckRef (Netfx extension)
- EmbeddedChainer
- EmbeddedChainerRef
- EnsureTable
- ExitEarlyWithSuccess (Util extension)
- FailWhenDeferred (Util extension)
- Feature
- FeatureGroupRef
- FeatureRef
- File
- Files
- FindVisualStudio (Vs extension)
- GetCapabilities (Directx extension)
- Group (Util extension)
- Icon
- InstallExecuteSequence
- InstallUISequence
- InstanceTransforms
- Launch
- MajorUpgrade
- Media
- MediaTemplate
- PackageCertificates
- PatchCertificates
- Property
- PropertyRef
- QueryNativeMachine (Util extension)
- QueryWindowsDirectories (Util extension)
- QueryWindowsDriverInfo (Util extension)
- QueryWindowsSuiteInfo (Util extension)
- QueryWindowsWellKnownSIDs (Util extension)
- Requires
- RestartResource (Util extension)
- SetDirectory
- SetProperty
- SFPCatalog
- SoftwareTag
- SqlDatabase (Sql extension)
- StandardDirectory
- SummaryInformation
- SymbolPath
- UI
- UIRef
- Upgrade
- User (Util extension)
- WaitForEvent (Util extension)
- WaitForEventDeferred (Util extension)
- WebApplication (Iis extension)
- WebAppPool (Iis extension)
- WebDirProperties (Iis extension)
- WebLog (Iis extension)
- WebSite (Iis extension)
- WixUI (Ui extension)
- WixVariable
Remarks
You can specify any valid Windows code page by integer like 1252, or by web name like Windows-1252. See Code pages for more information.
Attributes
Codepage (String) : The code page integer value or web name for the resulting MSI. See remarks for more information. The default codepage is 65001 (UTF-8).
Compressed (YesNoTypeUnion) : Indicates whether the package files are compressed. Default is compressed packages.
InstallerVersion (Integer) : The minimum version of the Windows Installer required to install this package. Take the major version of the required Windows Installer and multiply by a 100 then add the minor version of the Windows Installer. For example, "200" would represent Windows Installer 2.0 and "405" would represent Windows Installer 4.5. This value is defaulted to "500" which is the latest version of the Windows Installer and present in Windows 7 and later.
Language (LocalizableInteger) : The decimal language ID (LCID) for the product. Sets the ProductLanguage property.
Manufacturer (String, required) : The manufacturer of the package. Sets the Manufacturer property.
Name (String, required) : The descriptive name of the product. Sets the ProductName property.
ProductCode (AutogenGuid) : Optional ProductCode GUID for the package. By default, a new ProductCode property will be generated with every build enabling major upgrades.
Scope (PackageScopeTypeUnion) : Use this attribute to specify the installation scope of this package: per-machine, per-user, or a choice of either. The default is per-machine.
ShortNames (YesNoTypeUnion) : Indicates whether the package files are installed using 8.3 filenames. The default is no.
UpgradeCode (Guid) : The upgrade code GUID for the package. Sets the UpgradeCode property.
UpgradeStrategy (UpgradeStrategyTypeUnion)
: New in WiX v5: WiX v5 adds this attribute to the Package
element.
The upgrade strategy for the package. If "none," no major upgrade is expected.
If "majorUpgrade," the UpgradeCode attribute is required and a major upgrade is expected.
The default is "majorUpgrade."
A default major upgrade is automatically provided if none is authored.
Version (String, required) : The product's version string. Sets the ProductVersion property.