private void DownloadInstallButton_Click(object sender, EventArgs e) { string folderPath = Server.MapPath("/_temp"); if (!Directory.Exists(folderPath)) { Directory.CreateDirectory(folderPath); } Installer.DownloadFileFromUrl(DownloadLocalHyperLink.NavigateUrl, folderPath); string filename = DownloadLocalHyperLink.NavigateUrl.Substring(DownloadLocalHyperLink.NavigateUrl.LastIndexOf('/') + 1); UploadFile = Path.Combine(folderPath, filename); UnZipPath = UnZipFile(Path.Combine(folderPath, filename)); if (UnZipPath == "") { RegisterScript("alert('无法正确解压,请检查压缩文件是否为合法的Zip压缩格式。');"); return; } else { UnZipLiteral.Text = FileListSummary(UnZipPath); } }