Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
4.7.0
-
None
Description
I came across a situation:
installer created by QtIFW 4.7 + Qt5.15, sometimes it will cause an error like:
```
[23686] Warning: Cannot open file for writing "C:/Program Files/TEST/installerResources/com.test.main/2.0content.txt" : "The system cannot find the path specified."
[23693] Warning: Cannot open file for writing "C:/Program Files/TEST/installerResources/com.test.main/2.0data.txt" : "The system cannot find the path specified."
[23697] Operation \"Extract\" with arguments \"installer://com.test.main/2.0content.7z; C:/Program Files/TEST\" failed: Error while extracting archive \"installer://com.test.main/2.0content.7z\": Cannot write entry \"C:/Program Files/TEST\\bestechnic_serial.inf\" to disk: Can't create '\\\\?\\C:
Program Files\\TEST
bestechnic_serial.inf': No such file or directory.
[23697] installationErrorWithCancel : Installer Error : Error during installation process (com.test.main):
Error while extracting archive "installer://com.test.main/2.0content.7z": Cannot write entry "C:/Program Files/TEST\bestechnic_serial.inf" to disk: Can't create '\\?\C:\Program Files\TEST\bestechnic_serial.inf': No such file or directory. Retry|Ignore|Cancel
```
NOTE:
1, Sometimes it works well, sometimes it will fail. Errors are bound to occur within 3~5 runs.
2, If I start installer with administrator rights, it works OK.
3, If I call installer.gainAdminRights() in controlscript.js first of all, it works OK. But even if I don't call this function, the installer will automatically request permissions before I start the copy process, which I think is correct.
4, If I build installer with Qt6.6, it works OK. My guess is that there is a difference in the handling of permissions between the two Qt versions.
Since the recommended framework for QtIFW 4.7 is Qt6.6, I don't know if this is an issue that needs to be addressed, I just mention it here for your reference, thank you.