public void openUpdate(string newVer, string oldVer) { var dialog = new XAML.UpdateWindow(newVer, oldVer); if (dialog.ShowDialog() == true) { //start the update program //Process.Start(Directory.GetCurrentDirectory() + "/update.exe"); //Exit the current program so the update program can overwrite the current files //Environment.Exit(0); //MainWindow.Close(); UpdateClient.UpdateClient update = new UpdateClient.UpdateClient("scoreboard_update.zip", "http://nathan-dev.com/projects/update/", "keeperScoreboard.exe"); } }
public void openUpdate(string newVer, string oldVer) { var dialog = new XAML.UpdateWindow(newVer, oldVer); if (dialog.ShowDialog() == true) { //start the update program //Process.Start(Directory.GetCurrentDirectory() + "/update.exe"); //Exit the current program so the update program can overwrite the current files //Environment.Exit(0); //MainWindow.Close(); UpdateClient.UpdateClient update = new UpdateClient.UpdateClient("scoreboard_update.zip", "http://nathan-dev.com/projects/update/", "keeperScoreboard.exe"); } }
private FileEntity ConvertToFileEntity(UpdateClient.AutoUpdateSvc.FileEntity item) { FileEntity feEntity = new FileEntity(); feEntity.FileName = item.FileName; feEntity.CreateTime = item.CreateTime; feEntity.FilePath = item.FilePath; feEntity.FileSize = item.FileSize; feEntity.FileVersion = item.FileVersion; feEntity.HashCode = item.HashCode; feEntity.UpdateTime = item.UpdateTime; feEntity.IsExist = item.IsExist; return feEntity; }