private void button1_Click(object sender, EventArgs e) { MsiPackage misPackage = new MsiPackage(txtMSILocation.Text); string installationGuid = misPackage.GetMsiProperty("ProductCode"); LoadInstallationTip(installationGuid); }
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")); }
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); }