Embed Manifest using RC file?!?! [SOLVED]
-
The rc file is used to apply version, vendor, author to an exe, not for have the administrator privilege. To use rc file please add RESOURCES += ResourceFile.qrc to the pro file.
I normally use innosetup. When I install my application on Windows 7 for example, Windows asks me to confirm. -
Thanks for the reply but if you take a look at "this":http://stackoverflow.com/questions/10802889/run-the-qt-application-as-administrator-on-windows and the links referenced here you can see that Admin privileges can be definitely achieved using manifest file.
I'll admit Innosetup is also a good choice but I want to use QTIFW.
If I find an answer I'll share it here.
-
I found a solution which I shared in another thread that was also created by me.
For acquiring Admin Rights in Qt Installer Framework, "THIS!":http://qt-project.org/forums/viewthread/35854/ would be the answer.
As for Admin Rights in applications created using Qt Creator (and of course for Windows platform) you can check out the explanations in "THIS ONE":http://blog.strixcode.com/2010/08/embedding-application-manifest-and.html
There is also sample codes in there which can be modified to meet your needs.