'QTIFW change user selected TargetDir

On QTIFW I can set the default TargetDir on config.xml, that will show up in the Target Directory Page where user can change it during installation.

I like to set TargetDir to i.e. C:\Program Files\CompanyName\MyApplication1.

In this case I hope MyApplication1 is an empty folder, where application artifacts will be placed.

However when user change folder, I noticed a non empty folder might be unintentionally chosen i.e. C:\Users\user. In this case I would like to add an extra directory level (MyApplication) right after user returns from the directory selection step. I mean before he/she clicks Next to go to the next page.

How can I hook in there?

I can't see any signal associated to those events. Any ideas?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source