I found out my own mistake. *.rc
resource file is actually captious to any little punctuations and syntaxes. So that I found this here informing and actually right approach.
Add Version Info into .rc file in Qt
-
26-06-2022 - |
Question
I've got a myprogramm.exe.manifest
file and myprogramm.rc
resource file respectively. When I add to resource file (where there is a CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "myprogramm.exe.manifest"
that sees the path of manifest) Version Info it can't see manifest file and shows an error: "debug/myprogramm_res.0" couldn't find. How can I add version info? So that I could see both manifest and version info.
PS I added in .pro file RC_FILE = myprogramm.rc
.
Solution
OTHER TIPS
If you want add manifest to project use it like this
win32 {
RC_FILE = c:/app.rc
-manifest c:/app.exe.manifest
}
or don't use full path if it on project home dir.
Add in you *.pro file:
VERSION = 1.2.3
Look here. For adding version to executable you do not need *.rc file.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow