blob: 52dca83676d35a9f6ab4f54b43ef9fb7459bc9ec (
plain)
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
<?xml version="1.0" encoding="UTF-8"?>
<!-- Change per release -->
<?define ProductVersion = "2.5.0" ?>
<?define ProductVersionText = "2.5.0 - ALPHA" ?>
<!-- Should not be changed -->
<?define ProductShortName = "Banshee" ?>
<?define ProductLongName = "Banshee Media Player" ?>
<?define Manufacturer = "Banshee Project" ?>
<?define UpgradeCode = "9C65FB23-64AE-41AC-AA33-272729423F60" ?>
<?define BuildRoot= "..\.." ?>
<?define binDir= "..\..\bin\bin" ?>
<?define etcDir= "..\..\bin\etc" ?>
<?define libDir= "..\..\bin\lib" ?>
<?define share_bansheeDir= "..\..\bin\share\banshee" ?>
<?define share_themesDir= "..\..\bin\share\themes" ?>
<?define share_iconsDir= "..\..\bin\share\icons" ?>
<?define share_localeDir= "..\..\bin\share\locale" ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="$(var.ProductShortName) $(var.ProductVersionText)" Language="1033" Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)">
<Package Id="*" Compressed="yes" Description="$(var.ProductLongName) $(var.ProductVersionText)" InstallerVersion="200" ShortNames="no" Manufacturer="$(var.Manufacturer)" />
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" CompressionLevel="high"/>
<!-- Ensure .Net 3.5 SP1 or higher is installed -->
<PropertyRef Id="NETFRAMEWORK35_SP_LEVEL" />
<PropertyRef Id="NETFRAMEWORK40FULL" />
<Condition Message="This setup requires the .NET Framework 3.5 SP1 or higher to be installed.">
<![CDATA[Installed OR (NETFRAMEWORK35_SP_LEVEL and NOT NETFRAMEWORK35_SP_LEVEL = "#0") OR NETFRAMEWORK40FULL]]>
</Condition>
<!-- Define which previous versions we should be able to upgrade/replace -->
<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion Minimum="$(var.ProductVersion)" OnlyDetect="yes" Property="NEWERVERSIONDETECTED" />
<UpgradeVersion OnlyDetect="no" Property="OLDERVERSIONBEINGUPGRADED"
Minimum="0.0.0" IncludeMinimum="yes"
Maximum="$(var.ProductVersion)" IncludeMaximum="no" />
</Upgrade>
<!-- Option to launch when finished with setup -->
<CustomAction Id="StartAppOnExit" FileKey="Nereid.exe" ExeCommand="" Execute="immediate" Impersonate="yes" Return="asyncNoWait" />
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch Banshee when setup exits" />
<UI>
<Publish Dialog="ExitDialog" Control="Finish" Order="1" Event="DoAction" Value="StartAppOnExit">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
</UI>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLLOCATION" Name="Banshee" FileSource="$(var.BuildRoot)\bin">
<Component Id='LicenseComponent' Guid='90353590-72C9-11E1-8A96-80FE4724019B'>
<File Id='license' Name='license.rtf' Source='license.rtf' />
</Component>
<Directory Id="bindirectory" Name="bin">
<Component Id="ProductComponent" Guid="55C2C651-CFF2-4607-ADE0-0BB43D5D1086">
<!-- Place Banshee path into registry -->
<RegistryValue Root='HKLM' Key='SOFTWARE\Novell\Banshee' Type='string' Name='Version' Value='$(var.ProductVersion)' />
<RegistryValue Root='HKLM' Key='SOFTWARE\Novell\Banshee' Type='string' Name='Path' Value='[INSTALLLOCATION]' />
<!-- App Paths to support Start,Run -> "banshee" -->
<RegistryValue Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\banshee.exe" Value="[INSTALLLOCATION]bin\Nereid.exe" Type="string" />
<RegistryValue Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\banshee.exe" Name="Path" Value="[INSTALLLOCATION]bin" Type="string" />
</Component>
</Directory>
<Directory Id="SHARELOCATION" Name="share">
</Directory>
</Directory>
</Directory>
<!-- Define directory structure for Start menu shortcut, and create shortcut -->
<Directory Id="ProgramMenuFolder" Name="PMenu">
<Directory Id="ProgramMenuDir" Name='$(var.ProductShortName)'>
<Component Id="StartMenuShortcut" Guid="872AA14E-EFCB-4F0B-B3B8-102162257EC1">
<Shortcut Id="StartMenuShortcut" Name="$(var.ProductShortName)" Icon="Nereid.exe" Target="[INSTALLLOCATION]bin\Nereid.exe" WorkingDirectory="bindirectory"/>
<RemoveFolder Id="ProgramMenuSubfolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\$(var.Manufacturer)\$(var.ProductShortName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</Directory>
</Directory>
<!-- Define directory structure for Desktop shortcut, and create shortcut -->
<Directory Id="DesktopFolder">
<Component Id="DesktopShortcut" Guid="5F62AA2F-A4C3-404B-A448-4E8154A04AD0">
<Shortcut Id="DesktopShortcut" Name="$(var.ProductShortName)" Icon="Nereid.exe" Target="[INSTALLLOCATION]bin\Nereid.exe" WorkingDirectory="bin"/>
<RegistryValue Root="HKCU" Key="Software\$(var.Manufacturer)\$(var.ProductShortName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</Directory>
</Directory>
<Feature Id="ProductFeature" Title="Banshee" Level="1">
<ComponentRef Id="ProductComponent" />
<ComponentRef Id="StartMenuShortcut" />
<ComponentRef Id="DesktopShortcut" />
<ComponentRef Id="LicenseComponent" />
<ComponentGroupRef Id="bin" />
<ComponentGroupRef Id="etc" />
<ComponentGroupRef Id="lib" />
<ComponentGroupRef Id="share\banshee" />
<ComponentGroupRef Id="share\icons" />
<ComponentGroupRef Id="share\themes" />
</Feature>
<Feature Id="TranslationsFeature" Title="Banshee Translations" Level="1">
<ComponentGroupRef Id="share\locale" />
</Feature>
<!-- Sequences -->
<InstallExecuteSequence>
<RemoveExistingProducts After="InstallValidate" />
</InstallExecuteSequence>
<InstallUISequence>
</InstallUISequence>
<!-- This enables the license screen and where to install screen -->
<Property Id="WIXUI_INSTALLDIR">INSTALLLOCATION</Property>
<!-- Adapted from the standard WixUI_InstallDir -->
<UI Id="WixUI_InstallDir">
<TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
<TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
<TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
<Property Id="WixUI_Mode" Value="InstallDir" />
<DialogRef Id="BrowseDlg" />
<DialogRef Id="DiskCostDlg" />
<DialogRef Id="ErrorDlg" />
<DialogRef Id="FatalError" />
<DialogRef Id="FilesInUse" />
<DialogRef Id="MsiRMFilesInUse" />
<DialogRef Id="PrepareDlg" />
<DialogRef Id="ProgressDlg" />
<DialogRef Id="ResumeDlg" />
<DialogRef Id="UserExit" />
<Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath" Order="3">1</Publish>
<Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4"><![CDATA[WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg">NOT Installed</Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish>
<Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath" Order="2">NOT WIXUI_DONTVALIDATEPATH</Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3"><![CDATA[NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4">WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"</Publish>
<Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
<Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2">1</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" Order="1">NOT Installed</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2">Installed AND NOT PATCH</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2">Installed AND PATCH</Publish>
<Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish>
<Property Id="ARPNOMODIFY" Value="1" />
</UI>
<UIRef Id="WixUI_Common" />
<!-- Specify the graphics to use in our GUI -->
<WixVariable Id="WixUIBannerBmp" Value="Bitmaps\bannrbmp.jpg" />
<WixVariable Id="WixUIDialogBmp" Value="Bitmaps\dlgbmp.jpg" />
<!-- This is for the icon that is shown in the Add/Remove Programs dialog and menu shortcut -->
<Icon Id="Nereid.exe" SourceFile="Bitmaps\Banshee.ico" />
<Property Id="ARPPRODUCTICON" Value="Nereid.exe" />
<Property Id="ARPHELPLINK" Value="http://banshee.fm/" />
</Product>
<!-- Include the heat.exe generated lists of files -->
<?include obj\generated_bin.wxi ?>
<?include obj\generated_etc.wxi ?>
<?include obj\generated_lib.wxi ?>
<?include obj\generated_share_banshee.wxi ?>
<?include obj\generated_share_icons.wxi ?>
<?include obj\generated_share_themes.wxi ?>
<?include obj\generated_share_locale.wxi ?>
</Wix>
|