C# Class SIL.FieldWorks.WindowsInstallerQuery

Class to find out some details about the current FW installation.
Afficher le fichier Open project: sillsdev/FieldWorks

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat bool

IsThisInstalled() public static méthode

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
Résultat bool