예제 #1
0
        public static uint MsiGetProductProperty(MsiHandle hProduct, string szProperty, out string value)
        {
            StringBuilder sb     = new StringBuilder(1024);
            int           length = sb.Capacity;
            uint          err;

            value = null;
            if (0 == (err = MsiGetProductPropertyW(hProduct, szProperty, sb, ref length)))
            {
                sb.Length = length;
                value     = sb.ToString();
                return(0);
            }

            return(err);
        }
예제 #2
0
 static extern uint MsiGetProductPropertyW(MsiHandle hProduct, string szProperty, StringBuilder value, ref int length);
예제 #3
0
 public extern static uint MsiOpenPackageW(string szPackagePath, out MsiHandle product);