forked from GNOME/phodav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spice-webdavd.wxs.in
84 lines (75 loc) · 3.47 KB
/
spice-webdavd.wxs.in
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
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?define Version = "@WINDOWS_PRODUCTVERSION@"?>
<?define UpgradeCode = "33f0af8e-ade3-4e25-a020-77a179ff75e3"?>
<?define Arch = "@WIXL_ARCH@"?>
<?if $(var.Arch) = "x64"?>
<?define GLIB_ARCH = "win64"?>
<?define ArchString = "64-bit"?>
<?define ArchProgramFilesFolder = "ProgramFiles64Folder"?>
<?define Win64 = "yes"?>
<?else?>
<?define GLIB_ARCH = "win32"?>
<?define ArchString = "32-bit"?>
<?define ArchProgramFilesFolder = "ProgramFilesFolder"?>
<?define Win64 = "no"?>
<?endif?>
<?require glib2.wxi?>
<Product Id="*" Name="Spice webdavd @VERSION@@BUILDID@ ($(var.ArchString))"
Manufacturer="$(env.MANUFACTURER)"
Version="$(var.Version)" UpgradeCode="$(var.UpgradeCode)"
Language="1033">
<Package InstallerVersion="200" Compressed="yes" Comments="comments"/>
<Media Id="1" Cabinet="cabinet.cab" EmbedCab="yes"/>
<Property Id="ARPHELPLINK" Value="http://www.spice-space.org"/>
<Property Id="ARPNOMODIFY" Value="1"/>
<Property Id="ARPNOREPAIR" Value="1"/>
<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion Minimum="$(var.Version)" OnlyDetect="yes" Property="NEWERVERSIONDETECTED"/>
<UpgradeVersion Minimum="0.0.0" Maximum="$(var.Version)" IncludeMinimum="yes" IncludeMaximum="no" Property="OLDERVERSIONBEINGUPGRADED"/>
</Upgrade>
<Condition Message="Product already installed.">NOT NEWERVERSIONDETECTED</Condition>
<InstallExecuteSequence>
<RemoveExistingProducts After="InstallFinalize"/>
</InstallExecuteSequence>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="$(var.ArchProgramFilesFolder)">
<Directory Id="INSTALLDIR" Name="SPICE webdavd">
<Directory Id="Dbindir" Name="bin">
<Component Id="CWebdavd" Guid="*">
<File Id='spicewebdavd' Name='spice-webdavd.exe' DiskId='1' Source='$(var.DESTDIR)/sbin/spice-webdavd.exe' KeyPath='yes'/>
<ServiceInstall Id="WebdavdServiceInstall"
Name="spice-webdavd"
DisplayName="Spice webdav proxy"
Description="A Spice service for folder sharing"
Type="ownProcess"
Start="auto"
Account="[SERVICEACCOUNT]"
Password="[SERVICEPASSWORD]"
Arguments="-p 9843"
ErrorControl="normal"/>
<ServiceControl Id="StartService"
Name="spice-webdavd"
Start="install"
Stop="both"
Remove="uninstall"
Wait="yes"/>
</Component>
</Directory>
<Component Id="CDepsTxt" Guid="*">
<File Id='depstxt' Name='deps.txt' DiskId='1' Source='deps.txt' KeyPath='yes'/>
</Component>
<Component Id="CMapDrive" Guid="*">
<File Id='mapdrive' Name='map-drive.bat' DiskId='1' Source='@srcdir@/spice/map-drive.bat' KeyPath='yes'/>
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="Complete" Level="1">
<ComponentGroupRef Id="CG.glib2"/>
<ComponentRef Id="CWebdavd"/>
<ComponentRef Id="CDepsTxt"/>
<ComponentRef Id="CMapDrive"/>
</Feature>
</Product>
</Wix>