public override void DoAction(ISetupAction parentAction) { using (var webClient = new WebClient()) webClient.DownloadFile(Url, DestinationPath); base.DoAction(this); }
public override void DoAction(ISetupAction parentAction) { var downloadAction = parentAction as DownloadAction; if (downloadAction != null) { FilePath = downloadAction.DestinationPath; } if (Directory.Exists(TargetDirectory)) { Directory.Delete(TargetDirectory, true); } ZipFile.Open(FilePath, ZipArchiveMode.Read).ExtractToDirectory(TargetDirectory); base.DoAction(parentAction); }
public InstallerAction(string Title, bool Required, string Description, string SmallDescription, string RedNote, string GoodButtonText, string BadButtonText, ISetupAction InstallerTask) { this.Title = Title; this._Required = Required; this.Description = Description; this.SmallDescription = SmallDescription; this._RedNote = RedNote; this.GoodButtonText = GoodButtonText; this.BadButtonText = BadButtonText; this.InstallerTask = InstallerTask; this.ShowRedNote = false; this.IsGood = false; this.TaskHasReturned = true; StartTask(CheckIsGood); }
public virtual void DoAction(ISetupAction parentAction) { CallDependencies(); }