Skip to content
Snippets Groups Projects
Commit 78ff31f7 authored by tobias's avatar tobias
Browse files

Fixed Updates#update bug when downloading Updater

parent f5c6be9d
No related branches found
No related tags found
No related merge requests found
......@@ -58,9 +58,9 @@ public class Updates {
App app = ApplicationUtils.getApplication();
String updaterURL = app.getInfo().getUserInfo().get(AppUserInfoStrings.UPDATER_PROGRAM) + EXE_NAME;
Path downloadUpdaterFile = ApplicationUtils.getApplication().getPath(PathType.DOWNLOAD, EXE_NAME);
path = ApplicationUtils.getApplication().getPath(PathType.DOWNLOAD, EXE_NAME);
downloadUpdater(updaterURL, downloadUpdaterFile);
downloadUpdater(updaterURL, path);
}
startExeFile(parameter, path, needAdminPermission);
return false;
......@@ -72,9 +72,9 @@ public class Updates {
App app = ApplicationUtils.getApplication();
String updaterURL = app.getInfo().getUserInfo().get(AppUserInfoStrings.UPDATER_PROGRAM) + JAR_NAME;
Path downloadUpdaterFile = ApplicationUtils.getApplication().getPath(PathType.DOWNLOAD, JAR_NAME);
path = ApplicationUtils.getApplication().getPath(PathType.DOWNLOAD, JAR_NAME);
downloadUpdater(updaterURL, downloadUpdaterFile);
downloadUpdater(updaterURL, path);
}
startJarFile(parameter, path);
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment