private void locatePackageToolStripMenuItem_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(treeViewBizTalkApplications.SelectedNode.Text)) { return; } string appGuid = RegistryHelper.GetUninstallGuid(treeViewBizTalkApplications.SelectedNode.Text, Environment.MachineName); if (string.IsNullOrEmpty(appGuid)) { DisplayError("The application is not installed on current machine. Msi locate not applicable."); return; } LocateMsi locateMsi = new LocateMsi(appGuid); locateMsi.Show(); }
private void locateMSIToolStripMenuItem_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(comboBxAppList.Text)) { DisplayMessage("No application selected to locate."); return; } string appGuid = RegistryHelper.GetUninstallGuid(comboBxAppList.Text, Environment.MachineName); if (string.IsNullOrEmpty(appGuid)) { DisplayError("The application is not installed on current machine. Msi locate not applicable."); return; } BTDTFormProperties.ApplicationInstallGuid = appGuid; LocateMsi locateMsi = new LocateMsi(); locateMsi.Show(); }