C# Class SIL.FieldWorks.WindowsInstallerQuery

Class to find out some details about the current FW installation.
Show file Open project: sillsdev/FieldWorks

Public Methods

Method Description
IsThisBTE ( ) : bool

Check the installer status to see if we are running a BTE version of FW. If the product is not installed then we assume this is a developer build and just say it's BTE anyway.

IsThisInstalled ( ) : bool

Check the installer status to see if FW is installed on the user's machine. If not, it can be assumed we are running on a developer's machine.

Private Methods

Method Description
GetProductInfo ( string propertyName, string &propertyValue ) : Int32
MsiGetFeatureInfo ( int hProduct, string szFeature, uint &lpAttributes, StringBuilder lpTitleBuf, uint &cchTitleBuf, StringBuilder lpHelpBuf, uint &cchHelpBuf ) : uint
MsiGetProductInfo ( string product, string property, StringBuilder valueBuf, Int32 &cchValueBuf ) : Int32
MsiOpenProduct ( string szProduct, int &hProduct ) : uint

Method Details

IsThisBTE() public static method

Check the installer status to see if we are running a BTE version of FW. If the product is not installed then we assume this is a developer build and just say it's BTE anyway.
public static IsThisBTE ( ) : bool
return bool

IsThisInstalled() public static method

Check the installer status to see if FW is installed on the user's machine. If not, it can be assumed we are running on a developer's machine.
public static IsThisInstalled ( ) : bool
return bool