How to upgrade the program by itself
-
wrote on 11 Nov 2021, 03:06 last edited by
Hi, all
IFW is a great tool, but according to the user's needs (no installation page required), I have to use the silent installation mode OR decompressing the archive from USB flash drive. Because I don’t know enough about IFW, I want to upgrade the program by decompressing the archive.(Other tools should be able to implement silent installation, but extracting directly from the USB flash disk is the most suitable way for me.)
In order to upgrade the program by itself, I must exit the app before decompressing the archive. But in this case, the copying, decompression and other operations related to the upgrade program will be destroyed.
I don't know if I am expressing it clearly, I want to know how to achieve the self-upgrading of the program. Could you provide some ideas, please?
Best regards! -
Hi, all
IFW is a great tool, but according to the user's needs (no installation page required), I have to use the silent installation mode OR decompressing the archive from USB flash drive. Because I don’t know enough about IFW, I want to upgrade the program by decompressing the archive.(Other tools should be able to implement silent installation, but extracting directly from the USB flash disk is the most suitable way for me.)
In order to upgrade the program by itself, I must exit the app before decompressing the archive. But in this case, the copying, decompression and other operations related to the upgrade program will be destroyed.
I don't know if I am expressing it clearly, I want to know how to achieve the self-upgrading of the program. Could you provide some ideas, please?
Best regards!@tovax You could have a script which you start in your app (QProcess), then exit the app. The script should wait a bit before doing its work.
-
@tovax You could have a script which you start in your app (QProcess), then exit the app. The script should wait a bit before doing its work.
-
@tovax
In this case (script to continue running after parent Qt process exits) you should useQProcess::startDetached()
method to run the script.
1/5