Exemplo n.º 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;
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
 static extern uint MsiGetProductPropertyW(MsiHandle hProduct, string szProperty, StringBuilder value, ref int length);
Exemplo n.º 4
0
 public extern static uint MsiOpenPackageW(string szPackagePath, out MsiHandle product);
Exemplo n.º 5
0
 static extern uint MsiGetProductPropertyW(MsiHandle hProduct, string szProperty, StringBuilder value, ref int length);
Exemplo n.º 6
0
 public static extern uint MsiOpenPackageW(string szPackagePath, out MsiHandle product);