0
votes

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();
    }
1

1 Answers

1
votes

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).