Exemple #1
0
 private void EditWizard()
 {
     Wizard.WizardForm frm = new WixEdit.Wizard.WizardForm(wixFiles);
     if (frm.ShowDialog() == DialogResult.OK)
     {
         ReloadAll();
     }
 }
Exemple #2
0
        private void NewWizard()
        {
            if (WixEdit.Settings.WixEditSettings.Instance.IsUsingWix2())
            {
                MessageBox.Show("Creating new wxs files with the wizard is not supported for WiX 2.\r\n\r\nPlease use WiX 3 or higher instead.", "Older version of WiX", MessageBoxButtons.OK, MessageBoxIcon.Information);

                return;
            }

            if (HandlePendingChanges() == false)
            {
                return;
            }

            var newWixFiles = WixFiles.FromTemplate();

            Wizard.WizardForm frm = new WixEdit.Wizard.WizardForm(newWixFiles);
            if (frm.ShowDialog() == DialogResult.OK)
            {
                CloseWxsFile();

                LoadWxsFile(newWixFiles);

                ShowProductProperties();
            }

            ReloadAll();
        }