C# Class WixSharp.Extensions

Collection of generic WixSharp extension methods
ファイルを表示 Open project: Eun/WixSharp

Public Methods

Method Description
AsWixVarToPath ( this path ) : string

'Interprets' a string as a WiX constant and expands into a proper Fiel System path. For example "DesktopFolder" will be expanded into "[SysDrive]:\Users\[user]\Desktop". Tis method is a logical equivalent of C# Environment.GetFolderPath. Though it handles discrepancies between 'special folders' mapping in .NET and WiX. The method will always be called from x86 runtime as MSI always loads ManagedUI in x86 host. From the other hand CustomActions are called in the deployment specific CPU type context.

Is64OS ( ) : bool

Returns true if the OS (this routine is executed on) has an x64 CPU architecture.

Method Details

AsWixVarToPath() public static method

'Interprets' a string as a WiX constant and expands into a proper Fiel System path. For example "DesktopFolder" will be expanded into "[SysDrive]:\Users\[user]\Desktop". Tis method is a logical equivalent of C# Environment.GetFolderPath. Though it handles discrepancies between 'special folders' mapping in .NET and WiX. The method will always be called from x86 runtime as MSI always loads ManagedUI in x86 host. From the other hand CustomActions are called in the deployment specific CPU type context.
public static AsWixVarToPath ( this path ) : string
path this The path.
return string

Is64OS() public static method

Returns true if the OS (this routine is executed on) has an x64 CPU architecture.
public static Is64OS ( ) : bool
return bool