Clickonce-使用离线安装程序在DVD上部署 [英] Clickonce - Deploy on DVD, with offline installer

查看:99
本文介绍了Clickonce-使用离线安装程序在DVD上部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS 2010,并且在clickonce部署时遇到了麻烦。

i am using VS 2010 and i am having trouble with clickonce deployment.

我的目标是为没有Internet连接的用户分发DVD上的应用程序,以便能够安装它。因此,它需要包括.NET Framework 3.5客户端配置文件的完整安装程序。

My goal is to Distribute application on DVD for users without internet connection to be able to install it. So it needs to include full installer of .NET framework 3.5 Client profile.

但是,我无法实现这一目标。

However, i am unable to achieve this.

在VS 2010中,我选择发布向导:

From VS 2010 i choose publish wizard:


  1. 指定发布此应用程序的位置:
    C: \ \ \--这个文件夹我以后会刻录到CD

  1. Specify location to publish this applicaton: C:\ something\ something - this folder i will burn later to CD

用户将如何安装应用程序?
从CD {DVD

How will users install application? From CD{DVD

应用程序将从以下位置检查更新:
http://13874.w74.wedos.net/

the application will check for updates from following location: http://13874.w74.wedos.net/

就是这样,发布向导到此结束。
因此,我创建了一些附加选项:
选项->部署
-为CD启用自动运行
-禁用publish.htm页面的创建

And that is it, Publish wizard ends here. So i create some aditional options: Options->deployment -Enable autorun for CDs -Disable creation of publish.htm page

如果我发布应用程序,则它将部署到磁盘上的指定文件夹,并可以从那里安装。

If i publish app, it is deployed to specified folder on my disk and can be installed from there.

但是我如何包括脱机版本的.net Framework安装程序(我的目标是.NET Framework 3.5)?

But how do i include offline version of .net framework installer (I am Targeting .NET Framework 3.5)?

谢谢。

推荐答案

我设法找到了部分问题的解决方案-如何包括.NET Framework的脱机安装程序3.5。但是,我的问题的第二部分-如何管理更新仍未得到解决。

I managed to found solution for part of my question - how to include offline installer for .NET Framework 3.5. However, second part of my question - how to manage updates remains unanswered.

如何在3.5中包括.NET Framework脱机安装程序:

How to include .NET Framework offline installer for 3.5:


  1. 在前提条件(属性->发布->前提条件)下,请确保已检查.Net framework 3.5 SP1

  1. Under prerequisites (Properties->Publish->Prerequisites) make sure you have .Net framework 3.5 SP1 checked

在先决条件对话框的下部选中单选按钮从与我的应用程序相同的位置下载。

Check radiobutton "Download from same location as my application" in lower part of prerequisities dialog.

在此处下载.NET 3.5的完整可重新分发文件 http://go.microsoft.com/fwlink?LinkID=118080

Download .NET 3.5 full redistributable here http://go.microsoft.com/fwlink?LinkID=118080

这是主要部分。仅在与您的应用程序相同的位置上重新分发.net是不够的,还有很多事情要做。

Here comes the main part. It is not enough to just have .net redistributable on same location as your app, there is slightly more to do.


  1. 解压安装程序的内容从命令行(命令- dotNetFx35.exe / x)

  2. 通过显示的对话框选择要解压缩的目录。

  3. 复制目录子目录WCU→dotNetFramework到
    a)x86系统:%Program Files%\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFx35SP1
    b)x64系统:%ProgramFiles( x86)%\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFx35SP1

  1. Unpack contents of installer from command line (command - "dotNetFx35.exe /x")
  2. Choose directory to unpack via dialog shown.
  3. Copy CONTENTS of subdirectory WCU\dotNetFramework to a)x86 systems: %Program Files%\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFx35SP1 b)x64 systems: %ProgramFiles(x86)%\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFx35SP1

在相同位置应该有xml文件prduct.xml,如下编辑:
A)将以下内容粘贴到< PackageFiles>元素:

In the same locations there should be xml file prduct.xml, edit it as folows: A) Paste the following into the < PackageFiles > element:



B)找到<的元素。 PackageFile Name = dotNetFX30\XPSEPSC-x86-zh-CN.exe,并将PublicKey值更改为:

B) Find the element for < PackageFile Name="dotNetFX30\XPSEPSC-x86-en-US.exe" and change the PublicKey value to: 3082010A0282010100A2DB0A8DCFC2C1499BCDAA3A34AD23596BDB6CBE2122B794C8EAAEBFC6D526C232118BBCDA5D2CFB36561E152BAE8F0DDD14A36E284C7F163F41AC8D40B146880DD98194AD9706D05744765CEAF1FC0EE27F74A333CB74E5EFE361A17E03B745FFD53E12D5B0CA5E0DD07BF2B7130DFC606A2885758CB7ADBC85E817B490BEF516B6625DED11DF3AEE215B8BAF8073C345E3958977609BE7AD77C1378D33142F13DB62C9AE1AA94F9867ADD420393071E08D6746E2C61CF40D5074412FE805246A216B49B092C4B239C742A56D5C184AAB8FD78E833E780A47D8A4B28423C3E2F27B66B14A74BD26414B9C6114604E30C882F3D00B707CEE554D77D2085576810203010001

C)找到<的元素PackageFile Name = dotNetFX30\XPSEPSC-amd64-en-US.exe,并将PublicKey值更改为与
上方的步骤相同。保存product.xml文件

C) Find the element for < PackageFile Name="dotNetFX30\XPSEPSC-amd64-en-US.exe" and change the PublicKey value to the same as in step above Save the product.xml file

就是这样。在此之前,当您尝试从Visual Studio中发布它时,会引发错误,无法找到.net 3.5框架的可变部分。现在它应该可以正常工作。

Thats it. Before that, when you attemp to publish it from visual studio it throws errors that it is unable to find variaus parts of .net 3.5 framework. Now it should work fine.

更多信息,请访问:
http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B66- 9B31-9205C3F22252 / VS2008SP1Readme.htm#General%20问题
第2.3.1.1节。 -为.NET Framework 3.5 SP1引导程序包启用Samesite

More information at: http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B66-9B31-9205C3F22252/VS2008SP1Readme.htm#General%20Issues Section 2.3.1.1. - Enable Samesite for the .NET Framework 3.5 SP1 bootstrapper package

这篇关于Clickonce-使用离线安装程序在DVD上部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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