diff options
| author | ruki <[email protected]> | 2024-05-27 22:27:12 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-27 22:27:12 +0800 |
| commit | 1dfee59408ad9b09feeaaa72fbc4d66fbfd4486e (patch) | |
| tree | 7a8176d6943b49b00eb14e92703ce550f3e0b6d8 /xmake/scripts | |
| parent | d1c2095855bcf6633aeffac98c1b03bca0978f8a (diff) | |
| parent | 1f81152c5bc78bab1cc460e8b3fcba174312a22b (diff) | |
Merge pull request #4788 from A2va/wixtoolset
Xpack: wix toolset support
Diffstat (limited to 'xmake/scripts')
| -rw-r--r-- | xmake/scripts/xpack/wix/msi.wxs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/xmake/scripts/xpack/wix/msi.wxs b/xmake/scripts/xpack/wix/msi.wxs new file mode 100644 index 000000000..dda4978a7 --- /dev/null +++ b/xmake/scripts/xpack/wix/msi.wxs @@ -0,0 +1,39 @@ +<!-- this is a WIX spec file --> +<!-- it is autogenerated by the xmake build system. --> +<!-- do not edit by hand. --> +<?define PackageName = "${PACKAGE_NAME}"?> +<?define PackageTitle = "${PACKAGE_TITLE}"?> +<?define PackageDescription = "${PACKAGE_DESCRIPTION}"?> +<?define PackageAuthor = "${PACKAGE_AUTHOR}"?> +<?define PackageMaintainer = "${PACKAGE_MAINTAINER}"?> +<?define PackageHomepage = "${PACKAGE_HOMEPAGE}"?> +<?define PackageCoypright = "${PACKAGE_COPYRIGHT}"?> +<?define PackageCompany = "${PACKAGE_COMPANY}"?> +<?define PackageIconFile = "${PACKAGE_ICONFILE}"?> +<?define PackageLicense = "${PACKAGE_LICENSE}"?> +<?define PackageLicenseFile = "${PACKAGE_LICENSEFILE}"?> +<?define PackageVersion = "${PACKAGE_VERSION}"?> + +<?define UpgradeCode = "${PACKAGE_WIX_UPGRADECODE}"?> + +<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"> + <Package Language="1033" Manufacturer="$(PackageCompany)" Name="$(PackageName)" UpgradeCode="$(UpgradeCode)" Version="$(PackageVersion)"> + <MajorUpgrade DowngradeErrorMessage="A later version of $(PackageName) is already installed. Setup will now exit." /> + <?if $(PackageIconFile) != "" ?> + <Icon Id="Icon" SourceFile="$(PackageIconFile)"/> + <Property Id="ARPPRODUCTICON" Value="Icon" /> + <WixVariable Id="WixUIBannerBmp" Value="$(PackageIconFile)" /> + <!-- Disable for now, because this is not pretty if the icon has a small resolution --> + <!-- <WixVariable Id="WixUIDialogBmp" Value="$(PackageIconFile)" /> --> + <?endif ?> + <MediaTemplate EmbedCab="true" /> + <WixVariable Id="WixUILicenseRtf" Value="$(PackageLicenseFile)" /> + <ui:WixUI Id="WixUI_FeatureTree" InstallDirectory="INSTALLFOLDER" /> + <StandardDirectory Id="ProgramFiles6432Folder"> + <Directory Id="CompanyFolder" Name="$(PackageCompany)"> + <Directory Id="INSTALLFOLDER" Name="$(PackageName)"/> + </Directory> + </StandardDirectory> + ${PACKAGE_WIX_CMDS} + </Package> +</Wix>
\ No newline at end of file |
