コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            MsiPackage misPackage       = new MsiPackage(txtMSILocation.Text);
            string     installationGuid = misPackage.GetMsiProperty("ProductCode");

            LoadInstallationTip(installationGuid);
        }
コード例 #2
0
        private void LoadMsiDBProperty()
        {
            PropertyClass myProp = new PropertyClass();

            CustomProperty myproperty = new CustomProperty("Installation Guid", misPackage.GetMsiProperty("ProductCode"), true, true);

            myProp.Add(myproperty);
            propertyGrid1.SelectedObject = myProp;
            //LoadListView("Installation Guid", misPackage.GetMsiProperty("ProductCode"));
        }
コード例 #3
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(txtMSILocation.Text))
            {
                return;
            }
            MsiPackage misPackage       = new MsiPackage(txtMSILocation.Text);
            string     installationGuid = misPackage.GetMsiProperty("ProductCode");

            LoadInstallationTip(installationGuid);
        }