Chinaunix首页 | 论坛 | 博客
  • 博客访问: 257360
  • 博文数量: 42
  • 博客积分: 2245
  • 博客等级: 大尉
  • 技术积分: 466
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-20 13:02
文章分类

全部博文(42)

文章存档

2012年(4)

2011年(6)

2010年(2)

2009年(6)

2008年(24)

我的朋友

分类: WINDOWS

2012-01-13 21:08:43


一直百思不解,在XP上好用,到Window 7出问题。看了 后,只能说:只能说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
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  3. <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
  4. <security>
  5. <requestedPrivileges>
  6. <requestedExecutionLevel level="asInvoker"/>
  7. </requestedPrivileges>
  8. </security>
  9. </trustInfo>
  10. </assembly>
阅读(3057) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~