SIL.FieldWorks.WindowsInstallerQuery.GetProductInfo C# (CSharp) Méthode

GetProductInfo() private static méthode

private static GetProductInfo ( string propertyName, string &propertyValue ) : Int32
propertyName string
propertyValue string
Résultat System.Int32
		private static Int32 GetProductInfo(string propertyName, out string propertyValue)
		{
			var sbBuffer = new StringBuilder();
			var len = sbBuffer.Capacity;
			sbBuffer.Length = 0;

			var status = MsiGetProductInfo(InstallerProductCode, propertyName, sbBuffer, ref len);
			if (status == ErrorMoreData)
			{
				len++;
				sbBuffer.EnsureCapacity(len);
				status = MsiGetProductInfo(InstallerProductCode, InstalledProductNameProperty, sbBuffer, ref len);
			}

			propertyValue = sbBuffer.ToString();

			return status;
		}
	}