I've been able to create an installation for my software. However, I can't figure out how to create another installer which could update previous installation.
I have updated component versions, software version and release dates, but whenever I run second installation over the folder with pre-installed software - I'm getting The folder you selected already exists and contains an installation. Chose different target for installation.
Any hint on how to update an existing installation using Qt installer Framework would be very welcome!
I faced the same problem too. So I have downloaded the latest snapshot and studied samples. One in particular is very helpful : dynamicpage
I didn't succeed to show a popup warning to the user when he's choosing an existing location, so I have found a work around: instead, a red label is shown under the selected directory.
This is not really a solution for updating component by component, but you will be able to continue installation process.
First of all, we need to replace the default page "TargetDirectory".
In file
installerscript.qs
, this is what you need to add:In file targetwidget.ui
This is actually not the real .ui file, just for explanation purpose. In the end of this file, I have added an empty QLabel called
labelOverwrite
. The text is filled with red message intargetChanged
callback.Finally, don't forget to modify your existing file package.xml