예제 #1
0
        public override void DoAction(ISetupAction parentAction)
        {
            using (var webClient = new WebClient())
                webClient.DownloadFile(Url, DestinationPath);

            base.DoAction(this);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
 public virtual void DoAction(ISetupAction parentAction)
 {
     CallDependencies();
 }