|
@@ -63,9 +63,9 @@ def update():
|
|
|
handle.write(chunk)
|
|
handle.write(chunk)
|
|
|
|
|
|
|
|
# Run the installer and restart the start command
|
|
# 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
|
|
# An UpdateNeeded exception is raised so the script exit before being restarted by subprocess
|
|
|
raise UpdateNeeded()
|
|
raise UpdateNeeded()
|