问题
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