public static ActionResult DeferredClientAction(Session session) { try { session.Log("Begin Server CustomAction"); string installFolder = session["INSTALLFOLDER"]; session.Log("Custom Action Using install folder: " + installFolder); DatabaseInstall databaseInstall = new DatabaseInstall(session, installFolder, "Client"); if (databaseInstall.ShowDialog() == System.Windows.Forms.DialogResult.OK) { return ActionResult.Success; } else { session.Log("OSAInstallCustomActions CustomAction - User exited"); return ActionResult.UserExit; } } catch (Exception ex) { session.Log("Exception Occured during custom action details:" + ex.Message); return ActionResult.Failure; } }
public static ActionResult Client(Session session) { try { session.Log("Begin Client CustomAction"); var installDir = session[INSTALLFOLDER]; session.Log("Custom Action Using install folder: " + installDir); DatabaseInstall databaseInstall = new DatabaseInstall(session, installDir, "Client"); //session.Log("Session Property Value: " + session["OSAInstallType"].ToString()); if (databaseInstall.ShowDialog() == System.Windows.Forms.DialogResult.OK) { return(ActionResult.Success); } else { session.Log("OSAInstallCustomActions CustomAction - User exited"); return(ActionResult.UserExit); } } catch (Exception ex) { session.Log("Exception Occured during custom action details:" + ex.Message); return(ActionResult.Failure); } }
public static ActionResult Client(Session session) { try { session.Log("Begin Client CustomAction"); var installDir = session[INSTALLFOLDER]; session.Log("Custom Action Using install folder: " + installDir); DatabaseInstall databaseInstall = new DatabaseInstall(session, installDir, "Client"); //session.Log("Session Property Value: " + session["OSAInstallType"].ToString()); if (databaseInstall.ShowDialog() == System.Windows.Forms.DialogResult.OK) { return ActionResult.Success; } else { session.Log("OSAInstallCustomActions CustomAction - User exited"); return ActionResult.UserExit; } } catch (Exception ex) { session.Log("Exception Occured during custom action details:" + ex.Message); return ActionResult.Failure; } }
public static ActionResult DeferredServerAction(Session session) { try { session.Log("Begin Server CustomAction"); var installDir = session.CustomActionData[INSTALLFOLDER]; session.Log("Custom Action Using install folder: " + installDir); DatabaseInstall databaseInstall = new DatabaseInstall(session, installDir, "Server"); if (databaseInstall.ShowDialog() == System.Windows.Forms.DialogResult.OK) { return(ActionResult.Success); } else { session.Log("OSAInstallCustomActions CustomAction - User exited"); return(ActionResult.UserExit); } } catch (Exception ex) { session.Log("Exception Occured during custom action details:" + ex.Message); return(ActionResult.Failure); } }