当我在我的测试计算机上安装我的小应用程序(运行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
发布评论