detect all Windows service states

This commit is contained in:
idk
2022-09-19 02:40:52 -04:00
parent 0216bc7254
commit c226103bc7
2 changed files with 28 additions and 19 deletions

View File

@ -52,7 +52,7 @@ class WinUpdateProcess implements Runnable {
// ProcessBuilder to run the installer.
ProcessBuilder pb = new ProcessBuilder(
file.getAbsolutePath(), "/S", "/D=" + workingDir.getAbsolutePath());
Map<String, String> env = pb.environment();
Map<String, String> env = pb.environment();
env.put("OLD_I2P_VERSION", version);
env.remove("RESTART_I2P");