瀏覽代碼

correct re-laucnh after update

olivier.massot 8 年之前
父節點
當前提交
2a0553dad8
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 二進制
      setup-hello_world.exe
  2. 2 2
      updater.py

二進制
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()