-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWords.main.wxs
124 lines (116 loc) · 5.95 KB
/
Words.main.wxs
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
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension">
<!-- unique identifier for this package, DO NOT CHANGE! -->
<?define UpgradeCode="{27d3b34e-248f-4ee8-9883-1e25ba43f8b4}"?>
<?define ProductName="Words"?>
<Product Id="*"
UpgradeCode="$(var.UpgradeCode)"
Name="$(var.ProductName)"
Manufacturer="Daniel Lidstrom AB"
Language="1033"
Version="$(var.Version)"
Codepage="UTF-8">
<Package Id="*"
Description="Words installer"
InstallerVersion="500"
Languages="1033"
Compressed="yes"
SummaryCodepage="1252"
Platform="x64" />
<Media Id="1" Cabinet="service.cab" EmbedCab="yes" />
<Icon Id="icon.ico" SourceFile="Words.Web\favicon.ico"/>
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
<MajorUpgrade DowngradeErrorMessage="A later version of this product is already installed. Setup will now exit." />
<Property Id="ALLUSERS" Value="1" />
<PropertyRef Id="NETFRAMEWORK40FULLINSTALLROOTDIR" />
<!-- will break when supported by WiX -->
<Property Id="WIX_IS_NETFRAMEWORK_47_OR_LATER_INSTALLED" Value="0" />
<PropertyRef Id="NETFRAMEWORK45" />
<Condition Message="[ProductName] Requires .NET Framework 4.7 or later to be installed"><![CDATA[Installed OR (NETFRAMEWORK45 AND NETFRAMEWORK45 >= "#460805")]]></Condition>
<Condition Message="ADMINISTRATOR_PASSWORD variable must be set in the command line">
Installed OR ADMINISTRATOR_PASSWORD
</Condition>
<?include conditions.wxi?>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFiles64Folder" Name="PFiles">
<Directory Id="INSTALLDIR" Name="Words">
<Directory Id="WordsWebDir" Name="Words.Web">
<Component Id="Words.Web.config" Guid="*" Win64="yes">
<File Id="Words.Web.config"
KeyPath="yes"
Source="$(var.Words_App)\Web.config" />
</Component>
<Directory Id="WordsWeb_AppData" Name="App_Data">
<Component Id="words_json" Guid="*" Win64="yes">
<File KeyPath="yes" Source="Words.Web\App_Data\words.json" />
</Component>
<Component Id="WordsWeb_AppData" Guid="{f2c135ee-45a0-4bad-9b62-da73417dcac9}"
SharedDllRefCount="no" KeyPath="no" NeverOverwrite="no" Permanent="no" Transitive="no"
Win64="yes" Location="either">
<CreateFolder>
<util:PermissionEx GenericAll="yes"
CreateFile="yes"
ChangePermission="yes"
Delete="yes"
DeleteChild="yes"
User="IIS_IUSRS" />
</CreateFolder>
</Component>
</Directory>
<Directory Id="WordsWeb_Logs" Name="Logs">
<Component Id="WordsWeb_Logs" Guid="{5f4390da-9f3c-4a81-8579-d37eebb85389}"
SharedDllRefCount="no" KeyPath="no" NeverOverwrite="no" Permanent="no" Transitive="no"
Win64="yes" Location="either">
<CreateFolder>
<util:PermissionEx GenericAll="yes"
CreateFile="yes"
ChangePermission="yes"
Delete="yes"
DeleteChild="yes"
User="IIS_IUSRS" />
</CreateFolder>
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<Component Id="AppPool" Guid="{55143143-47f7-4803-9e76-108a50e0481f}" Permanent="yes" Win64="yes">
<!-- Create an application pool. Disable idle timeout.
Keep the application active for 24 hours then recycle the worker process. -->
<iis:WebAppPool Id="AppPool"
Name="Words"
ManagedPipelineMode="Integrated"
ManagedRuntimeVersion="v4.0"
Identity="applicationPoolIdentity"
RecycleMinutes="1440"
IdleTimeout="0" />
</Component>
<Component Id="WordsWebSite" Guid="{114fd608-76b4-4418-9438-8aa53099ffb5}">
<!-- Creates the Words web site -->
<iis:WebSite Id="WordsWebSite" Description="Words" Directory="WordsWebDir">
<iis:WebAddress Id="Binding1" Port="443" Header="krysshjalpen.se" Secure="yes" />
<iis:WebAddress Id="Binding2" Port="443" Header="www.krysshjalpen.se" Secure="yes" />
<iis:WebAddress Id="Binding3" Port="443" Header="krysshjälpen.se" Secure="yes" />
<iis:WebAddress Id="Binding4" Port="443" Header="www.krysshjälpen.se" Secure="yes" />
<iis:WebAddress Id="Binding5" Port="80" Header="krysshjalpen.se" />
<iis:WebAddress Id="Binding6" Port="80" Header="www.krysshjalpen.se" />
<iis:WebAddress Id="Binding7" Port="80" Header="krysshjälpen.se" />
<iis:WebAddress Id="Binding8" Port="80" Header="www.krysshjälpen.se" />
<iis:WebAddress Id="Binding9" Port="82" />
<iis:WebApplication Id="WordsApplication" Name="Words" WebAppPool="AppPool" />
</iis:WebSite>
</Component>
</Directory>
<Feature Id="Service" Level="1">
<ComponentRef Id="Words.Web.config" />
<ComponentRef Id="words_json" />
<ComponentRef Id="WordsWeb_AppData" />
<ComponentRef Id="WordsWeb_Logs" />
<ComponentRef Id="AppPool" />
<ComponentRef Id="WordsWebSite" />
</Feature>
<Feature Id="Libraries" Level="1">
<ComponentGroupRef Id="WordsWebLib" />
</Feature>
</Product>
</Wix>