How to set “Run this program as an administrator” programmatically

前端 未结 7 1300
梦谈多话
梦谈多话 2020-11-29 21:59

I\'m having a problem with good ol\' bdeadmin.exe in Vista. First, let\'s get the predictable responses out of the way:

\"You should not require your application to

相关标签:
7条回答
  • 2020-11-29 22:27

    I have found that the .manifest file method doesn't work if the .exe is under C:\Program files\... and the .exe has previously been run without the .manifest file. Windows remembers the .manifest from the first time the .exe is run. This means you can't just send the manifest when users complain that their installations don't run. The manifest file has to be placed before or during the same installation that places the .exe.

    Windows rechecks the .manifest if the .exe changes (e.g. new release or different number of bytes)

    0 讨论(0)
提交回复
热议问题