File: doublecmd.wxs

package info (click to toggle)
doublecmd 1.1.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 43,968 kB
  • sloc: pascal: 374,335; sh: 1,180; ansic: 724; makefile: 132; python: 52; xml: 16
file content (103 lines) | stat: -rw-r--r-- 4,777 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <?define ProductName="Double Commander" ?>
  <?define UpgradeCode="D220A081-E26D-4ECD-B399-EFEB4D6678EA" ?>

   <Product
     Id="*"
     UpgradeCode="$(var.UpgradeCode)"
     Name="$(var.ProductName)"
     Version="$(var.ProductVersion)"
     Manufacturer="Alexander Koblov"
     Language="1033">

      <Package InstallerVersion="200" Compressed="yes" />

      <Media Id="1" Cabinet="product.cab" EmbedCab="yes"/>
      <Icon Id="ProductIcon" SourceFile="doublecmd.ico"/>
      <Property Id="ARPPRODUCTICON" Value="ProductIcon"/>
      <Property Id="ARPURLINFOABOUT" Value="https://doublecmd.sourceforge.io"/>
      <Property Id="ARPNOREPAIR" Value="1"/>

      <Upgrade Id="$(var.UpgradeCode)">
         <UpgradeVersion Minimum="$(var.ProductVersion)" OnlyDetect="yes" Property="NEWERVERSIONDETECTED"/>
         <UpgradeVersion Minimum="0.0.0" Maximum="$(var.ProductVersion)" IncludeMinimum="yes" IncludeMaximum="no"
                         Property="OLDERVERSIONBEINGUPGRADED"/>
      </Upgrade>
      <Condition Message="A newer version of this software is already installed.">NOT NEWERVERSIONDETECTED</Condition>

      <Directory Id="TARGETDIR" Name="SourceDir">
         <Directory Id="$(var.ProgramFiles)">
            <Directory Id="APPLICATIONFOLDER" Name="$(var.ProductName)">
            </Directory>
         </Directory>
         <Directory Id="ProgramMenuFolder">
            <Directory Id="ApplicationProgramsFolder" Name="$(var.ProductName)">
               <Component Id="ApplicationShortcut" Guid="BA37DDBD-5F67-4BA5-B5B8-01B3998E5BDE">
                  <Shortcut
                    Id="Shortcut"
                    Name="$(var.ProductName)"
                    Description="$(var.ProductName)"
                    Target="[APPLICATIONFOLDER]doublecmd.exe"
                    WorkingDirectory="APPLICATIONFOLDER"/>
                  <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
                  <RegistryValue Root="HKCU" Key="Software\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
               </Component>
            </Directory>
         </Directory>
         <Directory Id="DesktopFolder" Name="Desktop">
             <Component Id="ApplicationShortcutDesktop" Guid="*">
                  <Shortcut
                    Id="ApplicationDesktopShortcut"
                    Name="$(var.ProductName)"
                    Description="$(var.ProductName)"
                    Target="[APPLICATIONFOLDER]doublecmd.exe"
                    WorkingDirectory="APPLICATIONFOLDER"/>
                  <RemoveFolder Id="DesktopFolder" On="uninstall"/>
                  <RegistryValue Root="HKCU" Key="Software\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
             </Component>
         </Directory>
      </Directory>

      <CustomAction
        Id="Overwrite_WixSetDefaultPerMachineFolder"
        Property="WixPerMachineFolder"
        Value="[$(var.ProgramFiles)][ApplicationFolderName]"
        Execute="immediate" />

      <InstallUISequence>
        <Custom Action="Overwrite_WixSetDefaultPerMachineFolder" After="WixSetDefaultPerMachineFolder" />
      </InstallUISequence>

      <InstallExecuteSequence>
         <RemoveExistingProducts After="InstallValidate"/>
         <Custom Action="Overwrite_WixSetDefaultPerMachineFolder" After="WixSetDefaultPerMachineFolder" />
      </InstallExecuteSequence>

      <Feature Id="DefaultFeature" Level="1" Display="hidden">
         <ComponentGroupRef Id="HeatGroup"/>
      </Feature>

      <Feature Id="ApplicationShortcut" Level="1" Title="Start Menu shortcut">
         <ComponentRef Id="ApplicationShortcut" />
      </Feature>

      <Feature Id="ApplicationShortcutDesktop" Level="1" Title="Desktop shortcut" TypicalDefault="advertise">
         <ComponentRef Id="ApplicationShortcutDesktop" />
      </Feature>

      <WixVariable Id="WixUILicenseRtf" Value="license.rtf" />

      <Property Id="ApplicationFolderName" Value="$(var.ProductName)" />
      <Property Id="WixAppFolder" Value="WixPerMachineFolder" />

      <Property Id="ALLUSERS" Secure="yes" Value="2" />
      <Property Id="MSIINSTALLPERUSER" Secure="yes" Value="{}" />
      <UI>
         <UIRef Id="WixUI_Advanced" />
         <Publish Dialog="InstallScopeDlg" Control="Next" Property="MSIINSTALLPERUSER" Value="1" Order="3">WixAppFolder = "WixPerUserFolder"</Publish>
         <Publish Dialog="InstallScopeDlg" Control="Next" Property="MSIINSTALLPERUSER" Value="{}" Order="2">WixAppFolder = "WixPerMachineFolder"</Publish>
      </UI>
   </Product>
</Wix>