mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
c3c952bd26
- **Benchmark tool:** - (Add) Reference machine Intel® Core™ i9-13900K @ 5.5 GHz - (Improvement) Layout and arrangement - **Windows MSI:** - (Improvement) Move registry keys from HKCU to HKLM - (Improvement) Sign MSI package - (Upgrade) Windows MSI: Wix 3 to 4 - (Fix) SL1: Change `SupportPillarWideningFactor` from ushort to float - (Fix) PCB exposure: Implement G02 and G03 arcs (#692) - (Upgrade) .NET from 6.0.15 to 6.0.16 - (Upgrade) openCV from 4.6.0 to 4.7.0
157 lines
11 KiB
XML
157 lines
11 KiB
XML
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
|
|
<!--
|
|
ProductVersion is defined in UVtools.Installer.wixproj as 0.0.1 for local desktop builds.
|
|
You should pass in the MSBuild Property 'ProductVersion' to override it during an automated build.
|
|
See http://msdn.microsoft.com/en-us/library/windows/desktop/aa370859%28v=vs.85%29.aspx for information on allowable values.
|
|
|
|
The Product@Id attribute (ProductCode Property) will be a random GUID for each build. This is to support "Major Upgrades" where each install
|
|
is a seamless uninstall/reinstall.
|
|
Version="$(var.ProductVersion)"
|
|
-->
|
|
|
|
<?define UpgradeCode="1ea6d212-15c0-425e-b2ec-4b6c60817552"?>
|
|
<?define ProductDescription="MSLA/DLP, file analysis, repair, conversion and manipulation"?>
|
|
|
|
<Package Name="UVtools" Language="1033" Version="$(var.ProductVersion)" Manufacturer="PTRTECH" Scope="perMachine" UpgradeCode="$(var.UpgradeCode)" Compressed="yes">
|
|
<SummaryInformation Keywords="MSLA, DLP, 3D print, resin" Description="$(var.ProductDescription)" />
|
|
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
|
|
|
|
<!-- Major Upgrade Rule to disallow downgrades -->
|
|
<MajorUpgrade AllowDowngrades="no"
|
|
AllowSameVersionUpgrades="yes"
|
|
IgnoreRemoveFailure="no"
|
|
DowngradeErrorMessage="A newer version of [ProductName] is already installed. Setup will now exit."
|
|
Schedule="afterInstallInitialize" />
|
|
|
|
|
|
<!-- Product upgrade -->
|
|
<!-- https://stackoverflow.com/questions/4227456/windows-installer-deletes-versioned-file-during-product-upgrade-instead-of-down -->
|
|
<!--<Upgrade Id="$(var.UpgradeCode)">-->
|
|
<!-- <UpgradeVersion OnlyDetect="no" Property="WIX_UPGRADE_DETECTED" Maximum="$(var.ProductVersion)" IncludeMaximum="no" IncludeMinimum="no" MigrateFeatures="yes" />-->
|
|
<!-- <UpgradeVersion OnlyDetect="yes" Property="WIX_DOWNGRADE_DETECTED" Minimum="$(var.ProductVersion)" IncludeMinimum="no" />-->
|
|
<!--</Upgrade>-->
|
|
<!--<InstallExecuteSequence>-->
|
|
<!-- <RemoveExistingProducts Before="CostInitialize" />-->
|
|
<!--</InstallExecuteSequence>-->
|
|
<!--<Launch Condition="NOT WIX_DOWNGRADE_DETECTED" Message="A newer version of [ProductName] is already installed. Setup will now exit." />-->
|
|
|
|
|
|
<!--Common Launch Condition-->
|
|
<!-- Examples at http://wixtoolset.org/documentation/manual/v3/customactions/wixnetfxextension.html -->
|
|
<!--
|
|
<PropertyRef Id="NETFRAMEWORK45" />
|
|
<Condition Message="[ProductName] requires .NET Framework 4.8.">Installed OR NETFRAMEWORK45</Condition>
|
|
-->
|
|
<!-- Include User Interface Experience -->
|
|
<Icon Id="Icon" SourceFile="..\UVtools.CAD\UVtools.ico" />
|
|
<Property Id="ARPPRODUCTICON" Value="Icon" />
|
|
<Property Id="ARPCONTACT" Value="Tiago Conceição" />
|
|
<Property Id="ARPHELPLINK" Value="https://github.com/sn4k3/UVtools" />
|
|
<Property Id="ARPURLINFOABOUT" Value="https://github.com/sn4k3/UVtools" />
|
|
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLPATH" />
|
|
<Property Id="DISABLEADVTSHORTCUTS" Value="1" />
|
|
|
|
<StandardDirectory Id="ProgramFiles64Folder">
|
|
<Directory Id="INSTALLPATH" Name="!(bind.Property.ProductName)" />
|
|
</StandardDirectory>
|
|
|
|
<Property Id="INSTALLPATH_REG">
|
|
<RegistrySearch Id="INSTALLPATH_REG_QUERY" Type="raw" Root="HKLM" Key="Software\[ProductName]" Name="InstallDir" />
|
|
</Property>
|
|
<SetDirectory Id="INSTALLPATH" Value="[INSTALLPATH_REG]" Condition="INSTALLPATH_REG" />
|
|
|
|
<Property Id="CREATEDESKTOPSHORTCUT" Value="1">
|
|
<!--<RegistrySearch Id="CREATEDESKTOPSHORTCUT_REG" Type="raw" Root="HKLM" Key="Software\[ProductName]" Name="CreateDesktopShortcut" />!-->
|
|
</Property>
|
|
<SetProperty Id="CREATEDESKTOPSHORTCUT" Value="0" Before="WriteRegistryValues" Sequence="execute" Condition="NOT (CREATEDESKTOPSHORTCUT=1)" />
|
|
|
|
<Property Id="CREATEFILEASSOCIATIONS" Value="1">
|
|
<!--<RegistrySearch Id="CREATEFILEASSOCIATIONS_REG" Type="raw" Root="HKLM" Key="Software\[ProductName]" Name="CreateFileAssociations" />!-->
|
|
</Property>
|
|
<SetProperty Id="CREATEFILEASSOCIATIONS" Value="0" Before="WriteRegistryValues" Sequence="execute" Condition="NOT (CREATEFILEASSOCIATIONS=1)" />
|
|
|
|
<Property Id="SETPATHENVIRONMENTVAR" Value="1">
|
|
<!--<RegistrySearch Id="SETPATHENVIRONMENTVAR_REG" Type="raw" Root="HKLM" Key="Software\[ProductName]" Name="SetPathEnvironmentVar" />!-->
|
|
</Property>
|
|
<SetProperty Id="SETPATHENVIRONMENTVAR" Value="0" Before="WriteRegistryValues" Sequence="execute" Condition="NOT (SETPATHENVIRONMENTVAR=1)" />
|
|
|
|
<UIRef Id="UI" />
|
|
|
|
|
|
<!-- Start Features -->
|
|
<Feature Id="UVtools" Title="!(bind.Property.ProductName)" Description="Installs all the files needed for [ProductName]" Level="1" AllowAdvertise="no" ConfigurableDirectory="INSTALLPATH">
|
|
<ComponentRef Id="RegInstallInfo" />
|
|
<ComponentRef Id="RegFilesAssociations" />
|
|
<ComponentGroupRef Id="HarvestedComponents" />
|
|
<ComponentRef Id="CMP_DesktopShortcuts" />
|
|
<ComponentRef Id="CMP_StartMenuShortcuts" />
|
|
<ComponentRef Id="CMP_SetPathEnvironmentVar" />
|
|
</Feature>
|
|
<!-- End Features -->
|
|
|
|
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch !(bind.Property.ProductName)" />
|
|
<Property Id="WixShellExecTarget" Value="[INSTALLPATH]UVtools.exe" />
|
|
<CustomAction Id="LaunchApplication" DllEntry="WixShellExec" Impersonate="yes" BinaryRef="Wix4UtilCA_X64" />
|
|
|
|
|
|
<StandardDirectory Id="DesktopFolder">
|
|
<Component Id="CMP_DesktopShortcuts" Guid="B5B54770-8764-4EF5-B649-F612C3F5B04D" Condition="CREATEDESKTOPSHORTCUT = 1">
|
|
|
|
<Shortcut Id="desktopUVtoolsSC" Name="!(bind.Property.ProductName)" Description="$(var.ProductDescription)" Target="[INSTALLPATH]UVtools.exe" WorkingDirectory="INSTALLPATH" />
|
|
|
|
<RegistryKey Root="HKLM" Key="Software\[ProductName]" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
|
|
<RegistryValue Name="Uninstall" Value="[ProductCode]" Type="string" />
|
|
</RegistryKey>
|
|
</Component>
|
|
</StandardDirectory>
|
|
<StandardDirectory Id="ProgramMenuFolder">
|
|
<Directory Id="ProgramMenuUVtoolsFolder" Name="!(bind.Property.ProductName)">
|
|
<Component Id="CMP_StartMenuShortcuts" Guid="857FE93D-3F67-4298-A20D-439F7421724F">
|
|
<Shortcut Id="startMenuUVtoolsSC" Name="!(bind.Property.ProductName)" Description="$(var.ProductDescription)" Target="[INSTALLPATH]UVtools.exe" WorkingDirectory="INSTALLPATH" />
|
|
<Shortcut Id="startMenuUVtoolsCmdSC" Name="UVtoolsCmd" Description="$(var.ProductDescription)" Target="[System64Folder]cmd.exe" Arguments="/k UVtoolsCmd.exe" WorkingDirectory="INSTALLPATH" />
|
|
<Shortcut Id="startMenuUninstallSC" Name="Uninstall !(bind.Property.ProductName)" Description="Uninstalls !(bind.Property.ProductName) and all of its components" Target="[System64Folder]msiexec.exe" Arguments="/i [ProductCode]" />
|
|
|
|
<RemoveFolder Id="ProgramMenuUVtoolsFolder" On="uninstall" />
|
|
|
|
<RegistryKey Root="HKLM" Key="Software\[ProductName]" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
|
|
<RegistryValue Name="Uninstall" Value="[ProductCode]" Type="string" />
|
|
</RegistryKey>
|
|
</Component>
|
|
</Directory>
|
|
</StandardDirectory>
|
|
|
|
<!-- Environment vars -->
|
|
<Component Id="CMP_SetPathEnvironmentVar" Guid="974A9C67-F75E-44BB-BDCD-59680100504E" Directory="INSTALLPATH" Condition="SETPATHENVIRONMENTVAR = 1">
|
|
<Environment Id="PathEnvironmentVar" Name="PATH" Value="[INSTALLPATH]" Permanent="no" Part="last" Action="set" System="yes" />
|
|
</Component>
|
|
|
|
<!-- Start Registry -->
|
|
<Component Id="RegInstallInfo" Guid="C3603223-A8C1-4393-8C06-36B48DED2652" Directory="INSTALLPATH">
|
|
<!-- Install directory -->
|
|
<RegistryKey Root="HKLM" Key="Software\[ProductName]" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
|
|
<RegistryValue Name="InstallDir" Value="[INSTALLPATH]" Type="string" />
|
|
<RegistryValue Name="CreateDesktopShortcut" Value="[CREATEDESKTOPSHORTCUT]" Type="integer" />
|
|
<RegistryValue Name="CreateFileAssociations" Value="[CREATEFILEASSOCIATIONS]" Type="integer" />
|
|
<RegistryValue Name="SetPathEnvironmentVar" Value="[SETPATHENVIRONMENTVAR]" Type="integer" />
|
|
</RegistryKey>
|
|
</Component>
|
|
|
|
<Component Id="RegFilesAssociations" Guid="A39174DD-7B4A-4020-A57A-0DC01242D7EC" Directory="INSTALLPATH" Condition="CREATEFILEASSOCIATIONS = 1">
|
|
<!-- Open file with UVtools -->
|
|
|
|
<RegistryKey Root="HKCR" Key="*\shell\[ProductName]" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
|
|
<RegistryValue Value="Open with [ProductName]" Type="string" />
|
|
<RegistryValue Name="Icon" Value="[INSTALLPATH][ProductName].exe" Type="string" />
|
|
<RegistryValue Name="Position" Value="Top" Type="string" />
|
|
<RegistryValue Name="AppliesTo" Value="System.FileName:"*.sl1" OR System.FileName:"*.sl1s" OR System.FileName:"*.zip" OR System.FileName:"*.photon" OR System.FileName:"*.cbddlp" OR System.FileName:"*.ctb" OR System.FileName:"*.photons" OR System.FileName:"*.phz" OR System.FileName:"*.pws" OR System.FileName:"*.pw0" OR System.FileName:"*.pwx" OR System.FileName:"*.dlp" OR System.FileName:"*.dl2p" OR System.FileName:"*.pwmx" OR System.FileName:"*.pmx2" OR System.FileName:"*.pwmb" OR System.FileName:"*.pwmo" OR System.FileName:"*.pwms" OR System.FileName:"*.pwma" OR System.FileName:"*.pmsq" OR System.FileName:"*.pm3" OR System.FileName:"*.pm3m" OR System.FileName:"*.pm3r" OR System.FileName:"*.pwc" OR System.FileName:"*.cws" OR System.FileName:"*.n4" OR System.FileName:"*.n7" OR System.FileName:"*.lgs" OR System.FileName:"*.lgs30" OR System.FileName:"*.lgs120" OR System.FileName:"*.lgs4k" OR System.FileName:"*.vdt" OR System.FileName:"*.cxdlp" OR System.FileName:"*.fdg" OR System.FileName:"*.goo" OR System.FileName:"*.zcode" OR System.FileName:"*.jxs" OR System.FileName:"*.zcodex" OR System.FileName:"*.mdlp" OR System.FileName:"*.gr1" OR System.FileName:"*.svgx" OR System.FileName:"*.osla" OR System.FileName:"*.osf" OR System.FileName:"*.uvj" OR System.FileName:"*.png" OR System.FileName:"*.jpg" OR System.FileName:"*.jpeg" OR System.FileName:"*.jp2" OR System.FileName:"*.tif" OR System.FileName:"*.tiff" OR System.FileName:"*.bmp" OR System.FileName:"*.pbm" OR System.FileName:"*.pgm" OR System.FileName:"*.sr" OR System.FileName:"*.ras"" Type="string" />
|
|
|
|
<RegistryKey Key="command" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
|
|
<RegistryValue Value=""[INSTALLPATH][ProductName].exe" "%1"" Type="string" />
|
|
</RegistryKey>
|
|
</RegistryKey>
|
|
|
|
</Component>
|
|
<!-- End Registry -->
|
|
</Package>
|
|
</Wix>
|