ソースを参照

correct re-laucnh after update

olivier.massot 8 年 前
コミット
2a0553dad8
2 ファイル変更2 行追加2 行削除
  1. BIN
      setup-hello_world.exe
  2. 2 2
      updater.py

BIN
setup-hello_world.exe


+ 2 - 2
updater.py

@@ -63,9 +63,9 @@ def update():
                 handle.write(chunk)
 
     # Run the installer and restart the start command
-    args = "/SILENT && {}".format(" ".join(sys.argv[:]))
+    args = "/c {} /SILENT & {} {}".format(TMP_SETUPFILE, sys.executable, " ".join(sys.argv[:]))
 
-    Popen([TMP_SETUPFILE, args], shell=True)
+    Popen(["cmd.exe", args], shell=True)
 
     # An UpdateNeeded exception is raised so the script exit before being restarted by subprocess
     raise UpdateNeeded()