Commit de4cbe4
committed
fix: installer 末尾用 schtasks /run 代替 Exec wscript.exe
NSIS install 末尾原本用 Exec wscript.exe 启动 gateway,会继承 admin 父进程(Session 0)的 session,导致 tray 图标跑在 Services session 里、用户在桌面看不到。\n\n改用 schtasks /run /tn 'QMT Gateway',由 LogonTrigger+InteractiveToken principal 把 gateway 拉到 **当前活动用户** 的 session 启动,tray 图标在右下角正常显示。\n\n计划任务行为不变:用户重启后 LogonTrigger 仍会自动拉起 gateway。1 parent 06cc411 commit de4cbe4
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
427 | | - | |
428 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
429 | 439 | | |
430 | 440 | | |
431 | 441 | | |
| |||
0 commit comments