コード例 #1
0
        private void buttonInstall_Click(object sender, EventArgs e)
        {
            buttonInstall.Enabled = false;

            _installer = new NetFrameworkInstaller(NetFrameworkVersion.GetVersionUrl(Start.VersionNeeded, NetFrameworkVersion.InstallerType.Webclient), Path.Combine(Path.GetTempPath(), "dotNetInstaller_v" + Start.VersionNeeded + ".exe"), ProgressHandler, OnCompleteDownload);
            _installer.Install();

            downloadBar.Show();
            downloadPercent.Show();
        }
コード例 #2
0
 private void OnCompleteDownload(NetFrameworkInstaller obj)
 {
     downloadBar.Hide();
     downloadPercent.Hide();
 }