Visual Studio 2010安装项目管理员权限
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我
单击“启用 ClickOnce 安全设置
2) 更改
为
但是每次用户启动时,都会询问用户是否允许运行“不受信任”的应用程序,这有点不太好。/Stefan
1)取消
It worked in somewhat if I
1) Unclicked "Enable ClickOnce security settings
2) Changed
into
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
推荐的解决方案是将清单添加到请求提升的应用程序:
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