J
Joergen Bech
I have an app that needs to run with elevated privileges on
Windows Vista (Registry operations - don't ask).
I have added a manifest file that looks like this:
---snip---
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86"
name="myapp" type="win32"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
---snip---
(where 'myapp' has been replaced with the proper name, of course)
and I have configured this post-build event:
---snip---
"$(DevEnvDir)..\..\SDK\v2.0\bin\mt.exe" -manifest
"$(ProjectDir)$(TargetName).exe.manifest"
–outputresource:"$(TargetDir)$(TargetFileName)";#1
---snip---
I am using mt.exe version 5.2.3790.2075.
On Windows Vista (running as a WMware virtual machine),
it pops up the User Account Control dialog EVERY time I run the app
- not just the first time.
As far as I remember, this was not the case a short while ago (weeks
or months?) I am sure that when I originally added the manifest,
Vista would only bring up the dialog once for each new build.
I have not changed the manifest file, the build process, the program
version, or anything else I can think of at the development end that
could cause this change/difference.
Has anything changed on the Vista side, e.g. as the result of a
Windows Update, or where should I look for clues to the change
in this behavior?
Or does my memory fail me and it never worked in the first place?
TIA,
Joergen Bech
Windows Vista (Registry operations - don't ask).
I have added a manifest file that looks like this:
---snip---
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86"
name="myapp" type="win32"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
---snip---
(where 'myapp' has been replaced with the proper name, of course)
and I have configured this post-build event:
---snip---
"$(DevEnvDir)..\..\SDK\v2.0\bin\mt.exe" -manifest
"$(ProjectDir)$(TargetName).exe.manifest"
–outputresource:"$(TargetDir)$(TargetFileName)";#1
---snip---
I am using mt.exe version 5.2.3790.2075.
On Windows Vista (running as a WMware virtual machine),
it pops up the User Account Control dialog EVERY time I run the app
- not just the first time.
As far as I remember, this was not the case a short while ago (weeks
or months?) I am sure that when I originally added the manifest,
Vista would only bring up the dialog once for each new build.
I have not changed the manifest file, the build process, the program
version, or anything else I can think of at the development end that
could cause this change/difference.
Has anything changed on the Vista side, e.g. as the result of a
Windows Update, or where should I look for clues to the change
in this behavior?
Or does my memory fail me and it never worked in the first place?
TIA,
Joergen Bech