Beispiel #1
0
 public LauncherInstaller(string installationPath, InstallationProgressPage installationProgressPage, bool silent = false)
 {
     this.Silent = silent;
     this.InstallationProgressPage = installationProgressPage;
     this.Path = installationPath;
     Install_Start();
 }
        public LauncherInstaller(string installationPath, InstallationProgressPage installationProgressPage, bool silent = false)
        {
            this.silent = silent;
            this.InstallationProgressPage = installationProgressPage;
            this.path = installationPath;

            if (!Directory.Exists(installationPath))
            {
                try
                {
                    Directory.CreateDirectory(installationPath);
                    download();
                    return;
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.ToString());
                    return;
                }
            }
            cleanCurrent(installationPath);
            download();
        }