diff options
author | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2022-08-18 12:51:36 +0300 |
---|---|---|
committer | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2022-09-07 14:09:46 +0300 |
commit | 86c68384cbf197dae3c6583c7b752eb21c75e34c (patch) | |
tree | 416a6ab40627a192631fe004a50f1d3261ad65e4 /dist | |
parent | 1b702ac2801de72c67224c42e6456db235ee6b8c (diff) |
Replace .vbs hack to update maintenance tool binary on Windows
Do the replacing of the executable instead by:
- The original MT renames itself to a temporary name
- The new MT is renamed to the destination file name
- The new MT is started as a detached process, it polls to delete the
temporary MT (requires that the parent process exited)
Introduce hidden options, cleanup-update and cleanup-update-only to
start the maintenance tool in a mode for deleting the old binary.
Also fix missing verbose messages on hard restart of maintenance tool
after update. Due to QProcessWrapper::startDetached using a modified
implementation of the wrapped class (QProcess) method, the detached
process was started with a new console instead of inheriting the
console of the parent process. Fix by adding a second variant of the
QProcessWrapper::startDetached functions using the QProcess
implementation.
Task-number: QTIFW-2625
Change-Id: Iebc5b04befa1e79765217f93723f977556e03d90
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions