mirror of
https://github.com/storytold/cadcraft.git
synced 2026-10-24 02:46:51 -06:00
232 lines
16 KiB
XML
232 lines
16 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Generated by craft-installer for cadcraft. Edit the template in craft-libs, then regenerate. -->
|
|
<!-- Adapted from PdfCraft installer-ui.wxs (a6bc63a), GridCraft gridcraft.wxs (5b15827),
|
|
and EffectCraft installer-ui.wxs (1b4d47f).
|
|
Copyright (c) 2026 ArtCraft Team and the PdfCraft contributors.
|
|
Copyright (c) 2026 ArtCraft Team and the GridCraft contributors.
|
|
Copyright (c) 2026 ArtCraft Team and the EffectCraft contributors.
|
|
Licensed under MIT OR Apache-2.0; see the repository's LICENSE-MIT and LICENSE-APACHE. -->
|
|
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
|
|
<Fragment>
|
|
<!-- Windows Installer populates files-in-use lists at runtime. Keep their table even
|
|
though these dialogs have no static ListItem rows (the GridCraft UI does the same). -->
|
|
<EnsureTable Id="ListBox" />
|
|
<!-- Reuse the existing package icon as a fallback; MSI supplies its standard message icon. -->
|
|
<Binary Id="CraftInstallerErrorIcon" SourceFile="$(var.IconPath)" />
|
|
<SetProperty Id="CraftDesktopShortcutChoice" Value="1" Before="InstallWelcome" Sequence="ui"
|
|
Condition="UILevel = 5 AND NOT Installed AND NOT REMOVE AND NOT REINSTALL AND DESKTOPSHORTCUT = "1"" />
|
|
|
|
<UI Id="CraftInstallerUI">
|
|
<TextStyle Id="CraftInstallerNormal" FaceName="Segoe UI" Size="9" />
|
|
<TextStyle Id="CraftInstallerTitle" FaceName="Segoe UI" Size="12" Bold="yes" />
|
|
<Property Id="DefaultUIFont" Value="CraftInstallerNormal" />
|
|
<Property Id="ErrorDialog" Value="CraftInstallerErrorDlg" />
|
|
<Dialog Id="CraftInstallerErrorDlg" Width="320" Height="120" Title="[ProductName] Setup" ErrorDialog="yes" NoMinimize="yes">
|
|
<Control Id="ErrorText" Type="Text" X="60" Y="15" Width="245" Height="65" TabSkip="no" />
|
|
<Control Id="ErrorIcon" Type="Icon" X="15" Y="15" Width="32" Height="32" FixedSize="yes" IconSize="32" TabSkip="yes" Text="CraftInstallerErrorIcon" />
|
|
<Control Id="A" Type="PushButton" X="15" Y="90" Width="65" Height="20" Text="Abort" TabSkip="yes">
|
|
<Publish Event="EndDialog" Value="ErrorAbort" />
|
|
</Control>
|
|
<Control Id="C" Type="PushButton" X="15" Y="90" Width="65" Height="20" Text="Cancel" TabSkip="yes">
|
|
<Publish Event="EndDialog" Value="ErrorCancel" />
|
|
</Control>
|
|
<Control Id="I" Type="PushButton" X="15" Y="90" Width="65" Height="20" Text="Ignore" TabSkip="yes">
|
|
<Publish Event="EndDialog" Value="ErrorIgnore" />
|
|
</Control>
|
|
<Control Id="N" Type="PushButton" X="15" Y="90" Width="65" Height="20" Text="No" TabSkip="yes">
|
|
<Publish Event="EndDialog" Value="ErrorNo" />
|
|
</Control>
|
|
<Control Id="O" Type="PushButton" X="15" Y="90" Width="65" Height="20" Text="OK" TabSkip="yes">
|
|
<Publish Event="EndDialog" Value="ErrorOk" />
|
|
</Control>
|
|
<Control Id="R" Type="PushButton" X="15" Y="90" Width="65" Height="20" Text="Retry" TabSkip="yes">
|
|
<Publish Event="EndDialog" Value="ErrorRetry" />
|
|
</Control>
|
|
<Control Id="Y" Type="PushButton" X="15" Y="90" Width="65" Height="20" Text="Yes" TabSkip="yes">
|
|
<Publish Event="EndDialog" Value="ErrorYes" />
|
|
</Control>
|
|
</Dialog>
|
|
<Dialog Id="FilesInUse" Width="320" Height="190" Title="[ProductName] Setup" NoMinimize="yes">
|
|
<Control Id="Description" Type="Text" X="15" Y="15" Width="290" Height="35"
|
|
Text="Close the applications listed below, then choose Retry. Ignore may require a restart." />
|
|
<Control Id="Files" Type="ListBox" X="15" Y="55" Width="290" Height="85" Property="FileInUseProcess" />
|
|
<Control Id="Retry" Type="PushButton" X="95" Y="155" Width="65" Height="20" Default="yes" Text="Retry">
|
|
<Publish Event="EndDialog" Value="Retry" />
|
|
</Control>
|
|
<Control Id="Ignore" Type="PushButton" X="167" Y="155" Width="65" Height="20" Text="Ignore">
|
|
<Publish Event="EndDialog" Value="Ignore" />
|
|
</Control>
|
|
<Control Id="Cancel" Type="PushButton" X="240" Y="155" Width="65" Height="20" Cancel="yes" Text="Cancel">
|
|
<Publish Event="EndDialog" Value="Exit" />
|
|
</Control>
|
|
</Dialog>
|
|
|
|
|
|
<Dialog Id="InstallWelcome" Width="370" Height="270" Title="[ProductName] Setup">
|
|
<Control Id="Title" Type="Text" X="20" Y="20" Width="330" Height="25" Text="{\CraftInstallerTitle}Install [ProductName]" />
|
|
<Control Id="Description" Type="Text" X="20" Y="55" Width="330" Height="40"
|
|
Text="Setup will install [ProductName] for all users and add it to the Start menu. Click Install to continue." />
|
|
<Control Id="DesktopShortcut" Type="CheckBox" X="20" Y="125" Width="330" Height="20" Property="CraftDesktopShortcutChoice" CheckBoxValue="1" Text="Create a &desktop shortcut" />
|
|
<Control Id="Install" Type="PushButton" X="195" Y="235" Width="75" Height="23" Default="yes" ElevationShield="yes" Text="&Install">
|
|
<Publish Property="DESKTOPSHORTCUT" Value="1" Order="1" Condition="CraftDesktopShortcutChoice = "1"" />
|
|
<Publish Property="DESKTOPSHORTCUT" Value="0" Order="2" Condition="NOT CraftDesktopShortcutChoice" />
|
|
<Publish Event="EndDialog" Value="Return" Order="99" />
|
|
</Control>
|
|
<Control Id="Cancel" Type="PushButton" X="280" Y="235" Width="70" Height="23" Cancel="yes" Text="Cancel">
|
|
<Publish Event="EndDialog" Value="Exit" />
|
|
</Control>
|
|
</Dialog>
|
|
|
|
<Dialog Id="InstallMaintenance" Width="370" Height="270" Title="[ProductName] Setup">
|
|
<Control Id="Title" Type="Text" X="20" Y="20" Width="330" Height="25" Text="{\CraftInstallerTitle}Maintain [ProductName]" />
|
|
<Control Id="Description" Type="Text" X="20" Y="55" Width="330" Height="70"
|
|
Text="[ProductName] is already installed. Choose Repair to restore missing files and shortcuts, or Remove to uninstall it." />
|
|
<Control Id="Repair" Type="PushButton" X="110" Y="235" Width="75" Height="23" Default="yes" ElevationShield="yes" Text="&Repair">
|
|
<!-- Feature events do not retain REINSTALL/REMOVE in the client UI session. -->
|
|
<Publish Property="CraftInstallerOperation" Value="repair" Order="1" />
|
|
<Publish Event="ReinstallMode" Value="amus" Order="2" />
|
|
<Publish Event="Reinstall" Value="ALL" Order="3" />
|
|
<Publish Event="EndDialog" Value="Return" Order="4" />
|
|
</Control>
|
|
<Control Id="Remove" Type="PushButton" X="195" Y="235" Width="75" Height="23" ElevationShield="yes" Text="R&emove">
|
|
<Publish Property="CraftInstallerOperation" Value="remove" Order="1" />
|
|
<Publish Event="Remove" Value="ALL" Order="2" />
|
|
<Publish Event="EndDialog" Value="Return" Order="3" />
|
|
</Control>
|
|
<Control Id="Cancel" Type="PushButton" X="280" Y="235" Width="70" Height="23" Cancel="yes" Text="Cancel">
|
|
<Publish Event="EndDialog" Value="Exit" />
|
|
</Control>
|
|
</Dialog>
|
|
|
|
<Dialog Id="InstallProgress" Width="370" Height="270" Title="[ProductName] Setup" Modeless="yes">
|
|
<Control Id="Title" Type="Text" X="20" Y="20" Width="330" Height="25" Text="{\CraftInstallerTitle}Setting up [ProductName]" />
|
|
<!-- No ActionText table is authored: subscribing would blank this message (#305). -->
|
|
<Control Id="Status" Type="Text" X="20" Y="60" Width="330" Height="40" Text="Please wait while setup completes." />
|
|
<Control Id="Progress" Type="ProgressBar" X="20" Y="110" Width="330" Height="15" ProgressBlocks="yes">
|
|
<Subscribe Event="SetProgress" Attribute="Progress" />
|
|
</Control>
|
|
<Control Id="Cancel" Type="PushButton" X="280" Y="235" Width="70" Height="23" Cancel="yes" Text="Cancel">
|
|
<Publish Event="SpawnDialog" Value="ConfirmCancel" />
|
|
</Control>
|
|
</Dialog>
|
|
|
|
<Dialog Id="ConfirmCancel" Width="300" Height="110" Title="Cancel setup">
|
|
<Control Id="Description" Type="Text" X="20" Y="20" Width="260" Height="35" Text="Cancel [ProductName] setup?" />
|
|
<Control Id="Yes" Type="PushButton" X="130" Y="70" Width="70" Height="23" Text="&Yes">
|
|
<Publish Event="EndDialog" Value="Exit" />
|
|
</Control>
|
|
<Control Id="No" Type="PushButton" X="210" Y="70" Width="70" Height="23" Default="yes" Cancel="yes" Text="&No">
|
|
<Publish Event="EndDialog" Value="Return" />
|
|
</Control>
|
|
</Dialog>
|
|
|
|
<Dialog Id="InstallComplete" Width="370" Height="270" Title="[ProductName] Setup">
|
|
<Control Id="Title" Type="Text" X="20" Y="20" Width="330" Height="25" Text="{\CraftInstallerTitle}Setup completed successfully" HideCondition="REMOVE = "ALL" OR CraftInstallerOperation = "remove"" />
|
|
<Control Id="RemovedTitle" Type="Text" X="20" Y="20" Width="330" Height="25" Text="{\CraftInstallerTitle}Uninstall completed successfully" Hidden="yes" ShowCondition="REMOVE = "ALL" OR CraftInstallerOperation = "remove"" />
|
|
<Control Id="Description" Type="Text" X="20" Y="55" Width="330" Height="70"
|
|
Text="[ProductName] is installed. Open it from the Start menu. Click Finish to close setup." HideCondition="REMOVE = "ALL" OR REINSTALL OR CraftInstallerOperation OR ACTION = "ADMIN"" />
|
|
<Control Id="Removed" Type="Text" X="20" Y="55" Width="330" Height="70" Hidden="yes"
|
|
Text="[ProductName] was uninstalled. Your documents and settings were kept. Click Finish to close setup."
|
|
ShowCondition="REMOVE = "ALL" OR CraftInstallerOperation = "remove"" />
|
|
<Control Id="Repaired" Type="Text" X="20" Y="55" Width="330" Height="70" Hidden="yes"
|
|
Text="[ProductName] was repaired. Open it from the Start menu. Click Finish to close setup."
|
|
ShowCondition="(REINSTALL OR CraftInstallerOperation = "repair") AND NOT REMOVE AND CraftInstallerOperation <> "remove" AND ACTION <> "ADMIN"" />
|
|
<Control Id="AdminComplete" Type="Text" X="20" Y="55" Width="330" Height="70" Hidden="yes"
|
|
Text="The administrative image was created. Click Finish to close setup." ShowCondition="ACTION = "ADMIN"" />
|
|
<Control Id="Finish" Type="PushButton" X="280" Y="235" Width="70" Height="23" Default="yes" Cancel="yes" Text="&Finish">
|
|
|
|
<Publish Event="EndDialog" Value="Return" Order="999" />
|
|
</Control>
|
|
|
|
</Dialog>
|
|
|
|
<Dialog Id="InstallFailed" Width="370" Height="270" Title="[ProductName] Setup">
|
|
<Control Id="Title" Type="Text" X="20" Y="20" Width="330" Height="25" Text="{\CraftInstallerTitle}Setup failed" />
|
|
<Control Id="Description" Type="Text" X="20" Y="55" Width="330" Height="70"
|
|
Text="[ProductName] setup could not be completed. Resolve the reported error and run setup again." />
|
|
<Control Id="Finish" Type="PushButton" X="280" Y="235" Width="70" Height="23" Default="yes" Cancel="yes" Text="&Finish">
|
|
<Publish Event="EndDialog" Value="Return" />
|
|
</Control>
|
|
</Dialog>
|
|
|
|
<Dialog Id="InstallCancelled" Width="370" Height="270" Title="[ProductName] Setup">
|
|
<Control Id="Title" Type="Text" X="20" Y="20" Width="330" Height="25" Text="{\CraftInstallerTitle}Setup cancelled" />
|
|
<Control Id="Description" Type="Text" X="20" Y="55" Width="330" Height="70"
|
|
Text="[ProductName] setup was cancelled. Run setup again when you are ready." />
|
|
<Control Id="Finish" Type="PushButton" X="280" Y="235" Width="70" Height="23" Default="yes" Cancel="yes" Text="&Finish">
|
|
<Publish Event="EndDialog" Value="Return" />
|
|
</Control>
|
|
</Dialog>
|
|
|
|
<!-- Shown by Windows Installer (Restart Manager) when an upgrade or repair must replace files
|
|
that a running app holds open. OK closes those programs (MSIRMSHUTDOWN=2) and
|
|
continues; Cancel ends setup. -->
|
|
<Dialog Id="MsiRMFilesInUse" Width="370" Height="200" Title="[ProductName] Setup" KeepModeless="yes">
|
|
<Control Id="Title" Type="Text" X="20" Y="15" Width="330" Height="25" Text="{\CraftInstallerTitle}Files in use" />
|
|
<Control Id="Description" Type="Text" X="20" Y="45" Width="330" Height="30"
|
|
Text="These programs are using files that setup needs to update. Click OK to close them and continue, or Cancel to stop setup." />
|
|
<Control Id="List" Type="ListBox" X="20" Y="80" Width="330" Height="55" Property="FileInUseProcess" Sunken="yes" TabSkip="yes" />
|
|
<Control Id="OK" Type="PushButton" X="195" Y="165" Width="75" Height="23" Default="yes" Text="OK">
|
|
<Publish Property="MSIRMSHUTDOWN" Value="2" Order="1" />
|
|
<Publish Event="EndDialog" Value="Return" Order="2" />
|
|
</Control>
|
|
<Control Id="Cancel" Type="PushButton" X="280" Y="165" Width="70" Height="23" Cancel="yes" Text="Cancel">
|
|
<Publish Event="EndDialog" Value="Exit" />
|
|
</Control>
|
|
</Dialog>
|
|
|
|
<InstallUISequence>
|
|
<Show Dialog="InstallWelcome" Before="CostInitialize" Condition="UILevel = 5 AND NOT Installed AND NOT REMOVE AND NOT REINSTALL" />
|
|
<!-- Reinstall/Remove control events require the selection manager initialized by costing. -->
|
|
<Show Dialog="InstallMaintenance" After="CostFinalize" Condition="UILevel = 5 AND Installed AND NOT REMOVE AND NOT REINSTALL" />
|
|
|
|
<Show Dialog="InstallProgress" Before="ExecuteAction" Condition="UILevel = 5" />
|
|
<Show Dialog="InstallComplete" OnExit="success" Condition="UILevel = 5" />
|
|
<Show Dialog="InstallFailed" OnExit="error" Condition="UILevel = 5" />
|
|
<Show Dialog="InstallCancelled" OnExit="cancel" Condition="UILevel = 5" />
|
|
</InstallUISequence>
|
|
<AdminUISequence>
|
|
<Show Dialog="InstallProgress" Before="ExecuteAction" Condition="UILevel = 5" />
|
|
<Show Dialog="InstallComplete" OnExit="success" Condition="UILevel = 5" />
|
|
<Show Dialog="InstallFailed" OnExit="error" Condition="UILevel = 5" />
|
|
<Show Dialog="InstallCancelled" OnExit="cancel" Condition="UILevel = 5" />
|
|
</AdminUISequence>
|
|
</UI>
|
|
</Fragment>
|
|
<Fragment>
|
|
<!-- Keep MSI registration for repair, upgrades and managed removal, but let Settings
|
|
invoke our explicit UI command instead of Windows Installer's basic-UI ARP path. -->
|
|
<Property Id="ARPSYSTEMCOMPONENT" Value="1" />
|
|
<?if $(sys.BUILDARCH) = x86 ?>
|
|
<?define CraftMsiSystemFolder = SystemFolder ?>
|
|
<?else ?>
|
|
<?define CraftMsiSystemFolder = System64Folder ?>
|
|
<?endif ?>
|
|
<ComponentGroup Id="CraftInstallerSettings" Directory="INSTALLFOLDER">
|
|
<Component Id="CraftInstallerSettingsEntry" Guid="*">
|
|
<RegistryKey Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\Craft.cadcraft" ForceDeleteOnUninstall="yes">
|
|
<!-- Legacy Launchers match the canonical MSI name exactly; keep this alias distinct. -->
|
|
<RegistryValue Name="DisplayName" Type="string" Value="[ProductName] (Craft Apps)" KeyPath="yes" />
|
|
<RegistryValue Name="DisplayVersion" Type="string" Value="[ProductVersion]" />
|
|
<RegistryValue Name="Publisher" Type="string" Value="[Manufacturer]" />
|
|
<RegistryValue Name="DisplayIcon" Type="string" Value=""[INSTALLFOLDER]cadcraft.exe",0" />
|
|
<RegistryValue Name="InstallLocation" Type="string" Value="[INSTALLFOLDER]" />
|
|
<RegistryValue Name="URLInfoAbout" Type="string" Value="[ARPURLINFOABOUT]" />
|
|
<RegistryValue Name="URLUpdateInfo" Type="string" Value="[ARPURLUPDATEINFO]" />
|
|
<RegistryValue Name="HelpLink" Type="string" Value="[ARPHELPLINK]" />
|
|
<!-- Deliberately omit WindowsInstaller: Settings must honor UninstallString. -->
|
|
<RegistryValue Name="UninstallString" Type="string" Value=""[$(var.CraftMsiSystemFolder)]msiexec.exe" /x [ProductCode] /qf /norestart" />
|
|
<RegistryValue Name="QuietUninstallString" Type="string" Value=""[$(var.CraftMsiSystemFolder)]msiexec.exe" /x [ProductCode] /qn /norestart" />
|
|
<RegistryValue Name="ModifyPath" Type="string" Value=""[$(var.CraftMsiSystemFolder)]msiexec.exe" /i [ProductCode] /qf /norestart" />
|
|
</RegistryKey>
|
|
</Component>
|
|
<!-- Preserve the app-owned ARPNOMODIFY policy instead of inventing a new default. -->
|
|
<Component Id="CraftInstallerSettingsNoModify" Guid="*" Condition="ARPNOMODIFY = "1"">
|
|
<RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\Craft.cadcraft"
|
|
Name="NoModify" Type="integer" Value="1" KeyPath="yes" />
|
|
</Component>
|
|
</ComponentGroup>
|
|
</Fragment>
|
|
|
|
</Wix>
|