source: trunk/sln/HaliteWix/Product.wxs @ 737

Revision 737, 4.9 KB checked in by Eoin, 11 years ago (diff)
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<?define VerGeneration = "0" ?>
4<?define VerMajor = "3" ?>
5<?define VerMinor = "1" ?>
6<?define VerUpdate = "7" ?>
7<?define VerBuild = "0735" ?>
8
9<?define FullGMmbVersion = "$(var.VerGeneration).$(var.VerMajor).$(var.VerMinor).$(var.VerUpdate) Build $(var.VerBuild)" ?>
10<?define ShortGMmbVersion = "$(var.VerMajor).$(var.VerMinor).$(var.VerUpdate)" ?>
11<?define UpgradeMinVer = "0.3.1" ?>
12
13<?if $(var.MyCPU) = "x64" ?>
14<?define CpuId = "2" ?>
15<?define ProgFilesFolder = "ProgramFiles64Folder" ?>
16<?define Platforms = "x64" ?>
17<?define CpuPostfix = " (x64 edition)" ?>
18<?define Is64 = "yes" ?>
19<?define ReleaseFolder = "x64\$(var.Configuration)\" ?>
20<?else ?>
21<?define CpuId = "1" ?>
22<?define ProgFilesFolder = "ProgramFilesFolder" ?>
23<?define Platforms = "x86" ?>
24<?define CpuPostfix = "" ?>
25<?define Is64 = "no" ?>
26<?define ReleaseFolder = "$(var.Configuration)\" ?>
27<?endif ?>
28
29<?define ProductName = "Halite" ?>
30<?define ProductFullName = "$(var.ProductName) $(var.FullGMmbVersion)$(var.CpuPostfix)" ?>
31
32<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
33  <Product
34      Id="{A57126CE-C58C-4adf-A951-12A63559CB94}"
35      UpgradeCode="45A10CBE-B399-48E5-865E-DBCE99A411E5"
36      Name="$(var.ProductName)"
37      Language="1033"
38      Version="$(var.ShortGMmbVersion)"
39      Manufacturer="BinaryNotions.com">
40
41      <Package
42          Description="$(var.ProductFullName) Package"
43          Comments="$(var.ProductFullName) Package"
44          InstallerVersion="200"
45          Compressed="yes"
46          ShortNames="no"
47          Platform="$(var.Platforms)"
48        />
49
50                <Media Id="1" Cabinet="Halite.cab" EmbedCab="yes" />
51   
52    <Property Id="INSTALLDIR">
53      <RegistrySearch Id="MyHalitePath" Type="raw" Root="HKCU" Key="Software\Halite" Name="Path" />
54    </Property>
55
56    <Directory Id="TARGETDIR" Name="SourceDir">
57      <Directory Id="AppDataFolder" />
58      <Directory Id="DesktopFolder" />
59
60      <Directory Id="ProgramMenuFolder">       
61        <Directory Id="HaliteProgramMenuFolder" Name="Halite">
62         
63          <Component Id='HaliteExeStartMenuFolder' Guid='{D6B80025-50FC-4760-89B2-72340616AD19}'>
64            <RegistryKey Root="HKCU" Key="Software\Halite\Uninstall">
65              <RegistryValue Value="HaliteProgramMenuFolder"
66                             Type="string"
67                             KeyPath="yes" />
68              </RegistryKey>
69            <RemoveFolder Id="RemoveShorcutFolder" On="uninstall" />           
70          </Component>
71         
72        </Directory>
73      </Directory>
74
75      <Directory Id="$(var.ProgFilesFolder)" Name="Files">
76        <Directory Id="INSTALLDIR" Name="Halite">
77
78          <Component Id="InstallRegCU" Guid="{CE5457FD-CD23-48e6-A54E-4004E936AA86}" DiskId="1" Win64="$(var.Is64)">
79            <RegistryKey Root="HKCU" Key="Software\Halite">
80              <RegistryValue Value="[INSTALLDIR]"
81                             Type="string"
82                              Name="Path"
83                             KeyPath="yes" />
84            </RegistryKey>
85          </Component>
86
87          <Component Id='ReadMeText' Win64='$(var.Is64)' Guid='0E8E2FD3-7658-4429-BBD1-BBDF76E99D71'>
88            <File Id='Readme' Name='readme.txt' DiskId='1' Source='..\..\Readme.txt' />
89          </Component>
90
91          <Component Id='HaliteExe' Win64='$(var.Is64)' Guid='{601CEE5B-5AE0-462f-BB19-A6FDBD520E40}'>
92            <File Id='HaliteFile' Name='Halite.exe' DiskId='1' Source='$(var.ProjectDir)\..\..\$(var.ReleaseFolder)Halite.exe'>
93              <Shortcut Id="desktopHaliteFile" Directory="DesktopFolder" Name="Halite"
94                  WorkingDirectory='INSTALLDIR' Advertise="yes" Icon="HaliteIcon.exe" IconIndex="0" />
95              <Shortcut Id="startmenuHaliteFile" Directory="HaliteProgramMenuFolder" Name="Halite"
96                  WorkingDirectory='INSTALLDIR' Advertise="yes" Icon="HaliteIcon.exe" IconIndex="0" />
97            </File>
98
99            <ProgId Id='Halite.torrent' Advertise="no" Description='BitTorrent Torrent File'>
100              <Extension Id='torrent' ContentType='application/torrent'>
101                <Verb Id='open' Command='Open' TargetFile='HaliteFile' Argument='"%1"' />
102              </Extension>
103            </ProgId>
104          </Component>
105         
106                                </Directory>
107                        </Directory>
108     
109                </Directory>
110
111    <Feature Id="HaliteComponents" Title="Halite (Core)" Level="1" Absent="disallow" AllowAdvertise='no'
112             ConfigurableDirectory="INSTALLDIR">
113      <ComponentRef Id="HaliteExe" />
114      <ComponentRef Id="HaliteExeStartMenuFolder" />
115      <ComponentRef Id="InstallRegCU" />
116      <ComponentRef Id="ReadMeText" />
117    </Feature>
118
119    <Icon Id="HaliteIcon.exe" SourceFile="$(var.ProjectDir)\..\..\$(var.ReleaseFolder)Halite.exe" />
120
121    <UIRef Id="WixUI_FeatureTree" />
122   
123        </Product>
124</Wix>
Note: See TracBrowser for help on using the repository browser.