|
1 | 1 | <!-- Copyright (c) DataLab Platform Developers, BSD 3-Clause license, see LICENSE file. --> |
2 | 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" |
3 | 3 | xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"> |
4 | | - <Package Name="DataLab" ProductCode="4ad79deb-5cf7-481c-a242-28c66b8a53ef" Language="1033" Version="{version}" Codepage="1252" Manufacturer="DataLab Platform Developers" UpgradeCode="538c2966-2bcd-4bd4-b20a-9acb161a1614" InstallerVersion="200" Scope="perUserOrMachine"> |
5 | | - <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> |
| 4 | + <Package Name="DataLab" ProductCode="b9f2e8d4-7c3a-4f1b-9e6d-5a8c2f1b4e9a" Language="1033" Version="{version}" Codepage="1252" Manufacturer="DataLab Platform Developers" UpgradeCode="e7a3f5c1-9d84-4b2a-a6f1-2c5d8e9b7a31" InstallerVersion="200" Scope="perUserOrMachine"> |
| 5 | + <Upgrade Id="e7a3f5c1-9d84-4b2a-a6f1-2c5d8e9b7a31"> |
| 6 | + <UpgradeVersion Minimum="1.0.0" Maximum="{version}" IncludeMinimum="yes" IncludeMaximum="no" OnlyDetect="no" Property="PREVIOUSVERSIONSINSTALLED" /> |
| 7 | + <UpgradeVersion Minimum="{version}" OnlyDetect="yes" Property="NEWERVERSIONDETECTED" /> |
| 8 | + </Upgrade> |
| 9 | + <CustomAction Id="PreventDowngrade" Error="A newer version of [ProductName] is already installed." /> |
| 10 | + <InstallExecuteSequence> |
| 11 | + <Custom Action="PreventDowngrade" After="FindRelatedProducts" Condition="NEWERVERSIONDETECTED" /> |
| 12 | + <RemoveExistingProducts After="InstallInitialize" /> |
| 13 | + </InstallExecuteSequence> |
6 | 14 | <Icon Id="DataLab.exe" SourceFile=".\resources\DataLab.ico" /> |
7 | 15 | <Icon Id="DataLabResetIcon" SourceFile=".\resources\DataLab-Reset.ico" /> |
8 | 16 | <WixVariable Id="WixUILicenseRtf" Value=".\wix\license.rtf" /> |
|
28 | 36 | <Custom Action="PreviousVersionFoundMsg" After="CostInitialize" Condition="NSIS_UNINSTALL_STRING" /> |
29 | 37 | </InstallUISequence> |
30 | 38 | <StandardDirectory Id="ProgramFilesFolder"> |
31 | | - <Directory Id="INSTALLFOLDER" Name="DataLab"> |
| 39 | + <Directory Id="INSTALLFOLDER" Name="{install_folder_name}"> |
32 | 40 | <!-- Automatically inserted directories --> |
33 | 41 | </Directory> |
34 | 42 | </StandardDirectory> |
35 | 43 | <StandardDirectory Id="ProgramMenuFolder"> |
36 | | - <Directory Id="ApplicationProgramsFolder" Name="DataLab" /> |
| 44 | + <Directory Id="ApplicationProgramsFolder" Name="{display_folder_name}" /> |
37 | 45 | </StandardDirectory> |
38 | 46 | </Fragment> |
39 | 47 | <Fragment> |
|
43 | 51 | </Component> |
44 | 52 | <!-- Automatically inserted components --> |
45 | 53 | <Component Id="PC_Shortcuts" Directory="ApplicationProgramsFolder" Guid="858c3c36-978e-4edb-a2c3-cf5c91588bcf"> |
46 | | - <Shortcut Id="ApplicationStartMenuShortcut" Name="DataLab" Description="DataLab" Target="[INSTALLFOLDER]\DataLab.exe" WorkingDirectory="INSTALLFOLDER" /> |
47 | | - <Shortcut Id="ResetApplicationStartMenuShortcut" Name="Reset DataLab" Description="Resets DataLab configuration" Target="[INSTALLFOLDER]\DataLab.exe" Arguments="--reset" WorkingDirectory="INSTALLFOLDER" Icon="DataLabResetIcon" /> |
48 | | - <Shortcut Id="UninstallProductShortcut" Name="Uninstall DataLab" Description="Uninstalls DataLab" Target="[System64Folder]msiexec.exe" Arguments="/x [ProductCode]" WorkingDirectory="INSTALLFOLDER" /> |
| 54 | + <Shortcut Id="ApplicationStartMenuShortcut" Name="{display_folder_name}" Description="{display_folder_name}" Target="[INSTALLFOLDER]\DataLab.exe" WorkingDirectory="INSTALLFOLDER" /> |
| 55 | + <Shortcut Id="ResetApplicationStartMenuShortcut" Name="Reset {display_folder_name}" Description="Resets {display_folder_name} configuration" Target="[INSTALLFOLDER]\DataLab.exe" Arguments="--reset" WorkingDirectory="INSTALLFOLDER" Icon="DataLabResetIcon" /> |
| 56 | + <Shortcut Id="UninstallProductShortcut" Name="Uninstall {display_folder_name}" Description="Uninstalls {display_folder_name}" Target="[System64Folder]msiexec.exe" Arguments="/x [ProductCode]" WorkingDirectory="INSTALLFOLDER" /> |
49 | 57 | <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" /> |
50 | | - <RegistryValue Root="HKCU" Key="Software\[Manufacturer]\DataLab" Name="installed" Type="integer" Value="1" KeyPath="yes" /> |
| 58 | + <RegistryValue Root="HKCU" Key="Software\[Manufacturer]\{install_folder_name}" Name="installed" Type="integer" Value="1" KeyPath="yes" /> |
51 | 59 | </Component> |
52 | 60 | </ComponentGroup> |
53 | 61 | </Fragment> |
|
0 commit comments