public void Add(ISetupComponent component) { _components.Add(component); if (component is IBeforeInstallEvent b) { _beforeEvents.Add(b); } if (component is IAfterInstallEvent a) { _afterEvents.Add(a); } }
public static ISetupAppBuilder AddAction(this ISetupAppBuilder builder, ISetupComponent component) { builder.Context.Pipeline.Add(component); return(builder); }
public void ExecuteComponentUpgrade(ISetupComponent component) { // if component is IVisualComponent and not in silent mode then add ui component.OnUninstall(this); }