gnuwin32 patch.exe 运行问题
(2012-01-13 21:08)
分类: 文章
一直百思不解,在XP上好用,到Window 7出问题。看了 http://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1926465 后,只能说:只能说MS很愚蠢
Patch.exe does not need admin privileges; it's the heuristics built
into Vista which assumes that executables which do not have a manifest
and have certain strings in their name - such as 'patch' and 'setup' -
which causes the elevation prompt. Adding the manifest above stops
Vista applying this heuristic; patch.exe then runs using the invoker's
privilege.
You'll need three manifests for gnuwin32 utils,
patch.exe.manifest
install.exe.manifest
install-info.exe.manifest
patch.exe.manifest
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
-
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
-
<security>
-
<requestedPrivileges>
-
<requestedExecutionLevel level="asInvoker"/>
-
</requestedPrivileges>
-
</security>
-
</trustInfo>
- </assembly>

