Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt Installer Framework: strange license error when updating

Sometimes when I use the maintenancetool.exe on Windows with "Update components", an error is displayed after the update has been downloaded and installed saying:

Error during installation process (com.myapp.windows_x86_64): Can not write license file: C:\Program Files(x86)/MyApp/Licenses\license.txt

with an option to ignore the error, retry, or quit. I can't figure out how to prevent this error. My package.xml file has the following line:

<Licenses>
    <License name="MyApp Public License Agreement" file="license.txt" />
</Licenses>

and license.txt is stored in the same directory as package.xml as per the instructions in https://doc.qt.io/qtinstallerframework/ifw-tutorial.html#adding-licenses.

Edit: I realized I was inadvertently using qt installer framework version 1, so this may be bug QTIFW-315 as pointed out by Sergio. I have updated to version 3 and that seems to solve the problem.

like image 970
user1389840 Avatar asked Dec 05 '17 07:12

user1389840


1 Answers

It is a fairly broad question, and it is difficult to reproduce the same specific issue, hence the lack of answers.

I checked in the Qt bug tracker and nobody has reported a similar issue so far. It would be useful to know if this happens with different computers or just with one.

Usually you receive this kind of error messages either if the process doesn't have enough priviledges to write the file or if another process has locked the file. You may check if there is a process locking the license.txt file with utilities like Process Explorer (have a look here).

I hope this helps.

like image 121
Sergio Monteleone Avatar answered Sep 29 '22 15:09

Sergio Monteleone