0

I've created this installer using burn bootstrapper. Now when a user clicks cancel button, how can I rollback all the changes made during the installation? My EXE currently includes 3 MSIs. So if a user clicks cancel halfway down, how can I remove the previously installed MSIs during this installation? Below is what my cancel button executes.

public void ExitExecute()
    {
        CustomBA.BootstrapperDispatcher.InvokeShutdown();
    }
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118

1 Answers1

1

The Burn engine will automatically uninstall all (nonpermanent) packages that were installed during that Apply phase (subject to RollbackBoundaries) when an error occurs (canceling is an error).

Sean Hall
  • 7,629
  • 2
  • 29
  • 44