没有互联网的ClickOnce本地部署 [英] ClickOnce local deployment without internet

查看:101
本文介绍了没有互联网的ClickOnce本地部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置一个本地安装的ClickOnce部署,而不像CD安装那样需要互联网访问。 我的发布设置是"来自CD-ROM"。它将检查网络上的更新。   

目前我们发布到本地服务器进行测试,然后压缩文件并将zip文件上传到网上供客户下载。 这已经有效了一段时间没有问题。 最近在从Web下载并解压缩后进行安装时,安装程​​序实际上会查看Web上的更新位置并从Web而不是本地安装。  "从位置"安装期间安全警告中的字段实际上列出了网站而不是本地文件路径。 如果没有互联网连接,则表示"应用程序下载未成功错误。" 

奇怪的部分是完全相同的zip文件,如果从本地服务器复制到客户端机器将安装得很好而不检查网站和"从位置" field是本地文件路径。 只有当zip文件从网络安装时才能通过电子邮件发送或从网上下载。 换句话说,如果计算机从本地服务器下载zip,它安装正常而无需访问互联网。

XP和Win 7都存在问题。

我是试图找出导致这种情况发生的原因以及如何纠正它。

提前谢谢。

I'm trying to setup a ClickOnce deployment that installs locally without requiring internet access much like a CD install.  My publish settings are "From a CD-ROM" and it will check for updates on the web.   

Currently we publish to a local server for testing and then zip the files and upload the zip file to the web for customers to download.  This has worked well for some time with no problems.  Recently when installing after downloading from the web and unzipping, the installer actually looks at the update location on the web and installs from the web instead of locally.  The "From location" field in the security warning during install actually lists the website instead of the local file path.  If there is no internet connection then it gives an "application download did not succeed error." 

The strange part is the same exact zip file if copied from the local server to a client machine will install just fine without checking the website and the "From location" field is the local file path.  It's only when the zip file is emailed or downloaded from the web when it installs from the web.  In other words if a computer downloads the zip from the local server it installs fine without requiring internet access.

The problem exists on both XP and Win 7.

I'm trying to figure out what caused this to happen and how to correct it.

Thanks in advance.

推荐答案

我的猜测是这与您将文件复制到的文件夹有关。

这是交易。什么是安装URL?因为这就是它要寻找安装的地方。因此,如果你将它部署到一个文件夹并调用它像C:\ MyAppDeployment \,并将其压缩并将其放在文件共享上(你没有说出什么样的服务器,所以我假设),然后用户将无法从那里安装它,除非文件共享被映射为C并且部署位于名为MyAppDeployment的文件夹中。所以它会查看更新位置并从网络服务器中取出它。

但如果他复制到他的机器并将其放在C驱动器上名为MyAppDeployment的文件夹中,它将从那里神奇地安装。为什么?因为它与您在创建部署文件时最初指定的文件夹相匹配。

RobinDotNet

My guess is that this has something to do with the folder you copy the file to.

Here's the deal. What is the installation URL? Because that's where it's going to look for the installation. So if you're deploying it to a folder and calling it something like C:\MyAppDeployment\, and zipping that up and putting it on a file share (you didn't say what kind of server, so I'm assuming), then the user is not going to be able to install it from there unless the file share is mapped as C and the deployment is in a folder called MyAppDeployment. So it will look at the update location and pull it from the webserver.

But if he copies to his machine and puts it in a folder called MyAppDeployment on his C drive, it will magically install from there. Why? Because it matches the folder you originally specified when you created the deployment files.

RobinDotNet


这篇关于没有互联网的ClickOnce本地部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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