Add Version Info into .rc file in Qt

8.3k views Asked by At

I've got a myprogramm.exe.manifestfile 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.

3

There are 3 answers

0
elgolondrino On BEST ANSWER

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.

1
DeadWarlock On

Add in you *.pro file:

VERSION = 1.2.3

Look here. For adding version to executable you do not need *.rc file.

0
Amr Eisa On

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.