ClickOnce + .NET client profile framework + SQL Server Compact + offline installation

让人想犯罪 __ 提交于 2020-01-24 12:38:10

问题


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

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.

My prerequisites are:

  • .NET Framework Client Profile
  • SQL Server Compact 3.5

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

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

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

I, however, still the error:

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.


回答1:


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.

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.

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



来源:https://stackoverflow.com/questions/2604234/clickonce-net-client-profile-framework-sql-server-compact-offline-install

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!