WizardBackoutException not behaving as expected: I have the following code as an example...
try { if (isCanceled) { throw new WizardBackoutException("Message"); } } catch (WizardBackoutException ex) { MessageBox.Show(ex.Message); try { Directory.Delete(replacementsDictionary["$destinationdirectory$"]); } catch (Exception) { // If it fails (doesn't exist/contains files/read-only), let the directory stay. } }When the WizardBackoutException is triggered, the project continues to create and the
ShouldAddProjectItem method continues to be fired. How do you use the WizardBackoutException appropriately to go back to the New Project dialog box without continuing to create the project?