|
@@ -8,19 +8,21 @@
|
|
|
Manufacturer="{{ company }}"
|
|
|
UpgradeCode="{{ upgrade_code }}"
|
|
|
>
|
|
|
- <Package InstallerVersion="500"
|
|
|
+ <Package
|
|
|
+ Id="*"
|
|
|
+ InstallerVersion="500"
|
|
|
Compressed="yes"
|
|
|
InstallScope="perMachine"
|
|
|
Manufacturer="{{ company }}"
|
|
|
Description="UltiMaker Cura the most popular 3D printing slicer"
|
|
|
Keywords="UltiMaker,Cura,3D,printing,slicer"
|
|
|
- Comments="Copyright (c) {{ year }} UltiMaker B.V." />
|
|
|
+ Comments="Copyright (c) {{ year }} {{ company }}" />
|
|
|
|
|
|
<InstallExecuteSequence>
|
|
|
<RemoveExistingProducts Before="InstallInitialize" />
|
|
|
</InstallExecuteSequence>
|
|
|
|
|
|
- <Property Id="PREVIOUS_VERSIONS_INSTALLED" Secure="yes" Value="{{ 1 if "Enterpise" in app_name else 0 }}" />
|
|
|
+ <Property Id="PREVIOUS_VERSIONS_INSTALLED" Secure="yes" Value="{{ 1 if "Enterprise" in app_name else 0 }}" />
|
|
|
<Upgrade Id="{{ upgrade_code }}">
|
|
|
<UpgradeVersion
|
|
|
Minimum="4.13.2" Maximum="{{ version_major }}.{{ version_minor }}.{{ version_patch }}"
|
|
@@ -28,10 +30,8 @@
|
|
|
IncludeMinimum="no" IncludeMaximum="no"
|
|
|
/>
|
|
|
</Upgrade>
|
|
|
- <!--TODO: handle copy of configuration of previous version-->
|
|
|
- <!--TODO: handle removal of old configuration once previous version is uninstalled-->
|
|
|
|
|
|
- {% if "Enterpise" in app_name %}
|
|
|
+ {% if "Enterprise" in app_name %}
|
|
|
<Property Id="PREVIOUS_413_INSTALLED" Secure="yes" />
|
|
|
<Upgrade Id="53C603BB-2B17-4206-A609-29C2E0D0B0AE">
|
|
|
<UpgradeVersion
|
|
@@ -86,43 +86,53 @@
|
|
|
<Property Id="ApplicationFolderName" Value="{{ app_name }} {{ version }}" />
|
|
|
<Property Id="WixAppFolder" Value="WixPerMachineFolder" />
|
|
|
|
|
|
- <Component Id="CMP_UltiMaker_Cura_exe" Directory="APPLICATIONFOLDER" Guid="*">
|
|
|
- <File Id="FILE_UltiMaker_Cura_exe" KeyPath="yes" Source="$(var.CuraDir)\{{ main_app }}"/>
|
|
|
- <!--Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\PackageRepository\Extensions\windows.fileTypeAssociation\.3mf-->
|
|
|
-
|
|
|
- <RegistryValue Root="HKLM" Key="SOFTWARE\{{ app_name }}\Capabilities\FileAssociations" Name=".3mf" Value="PRG_UltiMaker_Cura.3MF" Type="string" />
|
|
|
- <RegistryValue Root="HKLM" Key="SOFTWARE\{{ app_name }}\Capabilities\FileAssociations" Name=".stl" Value="PRG_UltiMaker_Cura.STL" Type="string" />
|
|
|
- <RegistryValue Root="HKLM" Key="SOFTWARE\{{ app_name }}\Capabilities\MIMEAssociations" Name="application/3mf" Value="PRG_UltiMaker_Cura.3MF" Type="string" />
|
|
|
- <RegistryValue Root="HKLM" Key="SOFTWARE\{{ app_name }}\Capabilities\MIMEAssociations" Name="application/stl" Value="PRG_UltiMaker_Cura.STL" Type="string" />
|
|
|
- <RegistryValue Root="HKLM" Key="SOFTWARE\{{ app_name }}\Capabilities\shell\Open\command" Value='"[APPLICATIONFOLDER]\{{ main_app }}" "%1"' Type="string" />
|
|
|
- <RegistryValue Root="HKLM" Key="SOFTWARE\RegisteredApplications" Name="{{ app_name }}" Value="SOFTWARE\MyApp\Capabilities" Type="string" />
|
|
|
-
|
|
|
- <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Applications\{{ main_app }}\SupportedTypes" Name=".3mf" Value="" Type="string" />
|
|
|
- <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Applications\{{ main_app }}\SupportedTypes" Name=".stl" Value="" Type="string" />
|
|
|
- <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Applications\{{ main_app }}\shell\open" Name="{{ app_name }}" Value="{{ main_app }}" Type="string" />
|
|
|
-
|
|
|
- <ProgId Id="PRG_UltiMaker_Cura.STL" Description="{{ app_name }}" Icon="FILE_UltiMaker_Cura_exe">
|
|
|
- <Extension Id="STL">
|
|
|
- <Verb Id='edit' TargetFile="FILE_UltiMaker_Cura_exe" Argument='"%1"' />
|
|
|
- <MIME ContentType="application/stl" Default="yes" />
|
|
|
- </Extension>
|
|
|
- </ProgId>
|
|
|
- <ProgId Id="PRG_UltiMaker_Cura.3MF" Description="{{ app_name }}" Icon="FILE_UltiMaker_Cura_exe">
|
|
|
- <Extension Id="3MF">
|
|
|
- <Verb Id='edit' TargetFile="FILE_UltiMaker_Cura_exe" Argument='"%1"' />
|
|
|
- <MIME ContentType="application/3mf" Default="yes" />
|
|
|
- </Extension>
|
|
|
- </ProgId>
|
|
|
-
|
|
|
- <!-- Current Cura versions are not supported on XP or Server 2003. Even so, add 'ignorefailure=yes'. After all, worst that can happen is the user gets asked, like before. -->
|
|
|
- <fw:FirewallException Id="FirewallExceptLocalFrontend" Name="Cura (Frontend) Connection (LocalHost)" File="FILE_CuraEngine_exe" Port="127.0.0.1" IgnoreFailure="yes" Scope="localSubnet" />
|
|
|
- </Component>
|
|
|
- <Component Id="CMP_CuraEngine_exe" Directory="APPLICATIONFOLDER" Guid="*">
|
|
|
- <File Id="FILE_CuraEngine_exe" KeyPath="yes" Source="$(var.CuraDir)\CuraEngine.exe" />
|
|
|
-
|
|
|
- <!-- Current Cura versions are not supported on XP or Server 2003. Even so, add 'ignorefailure=yes'. After all, worst that can happen is the user gets asked, like before. -->
|
|
|
- <fw:FirewallException Id="FirewallExceptLocalEngine" Name="CuraEngine (Backend) Connection (LocalHost)" File="FILE_CuraEngine_exe" Port="127.0.0.1" IgnoreFailure="yes" Scope="localSubnet" />
|
|
|
- </Component>
|
|
|
+ <Component Id="CMP_UltiMaker_Cura_exe" Directory="APPLICATIONFOLDER" Guid="*">
|
|
|
+ <File Id="FILE_UltiMaker_Cura_exe" KeyPath="yes" Source="$(var.CuraDir)\{{ main_app }}" />
|
|
|
+
|
|
|
+ <ProgId Id="Cura" Description="{{ app_name }}" Icon="ICO_Cura" Advertise="yes">
|
|
|
+ <ProgId Id="3mf" Advertise="yes">
|
|
|
+ <Extension Id="3mf" ContentType="application/3mf">
|
|
|
+ <Verb Id="open_3mf" Command="Open" Argument='"%1"' />
|
|
|
+ <MIME Advertise="yes" ContentType="application/3mf" Default="yes" />
|
|
|
+ </Extension>
|
|
|
+ </ProgId>
|
|
|
+ <ProgId Id="stl" Advertise="yes">
|
|
|
+ <Extension Id="stl" ContentType="application/stl">
|
|
|
+ <Verb Id="open_stl" Command="Open" Argument='"%1"' />
|
|
|
+ <MIME Advertise="yes" ContentType="application/stl" Default="yes" />
|
|
|
+ </Extension>
|
|
|
+ </ProgId>
|
|
|
+ <ProgId Id="gcode" Advertise="yes">
|
|
|
+ <Extension Id="gcode" ContentType="text/x-gcode">
|
|
|
+ <Verb Id="open_gcode" Command="Open" Argument='"%1"' />
|
|
|
+ <MIME Advertise="yes" ContentType="text/x-gcode" Default="yes" />
|
|
|
+ </Extension>
|
|
|
+ </ProgId>
|
|
|
+ <ProgId Id="ufp" Advertise="yes">
|
|
|
+ <Extension Id="ufp" ContentType="application/x-ufp">
|
|
|
+ <Verb Id="open_ufp" Command="Open" Argument='"%1"' />
|
|
|
+ <MIME Advertise="yes" ContentType="application/x-ufp" Default="yes" />
|
|
|
+ </Extension>
|
|
|
+ </ProgId>
|
|
|
+ <ProgId Id="curapackage" Advertise="yes">
|
|
|
+ <Extension Id='curapackage' ContentType='application/curapackage'>
|
|
|
+ <Verb Id='open_curapackage' Command="Open" Argument='"%1"' />
|
|
|
+ <MIME Advertise="yes" ContentType="application/curapackage" Default="yes" />
|
|
|
+ </Extension>
|
|
|
+ </ProgId>
|
|
|
+ </ProgId>
|
|
|
+
|
|
|
+ <fw:FirewallException Id="FirewallExceptLocalFrontend" Name="Cura (Frontend) Connection (LocalHost)" File="FILE_UltiMaker_Cura_exe" IgnoreFailure="yes">
|
|
|
+ <fw:RemoteAddress>127.0.0.1</fw:RemoteAddress>
|
|
|
+ </fw:FirewallException>
|
|
|
+ </Component>
|
|
|
+ <Component Id="CMP_CuraEngine_exe" Directory="APPLICATIONFOLDER" Guid="*">
|
|
|
+ <File Id="FILE_CuraEngine_exe" KeyPath="yes" Source="$(var.CuraDir)\CuraEngine.exe" />
|
|
|
+
|
|
|
+ <fw:FirewallException Id="FirewallExceptLocalEngine" Name="CuraEngine (Backend) Connection (LocalHost)" File="FILE_CuraEngine_exe" IgnoreFailure="yes">
|
|
|
+ <fw:RemoteAddress>127.0.0.1</fw:RemoteAddress>
|
|
|
+ </fw:FirewallException>
|
|
|
+ </Component>
|
|
|
|
|
|
<!--Shortcuts-->
|
|
|
<DirectoryRef Id="ShortCutDir">
|
|
@@ -140,7 +150,7 @@
|
|
|
<RemoveFolder Id="RemoveMyShortcutsDir"
|
|
|
On="uninstall" />
|
|
|
<RegistryValue Root="HKCU"
|
|
|
- Key="Software\{{ company }}\{{ app_name }}"
|
|
|
+ Key="Software\{{ company }}\{{ app_name }}\{{ version }}"
|
|
|
Name="installed"
|
|
|
Type="integer"
|
|
|
Value="1"
|
|
@@ -148,7 +158,7 @@
|
|
|
</Component>
|
|
|
</DirectoryRef>
|
|
|
|
|
|
- <Feature Id="ProductFeature" Title="{{ app_name }}" Level="1">
|
|
|
+ <Feature Id="ProductFeature" Title="{{ app_name }}" Level="1" ConfigurableDirectory="APPLICATIONFOLDER">
|
|
|
<ComponentRef Id="CMP_UltiMaker_Cura_exe" />
|
|
|
<ComponentRef Id="CMP_CuraEngine_exe" />
|
|
|
<ComponentGroupRef Id="NewFilesGroup" />
|