Rev Author Line No. Line
10 clempaul 1 <?xml version="1.0" encoding="UTF-8"?>
2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3  
4 <?define SkuName="Dreamhost DNS Manager" ?>
5 <?define RTMProductVersion="1.0.0.0" ?>
6 <?define ProductVersion="1.0.0.0" ?>
7 <?define UpgradeCode="{09F50B1C-528F-4813-80C8-790A70B0E86B}" ?>
8 <?define Manufacturer="Paul Clement" ?>
9 <?define PackageCode="*" ?>
10  
11 <Product Id="{ADAC0982-8DC2-4912-B9E4-3D03B1D375E0}"
12 Name="$(var.SkuName)"
13 Language="1033"
14 Version="$(var.ProductVersion)"
15 Manufacturer="$(var.Manufacturer)"
16 UpgradeCode="$(var.UpgradeCode)">
17 <Package Id="$(var.PackageCode)"
18 Description="Dreamhost DNS Manager"
19 Manufacturer="$(var.Manufacturer)"
20 Languages="1033"
21 Compressed="yes"
22 InstallerVersion="200" />
23  
24 <Icon Id='Icon' SourceFile='$(var.DNS Manager.TargetPath)' />
25 <Property Id='ARPPRODUCTICON' Secure='yes' Value='Icon' />
26  
27 <Property Id='FRAMEWORK30'>
28 <RegistrySearch Id='Framework30Registry' Type='raw' Root='HKLM'
29 Key='Software\Microsoft\NET Framework Setup\NDP\v3.5' Name='Version' />
30 </Property>
31  
32 <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
33  
34 <!--<WixVariable Id='WixUILicenseRtf' Value='License.rtf' />
35 <WixVariable Id='WixUIBannerBmp' Value='Banner.bmp' />
36 <WixVariable Id='WixUIDialogBmp' Value='Dialog.bmp' />-->
37  
38 <UIRef Id='WixUI_InstallDir' />
39 <UIRef Id='WixUI_ErrorProgressText' />
40  
41 <Condition Message="This plugin requires the .NET Framework 3.5 or higher. Please download and install the latest version from http://www.microsoft.com/net/DownloadCurrent.aspx">
42 Installed OR FRAMEWORK30 >= "3.5"
43 </Condition>
44  
45 <Media Id="1" Cabinet="DreamhostDNSManager.cab" EmbedCab="yes" />
46  
47 <Upgrade Id="$(var.UpgradeCode)">
48 <UpgradeVersion Minimum="$(var.ProductVersion)"
49 IncludeMinimum="yes"
50 OnlyDetect="yes"
51 Language="1033"
52 Property="NEWPRODUCTFOUND" />
53  
54 <!--UpgradeVersion Minimum="$(var.RTMProductVersion)"
55 IncludeMinimum="yes"
56 Maximum="$(var.ProductVersion)"
57 IncludeMaximum="no"
58 Language="1033"
59 Property="UPGRADEFOUND" /-->
60  
61 </Upgrade>
62  
63 <Directory Id="TARGETDIR" Name="SourceDir">
64 <Directory Id="ProgramFilesFolder">
65 <Directory Id="PaulClement" Name="Paul Clement">
66 <Directory Id="INSTALLDIR" Name="Dreamhost DNS Manager">
67  
68 <Component Id="ProductComponent" Guid="{3DB6920D-7ABB-4f93-AC40-68DE4BE44883}">
69  
70 <File Id="Executable" Name="$(var.DNS Manager.TargetFileName)" Source="$(var.DNS Manager.TargetPath)" DiskId="1" />
71 <File Id="DreamhostAPI" Name="DreamhostAPI.dll" Source="$(var.DNS Manager.TargetDir)DreamhostAPI.dll" DiskId="1" />
72 <File Id="AppConfig" Name="DNS Manager.exe.config" Source="$(var.DNS Manager.TargetDir)DNS Manager.exe.config" DiskId="1" />
73  
74 </Component>
75 </Directory>
76 </Directory>
77 </Directory>
78  
79 <Directory Id="ProgramMenuFolder">
80 <Directory Id="StartMenuPaulClement" Name="Paul Clement" />
81 </Directory>
82 </Directory>
83  
84  
85 <DirectoryRef Id="StartMenuPaulClement">
86 <Component Id="ApplicationShortcut" Guid="{7BE38C2C-B7CC-4c7f-BAB9-F1AAC5EAA9F9}">
87 <Shortcut Id="ApplicationStartMenuShortcut"
88 Name="Dreamhost DNS Manager"
89 Target="[INSTALLDIR]DNS Manager.exe"
90 WorkingDirectory="INSTALLDIR"/>
91 <RemoveFolder Id="StartMenuPaulClement" On="uninstall"/>
92 <RegistryValue Root="HKCU" Key="Software\Microsoft\Dreamhost DNS Manager" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
93 </Component>
94 </DirectoryRef>
95  
96 <Feature Id="Complete" Level="1">
97 <ComponentRef Id="ProductComponent" />
98 <ComponentRef Id="ApplicationShortcut" />
99 </Feature>
100  
101 <CustomAction Id="PreventDowngrading" Error="Newer version already installed." />
102  
103 <InstallExecuteSequence>
104 <Custom Action="PreventDowngrading" After="FindRelatedProducts">NEWPRODUCTFOUND</Custom>
105 <RemoveExistingProducts After="InstallFinalize" />
106 </InstallExecuteSequence>
107  
108 <InstallUISequence>
109 <Custom Action="PreventDowngrading" After="FindRelatedProducts">NEWPRODUCTFOUND</Custom>
110 </InstallUISequence>
111  
112 </Product>
113 </Wix>