コード例 #1
0
 public LauncherInstaller(string installationPath, InstallationProgressPage installationProgressPage, bool silent = false)
 {
     this.Silent = silent;
     this.InstallationProgressPage = installationProgressPage;
     this.Path = installationPath;
     Install_Start();
 }
コード例 #2
0
        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();
        }