如何使创新安装不看冻在执行长Exec的? [英] How do you make Inno Setup not look frozen while performing a long Exec?

查看:131
本文介绍了如何使创新安装不看冻在执行长Exec的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

长Exec的是安装.NET 3.5,进出的脚本是基于关闭这一个: 的http://www.blackhillsoftware.com/blog/2006/06/26/using-innosetup-with-the-dotnet-framework/

The long Exec is installing .NET 3.5, and out script is based off this one: http://www.blackhillsoftware.com/blog/2006/06/26/using-innosetup-with-the-dotnet-framework/

问题是,它使用ewWaitUntilTerminated,因为我们需要捕获退出code。我们正在运行它/​​被动/ norestart更新日志文件,以便它在用户的一部分(也许我们不应该?)

The problem is that it's using "ewWaitUntilTerminated" because we need to capture the exit code. It's made a little worse by the fact that we're running it /passive /norestart so that it's less work on the user's part (Maybe we shouldn't?)

我能想到的最简单的方法是隐藏窗口,而它的安装.NET,并再次显示它它完成后,但我不知道该怎么做。

The easiest option I could think of is to hide the window while it's installing .NET and showing it again after it's done, but I'm not sure how to do that.

理想的解决办法是显示一个进度页,但它似乎并不像它会是可能的,因为我们可能需要立即返回,但不知何故仍然被通知当进程退出并获取退出code否则我们只希望有一个永恒的进度条。

The ideal solution would be to show a progress page, but it doesn't seem like it'd be possible since we'd need to return right away but somehow still be notified when the process exits and capture the exit code otherwise we'd just have an eternal progress bar.

在如何去任何想法?

编辑:最小化可能会更好,但不知道怎么做,要么。我们显示一个消息,通知该过程可能需要10-20分钟的用户,但问题是,在主安装形式是完全冻结,不能移动,最小化或用它做任何事情。同时运行/被动的.NET安装程序实际上并没有表现出一个较慢的机器上的一个很好的两分钟,没有任何进展。

Minimizing would probably be better, but not sure how to do that either. We do display a message informing the user that the process may take 10-20 minutes, however the problem is that the main setup form is completely frozen, can't move, minimize or do anything with it. Also running /passive the .NET installer doesn't actually show any progress for a good minute or two on a slower machine.

推荐答案

要安装.NET与一对夫妇的产品我们需要的,并采取了两种方法:

We've needed to install .NET with a couple products, and have taken two approaches:

  • 当用InnoSetup安装.NET,我们让用户知道安装将花费很长的时间,并期待某个消息时,它是完整的
  • 我们开始.NET建立不带任何标志,通过它来强制客户端。这样,如果他们在技术上更倾向于他们知道为什么安装时要花这么长时间

我们已经说实话有更好的运气了第二个选项,尤其是现在,更多的系统管理员似乎锁定桌面到一定程度。

We've honestly had better luck with the 2nd option, particularly now that more system admins seem to lock down desktops to a certain degree.

这篇关于如何使创新安装不看冻在执行长Exec的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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