Skip to main content
Version: v4.0

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 linker to produce a successful result. Using this element creates an MSI file.





You can specify any valid Windows code page by integer like 1252, or by web name like Windows-1252. See [Code Pages](/docs/reference/codepage) for more information.


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.

Manufacturer (String, required) : The manufacturer of the package.

Name (String, required) : The descriptive name of the product.

ProductCode (AutogenGuid) : Optional ProductCode GUID for the package. By default, a new ProductCode will be generated with every build enabling major upgrades.

Scope (enumeration) : Use this attribute to specify the installation scope of this package: per-machine or per-user. This attribute's value must be one of the following:

  • perMachine: Set this value to declare that the package is a per-machine installation and requires elevated privileges to install. Sets the ALLUSERS property to 1.
  • perUser: Set this value to declare that the package is a per-user installation and does not require elevated privileges to install. Sets the package's InstallPrivileges attribute to "limited."

ShortNames (YesNoTypeUnion) : Indicates whether the package files are installed using 8.3 filenames.

UpgradeCode (Guid) : The upgrade code GUID for the product.

Version (String, required) : The product's version string.

Edit the schema for this page