THoffman
MJTNET wrote: |
Update - changed the manifest slightly. This time no "access denied" error and the exe started, but the original problem persists. :-(
|
|
I disabled the security setting as well to get it to work, but wasn't happy with that. I asked a few questions, and got an answer. I then found this article which explains how to do it as well, though I only found it because I knew the solution ahead of time.
Basically, you need to not only include requireAdministrator, but change uiAccess to True, not false as in the original sample. The sample on the link I just sent sets the requested level to "highestAvailable" and usAccess to True. I tried mine with "requireAdministrator," since I tried it before I found that document, and that seems to work, though I haven't fully tested it yet.
Once you embed the manifest in the EXE, you have to sign the code, which isn't hard to do, but you need a code signing certificate to do it.
Assuming you have the ability to sign code, there are two ways to get VisualTest working. First, you can edit mtrun.exe, add the resource, then sign it. Alternatively, you can use your own app to launch mtrun.exe, which is the way I've done it. I already had a launcher app that I wrote to (among other things) avoid having to install the runtime modules on every system I want to run my tests on, so it was just a matter of adding the manifest, compiling, and signing.
I haven't done much testing with it yet, but the Visual Test play statement works, which was the first place I'd seen the problem.