示例#1
0
        private void CopyPHJContent(string phjFolder)
        {
            try
            {
                startInstall.Text        = "Installing";
                startInstall.Enabled     = false;
                allowClose               = false;
                dnSpeed.Text             = "- kB/s";
                tableLayoutPanel1.Cursor = System.Windows.Forms.Cursors.WaitCursor;

                DirectoryInfo htdocsInfo;
                DirectoryInfo phjInfo;
                htdocsInfo = new DirectoryInfo(rootPath + @"Apache24\htdocs\");
                phjInfo    = new DirectoryInfo(exPath + @"\" + phjFolder);
                CopyDir.CopyAll(phjInfo, htdocsInfo);
                installSucc = true;

                instProgress.Value       = instProgress.Maximum;
                dnPerc.Text              = "100%";
                startInstall.Text        = "Start Service";
                startInstall.BackColor   = Color.DodgerBlue;
                startInstall.Enabled     = true;
                allowClose               = true;
                instDetails.Text         = "Installation Complete";
                tableLayoutPanel1.Cursor = System.Windows.Forms.Cursors.Default;
            }
            catch (Exception ex)
            {
                InstallationFailed(ex);
            }
        }
示例#2
0
        private void CopyFolder(string relFolder)
        {
            startInstall.Text        = "Installing";
            tableLayoutPanel1.Cursor = System.Windows.Forms.Cursors.WaitCursor;
            DirectoryInfo exInfo   = new DirectoryInfo(exPath + @"\" + relFolder);
            DirectoryInfo rootInfo = new DirectoryInfo(rootPath + @relFolder);

            CopyDir.CopyAll(exInfo, rootInfo);
            startInstall.Text    = "Completed";
            dnSpeed.Text         = "- kB/s";
            startInstall.Enabled = true;
            allowClose           = true;
            instDetails.Text     = "Installation Complete";
        }