public override void Install(IDictionary stateSaver) { _upsInstallChecked = Context.Parameters.ContainsKey(KEY_UPS) && Context.Parameters[KEY_UPS] == "1"; _fedexInstallChecked = Context.Parameters.ContainsKey(KEY_FEDEX) && Context.Parameters[KEY_FEDEX] == "1"; if (!_upsInstallChecked && !_fedexInstallChecked) { throw new InstallException("No features selected for installation"); } base.Install(stateSaver); _logger.Info("Begin installation"); if (!_customActions.InstallSettings()) { throw new InstallException("Error on install application settngs"); } if (_upsInstallChecked) { if (!_customActions.InstallUpsSettings()) { throw new InstallException("Error on install UPS WorldShip integration."); } } if (_fedexInstallChecked) { if (!_customActions.InstallFedexSettings()) { throw new InstallException("Error on install FedEx Ship manager integration."); } } _logger.Info("Complete installation"); }
public static ActionResult SetupUpsSettings(Session session) { _logger.Info(LOG_PREFIX + "SetupUpsSettings"); return(_customActionsHelper.InstallUpsSettings() ? ActionResult.Success : ActionResult.Failure); }