v1.8.82: fix update apply — os.startfile(vbs) + os._exit(0)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chrome-storm-c442
2026-03-01 09:36:01 -05:00
parent bf27141a85
commit 7a654c9ef6
3 changed files with 4 additions and 6 deletions

View File

@@ -292,11 +292,9 @@ del "%~f0"
with open(vbs_path, "w") as f:
f.write(vbs_content)
# Launch VBS detached — no visible window at all
subprocess.Popen(
["wscript", vbs_path],
creationflags=subprocess.DETACHED_PROCESS | subprocess.CREATE_NEW_PROCESS_GROUP,
)
# Launch VBS via os.startfile — most reliable on Windows,
# works from frozen exe without PATH issues
os.startfile(vbs_path)
return True
except Exception as e: