C# Class WixSharp.LaunchCondition

Defines WiX Condition. Condition is normally associated with CustomActions or WiX elements (e.g. Shortcut).

Condition is nothing else but an XML friendly string wrapper, containing some predefined (commonly used) condition values. You can either use one of the predefined condition values (static members) or define your by specifying full string representation of the required WiX condition when calling the constructor or static method Create.

Inheritance: WixEntity
ファイルを表示 Open project: Eun/WixSharp

Public Properties

Property Type Description
Message string
Value string

Public Methods

Method Description
LaunchCondition ( string value, string message ) : System.Xml.Linq

Initializes a new instance of the LaunchCondition class with properties/fields initialized with specified parameters

ToCData ( ) : System.Xml.Linq.XCData

Returns the WiX Condition as a T:System.Xml.Linq.XCData. Normally Condition is not designed to be parsed by the XML parser thus it should be embedded as CDATA <Condition><![CDATA[NETFRAMEWORK20="#0"]]></Condition>

ToString ( ) : string

Returns the WiX LaunchCondition as a string.

Protected Methods

Method Description
LaunchCondition ( ) : System.Xml.Linq

Initializes a new instance of the LaunchCondition class. It is made protected to encourage user to use non-default constructor to handle Escape Characters of the value string properly.

Method Details

LaunchCondition() protected method

Initializes a new instance of the LaunchCondition class. It is made protected to encourage user to use non-default constructor to handle Escape Characters of the value string properly.
protected LaunchCondition ( ) : System.Xml.Linq
return System.Xml.Linq

LaunchCondition() public method

Initializes a new instance of the LaunchCondition class with properties/fields initialized with specified parameters
public LaunchCondition ( string value, string message ) : System.Xml.Linq
value string The value of the WiX condition expression.
message string The message to be displayed during the installation if evaluated as False.
return System.Xml.Linq

ToCData() public method

Returns the WiX Condition as a T:System.Xml.Linq.XCData. Normally Condition is not designed to be parsed by the XML parser thus it should be embedded as CDATA <Condition><![CDATA[NETFRAMEWORK20="#0"]]></Condition>
public ToCData ( ) : System.Xml.Linq.XCData
return System.Xml.Linq.XCData

ToString() public method

Returns the WiX LaunchCondition as a string.
public ToString ( ) : string
return string

Property Details

Message public_oe property

The message to be displayed during the installation if LaunchCondition evaluated as False.
public string Message
return string

Value public_oe property

String value of WiX Condition.
public string Value
return string