发博文
Coding Art

codingart.blog.chinaunix.net

   
个人资料
  • 博客访问:71047
  • 博文数量:45
  • 博客积分:2245
  • 博客等级:大尉
  • 注册时间:2008-10-20 13:02:00
订阅我的博客
  • 订阅
  • 订阅到鲜果
  • 订阅到抓虾
  • 订阅到Google
字体大小: 博文
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

  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>

亲,您还没有登录,请[登录][注册]后再进行评论