public bool UnzipProgramFiles(string programZipFile, string destPath) { if (!File.Exists(programZipFile)) { // Error: bin.zip NOT found. return false; } this.destPath = destPath; Zip zip = new Zip(); string errorMessage; bool ret = zip.UnZipFile(programZipFile, destPath, UnzipFileHandler, out errorMessage); return ret; }
public bool UnzipProgramFiles(string programZipFile, string destPath) { if (!File.Exists(programZipFile)) { // Error: bin.zip NOT found. return false; } this.destPath = destPath; Zip zip = new Zip(); string errorMessage; bool ret = zip.UnZipFile(programZipFile, destPath, UnzipFileHandler, out errorMessage); string logPath = Program.GetCurrentPath() + "\\logs"; if (!Directory.Exists(logPath)) { Directory.CreateDirectory(logPath); } string logFileName = string.Format("logs\\{0}.ulog", DateTime.Now.ToString("yyyy_MM_dd_HH_mm")); string logFile = Path.Combine(Program.GetCurrentPath(), logFileName); UpdateLog.Instance().Dump(logFile); return ret; }