Initial installer code
[moonshot-ui.git] / windows / app.wxs
1 <?xml version='1.0'?>
2 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
3   <?include .\config.wxi ?>
4
5   <Product Id='$(var.ProductGuid)'
6            Language='1033'
7            Manufacturer='$(var.Manufacturer)'
8            Name='$(var.ProductName)'
9            Version='$(var.ProductVersion)'
10            UpgradeCode='$(var.UpgradeGuid)'>
11
12     <Package Id="*"
13              Description='$(var.PackageDescription)'
14              Keywords='$(var.PackageKeywords)'
15              Manufacturer='$(var.Manufacturer)'
16              Platform='$(var.PackagePlatform)'
17              InstallerVersion='200'
18              Compressed='yes' />
19
20     <Media Id='1' Cabinet='app.cab' EmbedCab='yes' />
21
22     <Directory Id='TARGETDIR' Name='SourceDir'>
23       <Directory Id='ProgramFilesFolder' Name='PFiles'>
24         <Directory Id='INSTALLDIR' Name='Moonshot'>
25
26           <Directory Id='BINDIR' Name='bin'>
27             <Component Id='MainExe' Guid='$(var.MainExeGuid)'>
28               <File Id='MainExe'
29                     Name='$(var.MainExeFile)'
30                     DiskId='1'
31                     Source='$(var.MainExeSource)'
32                     KeyPath='yes'>
33                 <Shortcut Id='startmenu'
34                           Directory='ProgramMenuDir'
35                           Name='$(var.ProductName)'
36                           WorkingDirectory='INSTALLDIR'
37                           Advertise='yes' />
38                 <Shortcut Id='desktop'
39                           Directory='DesktopFolder'
40                           Name='$(var.ProductName)'
41                           WorkingDirectory='INSTALLDIR'
42                           Advertise='yes' />
43               </File>
44             </Component>
45           </Directory>
46         </Directory>
47       </Directory>
48
49       <Directory Id='ProgramMenuFolder' Name='Programs'>
50         <Directory Id='ProgramMenuDir' Name='$(var.ProductName)'>
51           <Component Id='ProgramMenuDir' Guid='$(var.ProgramMenuDirGuid)'>
52             <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
53             <RegistryValue Root='HKCU' Key='Software\Moonshot' Type='string' Value='' KeyPath='yes' />
54           </Component>
55         </Directory>
56       </Directory>
57
58       <Directory Id='DesktopFolder' Name='Desktop'>
59       </Directory>
60     </Directory>
61
62     <Feature Id='Complete' Level='1'>
63         <ComponentRef Id='MainExe' />
64         <ComponentRef Id='ProgramMenuDir' />
65     </Feature>
66   </Product>
67 </Wix>