When a Silent installer is run, loop until there isn't an I2P.exe process anymore.

This commit is contained in:
idk
2021-07-03 22:39:54 -04:00
parent a5db548ad5
commit 6165131c66
5 changed files with 138 additions and 6 deletions

View File

@ -42,12 +42,11 @@ public class WinLauncher extends WindowsUpdatePostProcessor {
i2pRouter = new Router(System.getProperties());
UpdateManager upmgr = updateManagerClient();
if (upmgr != null) {
upmgr.register(this, ROUTER_SIGNED_SU3, 6);
upmgr.register(this, ROUTER_DEV_SU3, 6);
}else{
System.out.println("\t unable to register updates");
while (upmgr == null) {
System.out.println("Waiting for update manager so we can pull our own updates");;
}
upmgr.register(this, ROUTER_SIGNED_SU3, 6);
upmgr.register(this, ROUTER_DEV_SU3, 6);
i2pRouter.runRouter();
}

View File

@ -82,7 +82,7 @@ public class WindowsUpdatePostProcessor implements UpdatePostProcessor {
}
protected File selectProgramFileExe() {
File pfpath = selectProgramFile();
File pfpath = selectProgramFile();
if (SystemVersion.isWindows()) {
File app = new File(pfpath, "I2P.exe");
return app.getAbsoluteFile();