mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:58:56 +02:00
Fix installer process windows
This commit is contained in:
parent
7486e906eb
commit
d54bb02f47
2 changed files with 16 additions and 8 deletions
|
@ -702,13 +702,14 @@ void CLauncherDlg::OnTimer(UINT_PTR nIDEvent) {
|
||||||
_splashStep = SPLASH_DURATION;
|
_splashStep = SPLASH_DURATION;
|
||||||
setDrawDialog(DrawStep::DrawProcessUpdate);
|
setDrawDialog(DrawStep::DrawProcessUpdate);
|
||||||
theApp._manager.updateProgress(LauncherManager::ProcessType::Uninstall, 0.0f);
|
theApp._manager.updateProgress(LauncherManager::ProcessType::Uninstall, 0.0f);
|
||||||
|
} else if (theApp._manager.shouldSkipSplashScreen()) {
|
||||||
|
theApp._manager.updateProgress(LauncherManager::ProcessType::Uninstall, 1.0f);
|
||||||
|
setDrawDialog(DrawStep::DrawProcessFinishUpdate);
|
||||||
|
_splashStep = SPLASH_DURATION;
|
||||||
|
_showSplash = false;
|
||||||
} else {
|
} else {
|
||||||
if (theApp._manager.shouldSkipSplashScreen()) {
|
theApp._manager.addToLog(_T("Start splash screen"));
|
||||||
_splashStep = SPLASH_DURATION;
|
setDrawDialog(DrawStep::DrawLogo);
|
||||||
} else {
|
|
||||||
theApp._manager.addToLog(_T("Start splash screen"));
|
|
||||||
setDrawDialog(DrawStep::DrawLogo);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else if (_splashStep > SPLASH_DURATION && !theApp._manager.needsToWait()) {
|
} else if (_splashStep > SPLASH_DURATION && !theApp._manager.needsToWait()) {
|
||||||
_showSplash = false;
|
_showSplash = false;
|
||||||
|
|
|
@ -611,11 +611,18 @@ void LauncherManager::onFileDownloaded(ProcessType type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void LauncherManager::restartNewLauncher() {
|
void LauncherManager::restartNewLauncher() {
|
||||||
|
CString tempPath;
|
||||||
|
LauncherManager::getAndCreatePaths(LauncherManager::PathType::Temp_Directory, tempPath);
|
||||||
|
tempPath += "hql.exe";
|
||||||
|
CString installPath;
|
||||||
|
LauncherManager::getAndCreatePaths(LauncherManager::PathType::Launcher_Directory, installPath);
|
||||||
|
installPath += LAUNCHER_EXE_FILENAME;
|
||||||
|
CopyFile(installPath, tempPath, false);
|
||||||
closeLog();
|
closeLog();
|
||||||
if (_willContinueUpdating) {
|
if (_willContinueUpdating) {
|
||||||
LauncherUtils::launchApplication(_tempLauncherPath, _T(" --restart --noUpdate --continueUpdating"));
|
LauncherUtils::launchApplication(tempPath, _T(" --restart --noUpdate --continueUpdating"));
|
||||||
} else {
|
} else {
|
||||||
LauncherUtils::launchApplication(_tempLauncherPath, _T(" --restart --noUpdate --skipSplash"));
|
LauncherUtils::launchApplication(tempPath, _T(" --restart --noUpdate --skipSplash"));
|
||||||
}
|
}
|
||||||
Sleep(500);
|
Sleep(500);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue