Hi, I Have a custom action that occasionally fails as below... [CustomAction] public static ActionResult InstallCP(Session session) { try { session.Log("Begin InstallModernCP"); CPInstaller DCInstaller = new CPInstaller();
if (DCInstaller.InstallClientProcess()) { session.Log("Returning Success from custom action InstallModernCP"); return ActionResult.Success; } else { session.Log("Returning Failure from custom action InstallModernCP"); return ActionResult.Failure; } } catch (System.Exception e) { Record rec = new Record(1); rec.SetString(1, "Failed to add client process to the Datacenter: [" + e.Message + "]"); session.Message(InstallMessage.Error, rec); return ActionResult.Failure; } } but when it fails the install doesn't rollback everything it simply exits and sets the dialog to something saying 'Setup ended prematurely'... Whats wrong with this CA? -- View this message in context: http://n2.nabble.com/Custom-action-failing-causing-premature-end...-tp1576575p1576575.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users