Clickonce - 在 DVD 上部署,带有离线安装程序
我正在使用 VS 2010,但在 clickonce 部署时遇到问题。
我的目标是在 DVD 上分发应用程序,以便没有互联网连接的用户能够安装它。因此它需要包含 .NET Framework 3.5 客户端配置文件的完整安装程序。
但是,我无法实现这一点。
从 VS 2010 中,我选择发布向导:
指定发布此应用程序的位置: C:\ Something\ Something - 这个文件夹我稍后会刻录到 CD
用户将如何安装应用程序? 从 CD{DVD
,应用程序将从以下位置检查更新: http://13874.w74.wedos.net/
就是这样,发布向导到此结束。 所以我创建了一些额外的选项: 选项->部署 -启用 CD 自动运行 - 禁用创建publish.htm页面
如果我发布应用程序,它将部署到我的磁盘上的指定文件夹,并且可以从那里安装。
但是如何包含 .net Framework 安装程序的离线版本(我的目标是 .NET Framework 3.5)?
谢谢。
i am using VS 2010 and i am having trouble with clickonce deployment.
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.
From VS 2010 i choose publish wizard:
Specify location to publish this applicaton:
C:\ something\ something - this folder i will burn later to CDHow will users install application?
From CD{DVDthe application will check for updates from following location:
http://13874.w74.wedos.net/
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.
But how do i include offline version of .net framework installer (I am Targeting .NET Framework 3.5)?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我设法找到了部分问题的解决方案 - 如何包含 .NET Framework 3.5 的离线安装程序。然而,我的问题的第二部分——如何管理更新仍然没有答案。
如何包含 3.5 的 .NET Framework 离线安装程序:
在先决条件下(属性 -> 发布 -> 先决条件)确保已选中 .Net Framework 3.5 SP1
选中单选按钮“从与我的应用程序相同的位置下载”先决条件对话框。
在此处下载 .NET 3.5 完整可再发行版 http://go.microsoft.com/fwlink?LinkID =118080
这里是主要部分。仅仅将 .net 可再分发放在与您的应用程序相同的位置是不够的,还有更多的事情要做。
将子目录 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
在相同位置应该有 xml 文件 prduct.xml,编辑如下:
A) 将以下内容粘贴到 <包文件>元素:
B) 找到 << 的元素PackageFile Name="dotNetFX30\XPSEPSC-x86-en-US.exe" 并将 PublicKey 值更改为:
C) 查找
的元素PackageFile Name="dotNetFX30\XPSEPSC-amd64-en-US.exe" 并将 PublicKey 值更改为与上述步骤相同的值
保存product.xml 文件
就是这样。在此之前,当您尝试从 Visual Studio 发布它时,它会抛出错误,指出无法找到 .net 3.5 框架的各个部分。现在应该可以正常工作了。
更多信息请访问:
http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B66-9B31-9205C3F22252/VS2008SP1Readme.htm#General%20Issues
第 2.3.1.1 节。 - 为 .NET Framework 3.5 SP1 引导程序包启用 Samesite
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.
How to include .NET Framework offline installer for 3.5:
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.
Download .NET 3.5 full redistributable here http://go.microsoft.com/fwlink?LinkID=118080
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.
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
In the same locations there should be xml file prduct.xml, edit it as folows:
A) Paste the following into the < PackageFiles > element:
B) Find the element for < PackageFile Name="dotNetFX30\XPSEPSC-x86-en-US.exe" and change the PublicKey value to:
3082010A0282010100A2DB0A8DCFC2C1499BCDAA3A34AD23596BDB6CBE2122B794C8EAAEBFC6D526C232118BBCDA5D2CFB36561E152BAE8F0DDD14A36E284C7F163F41AC8D40B146880DD98194AD9706D05744765CEAF1FC0EE27F74A333CB74E5EFE361A17E03B745FFD53E12D5B0CA5E0DD07BF2B7130DFC606A2885758CB7ADBC85E817B490BEF516B6625DED11DF3AEE215B8BAF8073C345E3958977609BE7AD77C1378D33142F13DB62C9AE1AA94F9867ADD420393071E08D6746E2C61CF40D5074412FE805246A216B49B092C4B239C742A56D5C184AAB8FD78E833E780A47D8A4B28423C3E2F27B66B14A74BD26414B9C6114604E30C882F3D00B707CEE554D77D2085576810203010001
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
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.
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