We have a VB6 project that compiles to an ActiveX EXE that happens to have the word "patch" in the filename (it is part of a police dispatch system), which is causing Installer Detection on Windows 7 to think that it requires elevation.
Rather than renaming the EXE, I want to embed a manifest resource into the compiled EXE that will request the asInvoker
privilege level. From reading, I know I can do this after compiling the EXE using the mt
tool in the Windows SDK, but I'd prefer to put the manifest in a .RES file so that it gets compiled into the program whenever I build the project.
Is there a way to add a manifest resource (resource type 24) to a VB6 project using the Resource Editor add-in? I added the manifest file as a custom resource and tried a few different values for the resource type, such as "RT_MANIFEST" and "24", and then tested whether it was working by using mt
to re-extract the manifest, but I cannot get it to work.
Note: As mentioned on a few pages I visited, I did remember to make the manifest an even multiple of 4 bytes, so I don't think that's the problem.