Debug a program that needs administrator rights under Windows 7

后端 未结 6 648
旧时难觅i
旧时难觅i 2020-12-29 07:19

I\'m running Visual Studio 2008 on Windows 7 64-bit. I\'m logged in as administrator, and I\'m running it as administrator, but the program I\'m working on fa

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-29 07:49

    It's best to run Visual Studio 2008 as administrator. Moreover, it's good to change your application's manifest settings to require administrator privileges. You will be prompted by the system to elevate to system administrator each time you start your application, and when running under Visual Studio 2008 the IDE will offer you the elevation before start of debugging.

    To change the setting, open project properties and go to Configuration PropertiesLinkerManifest fileUAC Execution Level.

提交回复
热议问题