使用Installshield部署.NET Framework 4.5 [英] Deploying .NET Framework 4.5 with Installshield

查看:303
本文介绍了使用Installshield部署.NET Framework 4.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了通过Clickonce进行部署的应用程序,但是我想通过Installshield进行部署,所以我正在试验它。我发现并下载了dotnetfx45_full_x86_x64.exe,这是.NET Framework 4.5的可再发行版,并从中提供了Installshield的前提条件。我写了一个简单的应用程序,它有一个RDLC报告,只是说Hello World,它需要.NET Framework 4.5,并使用Installshield进行部署。 ReportViewer需要Microsoft SQLClrTypes_x86.msi和SQLClrTypes_x64.msi和ReportViewer.msi,所以我得到了这些并从中提供了Installshield的先决条件。对于ReportViewer.prq,我指定了SQLClrTypes_x86.prq和SQLClrTypes_x64.prq作为依赖关系,对于SQLClrTypes_x86.prq和SQLClrTypes_x64.prq,我指定了dotnetfx45_full_x86_x64.prq作为依赖。



当我在我的测试计算机上安装我的小应用程序(运行Windows 7)时,它安装了4.5框架,表示需要重新启动,并询问是否要立即重启,然后单击是。我以为会重新启动并继续安装,但是当它重新启动时,就是安装的结束。我再次运行安装程序,它询问是否要安装4.5框架(它也是第一次询问我),所以我点击了否。点击No后,它安装了我的程序的其余部分,它运行得很好。 p>

如何从安装.NET Framework 4.5重新启动后继续安装?



谢谢


解决方案

这是我9年前写的一个博客:



使用InstallShield 12安装.NET Framework 3.0



它没有太大变化。您想使用prereq编辑器将重启行为更改为请注意,如果机器重新启动,则无法恢复,并在安装后重新启动



另外请注意,InstallShield会从ISProductFolder(C:\Program Files(x86)\InstallShield ....)中使用它的PRQ文件。)我从CM角度来看并不在意。我建议根据ISProjectFolder将文件和文件引用隔离到相对路径,并将所有这些文件保存在源代码控制工具中。



行为标签


I have written an application that I deploy via Clickonce, but I want to deploy it via Installshield, so I am experimenting with it. I found and downloaded dotnetfx45_full_x86_x64.exe, the redistributable for .NET Framework 4.5, and made a Installshield prerequisite from it. I wrote a simple application that has a RDLC report that just says "Hello World", and it needs .NET Framework 4.5, and used Installshield to deploy it. The Reportviewer needs Microsoft SQLClrTypes_x86.msi and SQLClrTypes_x64.msi, and ReportViewer.msi, so I got those and made Installshield prerequisites from them. For the ReportViewer.prq, I specified SQLClrTypes_x86.prq and SQLClrTypes_x64.prq, as dependencies, and for SQLClrTypes_x86.prq and SQLClrTypes_x64.prq I specified dotnetfx45_full_x86_x64.prq as a dependency.

When I installed my little application on my test computer (running Windows 7), it installed the 4.5 framework, said it needed to reboot, and asked if I wanted to reboot now, and I clicked Yes. I was thinking it would reboot and continue the installation, but when it rebooted, that was the end of the installation. I ran setup again, it asked if I wanted to install the 4.5 Framework (it asked me the first time, too), so I clicked No. After clicking No, it installed the rest of my program, and it ran perfectly.

How can I get the installation to continue after it reboots from installing the .NET Framework 4.5?

Thanks

解决方案

Here's a blog I wrote about 9 years ago:

Using InstallShield 12 to Install .NET Framework 3.0

It hasn't changed much. You want to use the prereq editor to change the reboot behavior to Note it, fail to resume if the machine is rebooted, and reboot after the installation.

Also please note that InstallShield consumes it's PRQ files from the ISProductFolder (C:\Program Files (x86)\InstallShield.... ) I don't care for this from a CM perspective. I recommend isolating the file and file references to relative paths based on ISProjectFolder and keeping all of these files in your source control tool.

Behavior Tab

这篇关于使用Installshield部署.NET Framework 4.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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