Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat: add custom wix localization for bundle theme

Lars Berger205c801b5a2a
diff --git a/resources/scripts/package.ps1 b/resources/scripts/package.ps1
index 2139b2fc..c71303da 100644
--- a/resources/scripts/package.ps1
+++ b/resources/scripts/package.ps1
@@ -50,4 +50,5 @@ foreach ($arch in $wixArchs) {
Write-Output "Creating universal installer"
wix build -arch "x64" -ext WixToolset.BootstrapperApplications.wixext `
-out "./out/installer-universal.exe" "./resources/wix/bundle.wxs" `
+ -loc "./resources/wix/bundle-theme.wxl" `
-d VERSION_NUMBER="$VERSION_NUMBER"
diff --git a/resources/wix/bundle-theme.wxl b/resources/wix/bundle-theme.wxl
new file mode 100644
index 00000000..791d6059
--- /dev/null
+++ b/resources/wix/bundle-theme.wxl
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ This is a modification of `HyperlinkSidebarTheme.wxl`.
+ Ref: https://github.com/wixtoolset/wix/blob/v5.0.0/src/ext/Bal/stdbas/Resources/HyperlinkTheme.wxl
+-->
+<WixLocalization Culture="en-us" Language="1033" xmlns="http://wixtoolset.org/schemas/v4/wxl">
+ <String Id="Caption" Value="[WixBundleName] Setup" />
+ <String Id="Title" Value="[WixBundleName]" />
+ <String Id="CheckingForUpdatesLabel" Value="Checking for updates" />
+ <String Id="UpdateButton" Value="&amp;Update to version [WixStdBAUpdateAvailable]" />
+ <String Id="InstallHeader" Value="Welcome" />
+ <String Id="InstallMessage" Value="Setup will install [WixBundleName] on your computer. Click Install to continue or Cancel to exit." />
+ <String Id="InstallMessageOptions" Value="Setup will install [WixBundleName] on your computer. Click Install to continue, Options to set installation options, or Cancel to exit." />
+ <String Id="InstallVersion" Value="Version [WixBundleVersion]" />
+ <String Id="ConfirmCancelMessage" Value="Are you sure you want to cancel?" />
+ <String Id="ExecuteUpgradeRelatedBundleMessage" Value="Previous version" />
+ <String Id="HelpHeader" Value="Setup Help" />
+ <String Id="HelpText" Value="/install | /repair | /uninstall | /layout [directory] - installs, repairs, uninstalls or&#xA; creates a complete local copy of the bundle in directory. Install is the default.&#xA;&#xA;/passive | /quiet - displays minimal UI with no prompts or displays no UI and&#xA; no prompts. By default UI and all prompts are displayed.&#xA;&#xA;/norestart - suppress any attempts to restart. By default UI will prompt before restart.&#xA;/log log.txt - logs to a specific file. By default a log file is created in %TEMP%." />
+ <String Id="HelpCloseButton" Value="&amp;Close" />
+ <String Id="InstallLicenseLinkText" Value="[WixBundleName] &lt;a href=&quot;#&quot;&gt;license terms&lt;/a&gt;." />
+ <String Id="InstallAcceptCheckbox" Value="I &amp;agree to the license terms and conditions" />
+ <String Id="InstallOptionsButton" Value="&amp;Options" />
+ <String Id="InstallInstallButton" Value="&amp;Install" />
+ <String Id="InstallCancelButton" Value="&amp;Cancel" />
+ <String Id="OptionsHeader" Value="Setup Options" />
+ <String Id="OptionsLocationLabel" Value="Install location:" />
+ <String Id="OptionsBrowseButton" Value="&amp;Browse" />
+ <String Id="OptionsOkButton" Value="&amp;OK" />
+ <String Id="OptionsCancelButton" Value="&amp;Cancel" />
+ <String Id="ProgressHeader" Value="Setup Progress" />
+ <String Id="ProgressLabel" Value="Processing:" />
+ <String Id="OverallProgressPackageText" Value="Initializing..." />
+ <String Id="ProgressCancelButton" Value="&amp;Cancel" />
+ <String Id="ModifyHeader" Value="Modify Setup" />
+ <String Id="ModifyRepairButton" Value="&amp;Repair" />
+ <String Id="ModifyUninstallButton" Value="&amp;Uninstall" />
+ <String Id="ModifyCancelButton" Value="&amp;Cancel" />
+ <String Id="SuccessHeader" Value="Setup Successful" />
+ <String Id="SuccessCacheHeader" Value="Cache Successfully Completed" />
+ <String Id="SuccessInstallHeader" Value="Installation Successfully Completed" />
+ <String Id="SuccessLayoutHeader" Value="Layout Successfully Completed" />
+ <String Id="SuccessModifyHeader" Value="Modify Successfully Completed" />
+ <String Id="SuccessRepairHeader" Value="Repair Successfully Completed" />
+ <String Id="SuccessUninstallHeader" Value="Uninstall Successfully Completed" />
+ <String Id="SuccessUnsafeUninstallHeader" Value="Uninstall Successfully Completed" />
+ <String Id="SuccessLaunchButton" Value="&amp;Launch" />
+ <String Id="SuccessRestartText" Value="You must restart your computer before you can use the software." />
+ <String Id="SuccessUninstallRestartText" Value="You must restart your computer to complete the removal of the software." />
+ <String Id="SuccessRestartButton" Value="&amp;Restart" />
+ <String Id="SuccessCloseButton" Value="&amp;Close" />
+ <String Id="FailureHeader" Value="Setup Failed" />
+ <String Id="FailureCacheHeader" Value="Cache Failed" />
+ <String Id="FailureInstallHeader" Value="Setup Failed" />
+ <String Id="FailureLayoutHeader" Value="Layout Failed" />
+ <String Id="FailureModifyHeader" Value="Modify Failed" />
+ <String Id="FailureRepairHeader" Value="Repair Failed" />
+ <String Id="FailureUninstallHeader" Value="Uninstall Failed" />
+ <String Id="FailureUnsafeUninstallHeader" Value="Uninstall Failed" />
+ <String Id="FailureHyperlinkLogText" Value="One or more issues caused the setup to fail. Please fix the issues and then retry setup. For more information see the &lt;a href=&quot;#&quot;&gt;log file&lt;/a&gt;." />
+ <String Id="FailureRestartText" Value="You must restart your computer to complete the rollback of the software." />
+ <String Id="FailureRestartButton" Value="&amp;Restart" />
+ <String Id="FailureCloseButton" Value="&amp;Close" />
+ <String Id="FilesInUseTitle" Value="Files In Use" />
+ <String Id="FilesInUseLabel" Value="The following applications are using files that need to be updated:" />
+ <String Id="FilesInUseNetfxCloseRadioButton" Value="Close the &amp;applications." />
+ <String Id="FilesInUseCloseRadioButton" Value="Close the &amp;applications and attempt to restart them." />
+ <String Id="FilesInUseDontCloseRadioButton" Value="&amp;Do not close applications. A reboot will be required." />
+ <String Id="FilesInUseRetryButton" Value="&amp;Retry" />
+ <String Id="FilesInUseIgnoreButton" Value="&amp;Ignore" />
+ <String Id="FilesInUseExitButton" Value="E&amp;xit" />
+</WixLocalization>