Visual Studio 2010安装项目管理员权限

发布于 2024-12-05 18:05:18 字数 547 浏览 1 评论 0原文

Visual studio 2010,Windows XP/7

我不确定我是否在这里做,但我有一个带有(Visual Studio)安装项目的应用程序项目。

我已经对其进行了配置,以便安装应用程序,

[ProgramFilesFolder][Manufacturer]\[ProductName]

但每次安装后我都必须手动更改 .exe 的权限,以便它将以管理员权限运行。

有没有办法让安装程序自动更改此设置,以便用户不必手动执行此操作?

我是否必须将签名作为东西,即从威瑞信购买签名?

将客户应用程序安装到“现在”(在 Windows 7 中)是否错误

[ProgramFilesFolder][Manufacturer]\[ProductName]

,而应该安装到

[AppDataFolder][Manufacturer]\[ProductName]

其他地方?

/斯特凡

Visual studio 2010, Windows XP/7

I am not sure if I am doing right here but I have an application project with a (visual studio) Setup project.

I have configured it so that install the application into

[ProgramFilesFolder][Manufacturer]\[ProductName]

but after each installation I have to manually change the rights of the .exe so it will run with admin rights.

Is there a way of having the Setup installtion change this automatically so the user do not have to do this manually ?

Do i have to mess around with signature as stuff, that is buying a signature from verisign ?

Is it "nowdays" (in Windows 7) wrong to install a customer application into

[ProgramFilesFolder][Manufacturer]\[ProductName]

and should instead be installed into

[AppDataFolder][Manufacturer]\[ProductName]

or somewhere else ?

/Stefan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

韶华倾负 2024-12-12 18:05:18

如果我

单击“启用 ClickOnce 安全设置

2) 更改

<requestedExecutionLevel  level="asInvoker" uiAccess="false" />

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

但是每次用户启动时,都会询问用户是否允许运行“不受信任”的应用程序,这有点不太好。/Stefan

1)取消

It worked in somewhat if I

1) Unclicked "Enable ClickOnce security settings

2) Changed

<requestedExecutionLevel  level="asInvoker" uiAccess="false" />

into

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

But Every time the user starts, the user is asked if the user allow to run the "untrusted" application which is not so nice.

/Stefan

剩一世无双 2024-12-12 18:05:18

推荐的解决方案是将清单添加到请求提升的应用程序:
http://msdn.microsoft.com/en-us/library/bb756929.aspx

The recommended solution is to add a manifest to your application which requests elevation:
http://msdn.microsoft.com/en-us/library/bb756929.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文