Sometimes happens that you need grant administrator privileges to Windows applications because you need to access to some kind of hardware feature, launch a child process within your application or anything else. Otherwise, your application will not be able to perform these actions.
For that, you need to create a manifest file in which you have to indicate that you application should ask the user for administrator privileges and, after that, embed the file in your application executable.
If you are also using CMake and you want to include all this tricky stuff in your build process, keep reading.
The problem is that they use a format not compatible with external applications like WinZIP, WinRAR or 7-Zip, which means that if you try to use these functions with a normal ZIP file, you will probably get an error like this:
qUncompress:Z_DATA_ERROR:Input data iscorrupted
But do not worry! There is a way to resolve this problem! ^_^