Package.wxs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
  2. xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"
  3. xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
  4. <?include Includes.wxi?>
  5. <Package Name="$(var.Product)" Version="$(var.Version)" Manufacturer="$(var.Manufacturer)" Language="!(loc.ProductLanguage)" UpgradeCode="$(var.UpgradeCode)" Scope="perMachine">
  6. <SummaryInformation Keywords="Installer" Description="$(var.Description)" Codepage="!(loc.SummaryCodepage)" />
  7. <!--<PropertyRef Id="UpgradesFile" />-->
  8. <PropertyRef Id="AddRemovePropertiesFile" />
  9. <Media Id="1" Cabinet="cab1.cab" EmbedCab="yes" CompressionLevel="high" />
  10. <Icon Id="AppIcon" SourceFile="Resources\icon.ico" />
  11. <!-- User Interface -->
  12. <WixVariable Id="WixUILicenseRtf" Value="License.rtf" />
  13. <ui:WixUI Id="UI_MyInstallDialog" InstallDirectory="INSTALLFOLDER_INNER" />
  14. <UIRef Id="WixUI_ErrorProgressText" />
  15. <InstallUISequence>
  16. <Show Dialog="UI_AnotherAppDialog" Before="WelcomeDlg" Condition="Not installed AND APP_WINDOWS_INSTALLER=&quot;#0&quot;"/>
  17. </InstallUISequence>
  18. <InstallExecuteSequence>
  19. <InstallExecute After="RemoveExistingProducts" />
  20. <!--Only do InstallValidate if is not Uninstall-->
  21. <!--<InstallValidate Condition="NOT (Installed AND REMOVE AND NOT UPGRADINGPRODUCTCODE )" />-->
  22. <!--Only do InstallValidate if is Install-->
  23. <InstallValidate Condition="NOT Installed" />
  24. </InstallExecuteSequence>
  25. <MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" Schedule="afterInstallInitialize" AllowSameVersionUpgrades="yes" />
  26. <Feature Id="App" Level="1" AllowAdvertise="no" Display="expand" Title="!(loc.F_App)" Description="!(loc.F_App_Desc)" AllowAbsent="no">
  27. <ComponentGroupRef Id="Components" />
  28. <ComponentRef Id="Product.Registry.InstallFolder" />
  29. <ComponentRef Id="Product.Registry.DefaultIcon" />
  30. <ComponentRef Id="Product.Registry.CommandPlay" />
  31. <ComponentRef Id="Product.Registry.URLProtocol" />
  32. <ComponentRef Id="Product.Registry.Command" />
  33. <ComponentRef Id="Product.Registry.UninstallApp" />
  34. <ComponentRef Id="App.StartMenu" />
  35. <ComponentRef Id="Product.Registry.PersistedStartMenuShortcutProperties1" />
  36. <ComponentRef Id="Product.Registry.PersistedStartMenuShortcutProperties0" />
  37. <ComponentRef Id="Product.Registry.PersistedDesktopShortcutProperties1" />
  38. <ComponentRef Id="Product.Registry.PersistedDesktopShortcutProperties0" />
  39. </Feature>
  40. <!--https://wixtoolset.org/docs/tools/wixext/wixui/#customizing-a-dialog-set-->
  41. <!--$CustomBitmapsStart$-->
  42. <!--$CustomBitmapsEnd$-->
  43. </Package>
  44. </Wix>