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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user