title: How to close running wix installer?
body: <p>I have created the wix installer for shipping file in C drive.When i run .msi file , I tried call one custom action before file shipping.In custom action following code i used .</p>
  
  <p>Custom Action code :</p>
  
  <pre><code>            bool isElevated;
              WindowsIdentity identity = WindowsIdentity.GetCurrent();
              WindowsPrincipal principal = new WindowsPrincipal(identity);
              isElevated = principal.IsInRole(WindowsBuiltInRole.Administrator);
              if (!isElevated)
              {
                  DialogResult dialogResult = MessageBox.Show("CustomAction is not running admode , so please refer online ?", "Admin Alert ", MessageBoxButtons.YesNo);
                  if (dialogResult == DialogResult.Yes)
                  {
                      Process.Start("Same Web site link");
                      Environment.Exit(0);
                  }
                  else if (dialogResult == DialogResult.No)
                  {
                      Environment.Exit(0);
                  }
              }
  </code></pre>
  
  <p>Above custom action working fine.If custom action not run admin mode successfully message box shown. If i select no option in message box wix installer closed , but file are shipped.So please tell me , How to stop the wix installer using C# ?</p>