ClickOnce应用程序的安装路径 [英] Installation path of ClickOnce apps

查看:679
本文介绍了ClickOnce应用程序的安装路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Visual Studio 2008开发并通过ClickOnce分发的应用程序.

I have an application developed with Visual Studio 2008 and distributed throught ClickOnce.

我的问题:如果我以John身份登录客户端计算机,并且启动setup.exe(通过ClickOnce提供)以安装应用程序,则会注意到可执行文件的路径类似于:C:\ Users \ John \ AppData \ Local \ Apps \ 2.0 .... \ mysoftware.exe

My question: if I log on the client computer as John (for example) and I launch the setup.exe (provided through ClickOnce) to install the application, I noticed the path of the executable is something like: C:\Users\John\AppData\Local\Apps\2.0....\mysoftware.exe

现在,如果我以Mike身份登录,则可执行文件的路径类似于:C:\ Users \ Mike \ AppData \ Local \ Apps \ 2.0 .... \ mysoftware.exe

Now, if I log on as Mike, the path of the executable is something like: C:\Users\Mike\AppData\Local\Apps\2.0....\mysoftware.exe

似乎每个用户的每个可执行安装都有不同的副本.有道理吗?在开发Visual Basic 6应用程序之前,可执行文件位于C:\ Program Files \ MySoftware \ MySoftware.exe中.每个用户都运行相同的可执行文件.

It seems that there is a different copy of each executable installation for each user. Does it make sence? Before I developed Visual Basic 6 application where executables are located in C:\Program Files\MySoftware\MySoftware.exe. Every user was running the same executable.

推荐答案

是的,ClickOnce始终将应用程序安装到用户配置文件中的混淆文件夹中.这是出于安全原因.特权有限的用户无法写入"Program Files"文件夹,但可以写入其个人资料.

Yes, ClickOnce always installs apps to an obfuscated folder in the user's profile. It's for security reasons. Users with limited privileges can't write to the "Program Files" folder but they can write to their profile.

这是每个人都因为不同而被关闭的原因.但是,真正引起关注的唯一原因是您的应用程序庞大且用户的连接速度非常慢.如果您仍然讨厌每个用户都安装它的想法,那么您将不得不使用其他东西.无法使ClickOnce的行为有所不同.

This is something that everyone is turned off by initially because it's different. However, the only real cause for concern is if your app is massive and your users have very slow connections. If you still hate the idea of each user installing it, you'll have to use something else; there's no way make ClickOnce behave differently.

这篇关于ClickOnce应用程序的安装路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆