blob: a6c97d2be5e556e3963a9df7d2a9ffc8bed2b69b (
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
|
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Specifying the Runtime Version</title>
<link rel="stylesheet" type="text/css" href="../styles/presentation.css" />
<link rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" />
</head>
<body>
<div id="control">
<span class="productTitle">Deployment Tools Foundation</span><br />
<span class="topicTitle">Specifying the Runtime Version</span><br />
<div id="toolbar">
<span id="chickenFeet">
<a href="using.htm">Development Guide</a> >
<a href="managedcas.htm">Managed CAs</a> >
<a href="writingcas.htm">Writing CAs</a> >
<span class="nolink">CustomAction.config</span>
</span>
</div>
</div>
<div id="main">
<div id="header">
</div>
<div class="summary">
<p>Every managed custom action package should contain a CustomAction.config file, even though it is not required by the toolset.
Here is a sample:</p><pre><font face="Consolas, Courier New">
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727"/>
</startup>
</configuration></font></pre><br />
<p>The configuration file follows the standard schema for .NET Framework
configuration files <a target=_blank href="http://msdn2.microsoft.com/en-us/library/9w519wzk(VS.80).aspx">documented on MSDN</a>.</p>
<p><br/></p>
<p><b>Supported Runtime Version</b></p>
<p>In the startup section, use <a target=_blank href="http://msdn2.microsoft.com/en-us/library/w4atty68(VS.80).aspx">supportedRuntime</a>
tags to explicitly specify the version(s) of the .NET Framework that the custom action should run on.
If no versions are specified, the chosen version of the .NET Framework will be
the "best" match to what WixToolset.Dtf.WindowsInstaller.dll was built against.</p>
<p><font color="red"><b>Warning: leaving the version unspecified is dangerous</b></font>
as it introduces a risk of compatibility problems with future versions of the .NET Framework.
It is highly recommended that you specify only the version(s)
of the .NET Framework that you have tested against.</p>
<p><br/></p>
<p><b>Other Configuration</b></p>
<p>Various other kinds of configuration settings may also be added to this file, as it is a standard
<a target=_blank href="http://msdn2.microsoft.com/en-us/library/kza1yk3a(VS.80).aspx">.NET Framework application config file</a>
for the custom action.</p>
<p><br/></p>
<p><b>See also:</b></p>
<ul>
<li><a href="writingcas.htm">Writing Managed Custom Actions</a></li>
<li><a href="buildingcas.htm">Building Managed Custom Actions</a></li>
<li><a href="caproxy.htm">Proxy for Managed Custom Actions</a></li>
</ul>
<p><br/></p>
</div>
<div id="footer">
<p />
Send comments on this topic to <a id="HT_MailLink" href="mailto:wix-users%40lists.sourceforge.net?Subject=Deployment Tools Foundation Documentation">
wix-users@lists.sourceforge.net</a>
<script type="text/javascript">
var HT_mailLink = document.getElementById("HT_MailLink");
var HT_mailLinkText = HT_mailLink.innerHTML;
HT_mailLink.href += ": " + document.title;
HT_mailLink.innerHTML = HT_mailLinkText;
</script>
<p />
</div>
</div>
</body>
</html>
|