ClickOnce + .NET客户端配置文件框架+ SQL Server Compact +脱机安装 [英] ClickOnce + .NET client profile framework + SQL Server Compact + offline installation

查看:79
本文介绍了ClickOnce + .NET客户端配置文件框架+ SQL Server Compact +脱机安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用ClickOnce发布Windows .NET 3.5应用程序时,我遇到一些先决条件问题。

I have issues with prerequisites while trying to publish my Windows .NET 3.5 application using ClickOnce.

我希望我的应用程序既可以脱机也可以在线工作,所以我想要在安装中包含先决条件,而不要让客户端通过Internet下载它们。

I want my application to work offline as well as online, so I want to include the prerequisites in the installation and not make the client download them via the internet.

我的先决条件是:

  • .NET Framework Client Profile
  • SQL Server Compact 3.5

我已经下载了.NET Framework客户端配置文件脱机安装程序。我安装了它,并将 DotNetFx35Client.exe 放在以下位置:

I have downloaded the .NET Framework Client Profile Offline Installer. I installed it and put the DotNetFx35Client.exe in this location:

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFx35Client

在项目-发行选项卡下,我已选中从以下位置下载必备软件并输入
MachineName ine Program Files \Microsoft SDKs\Windows\v6.0A \引导程序包\DotNetFx35Client

Under the Project - Publish Tab, I have checked the "Download prerequisites from the following location" and entered \MachineName\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFx35Client

跟随
https://stackoverflow.com/questions/1046370?tab=oldest#tab-top

我仍然是错误:


必备组件的安装位置尚未设置为组件供应商的网站文件Dotnetfx35client\Dotnetfx35clientSteup.exe。在项目.NET Framework中,客户端配置文件不能位于磁盘上。

The install location for prerequisites has not been set to 'component vendor's website' file, Dotnetfx35client\Dotnetfx35clientSteup.exe'. In item .NET framework client profile can not be located on disk.


推荐答案

首先,只需仅供参考,您可以通过包含dll而不是重新分发来部署SQLCompact Edition。这是博客

First, just FYI, you can deploy the SQLCompact Edition by including the dll's rather than deploying the redistributable. Here's a blog article about how to do that.

至于.NET Framework客户端配置文件,我不知道。我会使用Bootstrapper清单生成器为可重新分发的软件包打包新的软件包,并将其包含在部署中。

As for the .NET Framework Client Profile, I have no idea. I would have rolled a new package for the redistributable using the Bootstrapper Manifest Generator and included it with the deployment.

您应该了解.NET 3.5客户端配置文件的一件事-如果您的客户在计算机上具有任何版本的.NET,将安装整个.NET 3.5 SP-1。实际上,只有在客户在计算机上安装.NET版本时,它才安装客户端配置文件。他们在.NET 4.0中进行了更改,并且客户端配置文件也较小,因此,如果可以迁移,则可能需要考虑使用。

One thing you should know about the .NET 3.5 Client Profile -- if your customer has any version of .NET on the machine, it will install the whole .NET 3.5 SP-1. It actually only installs the Client Profile if the customer has no version of .NET on the machine. THey changed this in .NET 4.0, and the Client Profile is smaller too, so if you can migrate, you might want to consider it. It RTMs on Monday.

RobinDotNet

RobinDotNet

这篇关于ClickOnce + .NET客户端配置文件框架+ SQL Server Compact +脱机安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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