Debian Codegraph @

install/windows/doublecmd.wxs

raw
1 <?xml version="1.0"?>
2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3
4 <?define ProductName="Double Commander" ?>
5 <?define UpgradeCode="D220A081-E26D-4ECD-B399-EFEB4D6678EA" ?>
6
7 <Product
8 Id="*"
9 UpgradeCode="$(var.UpgradeCode)"
10 Name="$(var.ProductName)"
11 Version="$(var.ProductVersion)"
12 Manufacturer="Alexander Koblov"
13 Language="1033">
14
15 <Package InstallerVersion="200" Compressed="yes" />
16
17 <Media Id="1" Cabinet="product.cab" EmbedCab="yes"/>
18 <Icon Id="ProductIcon" SourceFile="doublecmd.ico"/>
19 <Property Id="ARPPRODUCTICON" Value="ProductIcon"/>
20 <Property Id="ARPURLINFOABOUT" Value="https://doublecmd.sourceforge.io"/>
21 <Property Id="ARPNOREPAIR" Value="1"/>
22
23 <Upgrade Id="$(var.UpgradeCode)">
24 <UpgradeVersion Minimum="$(var.ProductVersion)" OnlyDetect="yes" Property="NEWERVERSIONDETECTED"/>
25 <UpgradeVersion Minimum="0.0.0" Maximum="$(var.ProductVersion)" IncludeMinimum="yes" IncludeMaximum="no"
26 Property="OLDERVERSIONBEINGUPGRADED"/>
27 </Upgrade>
28 <Condition Message="A newer version of this software is already installed.">NOT NEWERVERSIONDETECTED</Condition>
29
30 <Directory Id="TARGETDIR" Name="SourceDir">
31 <Directory Id="$(var.ProgramFiles)">
32 <Directory Id="APPLICATIONFOLDER" Name="$(var.ProductName)">
33 </Directory>
34 </Directory>
35 <Directory Id="ProgramMenuFolder">
36 <Directory Id="ApplicationProgramsFolder" Name="$(var.ProductName)">
37 <Component Id="ApplicationShortcut" Guid="BA37DDBD-5F67-4BA5-B5B8-01B3998E5BDE">
38 <Shortcut
39 Id="Shortcut"
40 Name="$(var.ProductName)"
41 Description="$(var.ProductName)"
42 Target="[APPLICATIONFOLDER]doublecmd.exe"
43 WorkingDirectory="APPLICATIONFOLDER"/>
44 <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
45 <RegistryValue Root="HKCU" Key="Software\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
46 </Component>
47 </Directory>
48 </Directory>
49 <Directory Id="DesktopFolder" Name="Desktop">
50 <Component Id="ApplicationShortcutDesktop" Guid="*">
51 <Shortcut
52 Id="ApplicationDesktopShortcut"
53 Name="$(var.ProductName)"
54 Description="$(var.ProductName)"
55 Target="[APPLICATIONFOLDER]doublecmd.exe"
56 WorkingDirectory="APPLICATIONFOLDER"/>
57 <RemoveFolder Id="DesktopFolder" On="uninstall"/>
58 <RegistryValue Root="HKCU" Key="Software\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
59 </Component>
60 </Directory>
61 </Directory>
62
63 <CustomAction
64 Id="Overwrite_WixSetDefaultPerMachineFolder"
65 Property="WixPerMachineFolder"
66 Value="[$(var.ProgramFiles)][ApplicationFolderName]"
67 Execute="immediate" />
68
69 <InstallUISequence>
70 <Custom Action="Overwrite_WixSetDefaultPerMachineFolder" After="WixSetDefaultPerMachineFolder" />
71 </InstallUISequence>
72
73 <InstallExecuteSequence>
74 <RemoveExistingProducts After="InstallValidate"/>
75 <Custom Action="Overwrite_WixSetDefaultPerMachineFolder" After="WixSetDefaultPerMachineFolder" />
76 </InstallExecuteSequence>
77
78 <Feature Id="DefaultFeature" Level="1" Display="hidden">
79 <ComponentGroupRef Id="HeatGroup"/>
80 </Feature>
81
82 <Feature Id="ApplicationShortcut" Level="1" Title="Start Menu shortcut">
83 <ComponentRef Id="ApplicationShortcut" />
84 </Feature>
85
86 <Feature Id="ApplicationShortcutDesktop" Level="1" Title="Desktop shortcut" TypicalDefault="advertise">
87 <ComponentRef Id="ApplicationShortcutDesktop" />
88 </Feature>
89
90 <WixVariable Id="WixUILicenseRtf" Value="license.rtf" />
91
92 <Property Id="ApplicationFolderName" Value="$(var.ProductName)" />
93 <Property Id="WixAppFolder" Value="WixPerMachineFolder" />
94
95 <Property Id="ALLUSERS" Secure="yes" Value="2" />
96 <Property Id="MSIINSTALLPERUSER" Secure="yes" Value="{}" />
97 <UI>
98 <UIRef Id="WixUI_Advanced" />
99 <Publish Dialog="InstallScopeDlg" Control="Next" Property="MSIINSTALLPERUSER" Value="1" Order="3">WixAppFolder = "WixPerUserFolder"</Publish>
100 <Publish Dialog="InstallScopeDlg" Control="Next" Property="MSIINSTALLPERUSER" Value="{}" Order="2">WixAppFolder = "WixPerMachineFolder"</Publish>
101 </UI>
102 </Product>
103 </Wix>