forked from Needlworks/Textcube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
parameters.xml
136 lines (124 loc) · 3.49 KB
/
parameters.xml
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
<?xml version="1.0" encoding="utf-8"?>
<parameters>
<parameter
name="AppPath"
defaultValue="Default Web Site/tc"
tags="iisapp"
>
<parameterEntry
type="ProviderPath"
scope="iisapp"
match="tc"
/>
</parameter>
<parameter
name="SetAcl1"
defaultValue="{AppPath}"
tags="Hidden"
>
<parameterEntry
type="ProviderPath"
scope="setAcl"
match="tc"
/>
</parameter>
<!-- Database Parameters
The tags provided here tells the UI being used what type of parameter
this is. The UI can then construct an appropriate dialog for the
database parameters, or fill them in if the user doesn't need to
provide them
-->
<!-- This parameter prompts the user for the database server name.
Note that this parameter has only one parameterEntry element.
This parameter is used with the configuration file and the
connection string. It is not used within the SQL script itself
like the other paramters are.
-->
<parameter
name="dbServer"
defaultValue="localhost"
tags="MySQL, dbServer"
>
</parameter>
<!-- Prompts for the admin creds and uses it for the administrator
connection string. This is used here eate a login and assign
permissions. The MySQL tag indicates it is a parameter required for
MySQL.
The DbAdminUsername tag indicates it should be used when the user
is creating a new database. If they're not, it can be filled in
with the DbUsername value. The UI should be able to figure out
whether or not the user needs to be prompted for this.
-->
<parameter
name="dbAdminUsername"
defaultValue="root"
tags="MySQL, DbAdminUsername"
>
</parameter>
<!-- Prompts for the admin password and uses it for the administrator
connection string.
-->
<parameter
name="dbAdminPassword"
tags="Password, MySQL, DbAdminPassword"
>
</parameter>
<!-- This parameter prompts the user for the database name.
-->
<parameter
name="dbName"
defaultValue="TextCube"
tags="MySQL, dbName"
>
<parameterValidation
type="RegularExpression"
validationString="^\w{1,16}$"
/>
<parameterEntry
type="TextFile"
scope="install.sql"
match="PlaceHolderForDbName"
/>
</parameter>
<parameter
name="DbUser"
defaultValue="TextCubeuser"
tags="MySQL,DbUsername"
>
<parameterValidation
type="RegularExpression"
validationString="^\w{1,16}$"
/>
<parameterEntry
type="TextFile"
scope="install.sql"
match="PlaceholderForDbUser"
/>
</parameter>
<parameter
name="DbPassword"
tags="Password,New,MySQL,DbUserPassword"
>
<parameterEntry
type="TextFile"
scope="install.sql"
match="PlaceholderForDbPassword"
/>
</parameter>
<!-- This is the hidden admin connection string used to run the
database scripts. Note that this connection string is just used
here, and will probably be different from the connection string that
is used by the application itself.
-->
<parameter
name="Connection String"
defaultValue="Server={dbServer};Database={dbName};uid={dbAdminUsername};Pwd={dbAdminPassword};"
tags="MySQL,MySQLConnectionString,Validate,Hidden"
>
<parameterEntry
type="ProviderPath"
scope="dbmysql"
match="install.sql"
/>
</parameter>
</parameters>