在发布欢迎对话框之前需要大量文件的 WIX msi [英] WIX msi with large number of files takes before welcome dialog is published

查看:10
本文介绍了在发布欢迎对话框之前需要大量文件的 WIX msi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个使用 Wix 3.10 开发的 MSI,它包含与一项特定功能相关的大约 33,200 个组件.

We have an MSI developed using Wix 3.10, it contains around 33,200 components associated with one particular feature.

问题是当 MSI 启动时,欢迎对话框需要很长时间才能启用,在开发环境中大约需要 3-4 分钟.当取消选择特定功能并重新选择使用时,也会出现同样的问题.

The issue is that when the MSI is launched, the welcome dialog takes a long time to be enabled, roughly around 3-4 minutes on the development environment. The same issue occurs when the particular feature is deselected and selected back for usage.

我怀疑延迟似乎是由于标准自定义操作(例如 CostInitialise、FileCost 和 CostFinalise)造成的.

I suspect the delay seems to be due to standard Custom action such as CostInitialise, FileCost, and CostFinalise.

此行为会妨碍用户界面体验.是否有解决此问题的解决方法.

This behavior hampers the UI experience. Is there a workaround to fix this issue.

推荐答案

Paraffin:早期版本的Paraffin 工具可用于生成具有多个文件的组件.不推荐,但是可能的:生成 WIX 创作文件以包含多个文件在单个组件下.

Paraffin: The tool Paraffin in an earlier edition can be used to generate components with multiple files. Not recommended, but possible: Generate WIX authoring files to contain multiple files under a single component.

<小时>

MSIFASTINSTALL:也许尝试设置属性 MSIFASTINSTALL 到属性表中的 3.这是为了限制成本并避免创建系统还原点.这可以大大加快速度.希望.


MSIFASTINSTALL: Maybe try to set the property MSIFASTINSTALL to 3 in the property table. This is to limit costing and avoid creating a system restore point. This can speed things up quite a bit. Hopefully.

最大包大小:MSI 文件有许多大小限制.我不确定您是否启用了大型 MSI 包所需的架构更改?在 installsite.org 上查看此主题:大型 MSI 软件包的限制是什么?

Max Package Size: There are a number of size limtations for an MSI file. I am not sure if you have enabled the schema changes required for large MSI packages? See this topic on installsite.org: What are the limits for a large MSI package?

Microsoft Doc:创建大包(您可能需要更改架构).

Microsoft Doc: Authoring a Large Package (the schema changes you might need).

整合:将结合此处评论中的一些建议:

Consolidation: Going to incorporate some of the suggestions from the comments here:

  • 日志文件:创建一个合适的日志文件以获取更多调试材料:msiexec.exe/i C:\Path\Your.msi MSIFASTINSTALL=3/L*v C:\Your.log - 有关从 installsite.org 登录的更多信息
  • 管理员安装:在执行管理员安装后尝试运行安装.这将避免可能很长的 CAB 提取:msiexec.exe/a MySetup.msi TARGETDIR=C:\MySetup(另请参阅下面的安全软件干扰).
  • 对话框设置:为了排除这种情况,如果您使用 WiX,请尝试使用 不同的设置 GUI.
  • 安全软件:一定要在测试安装期间尝试禁用您的安全软件,以查看防病毒或反恶意软件是否会杀死 CAB 提取或阻止自定义操作或整体上比平时更慢.
  • 自定义操作:查看任何自定义操作,并可能禁用它们以进行测试运行.只是为了缩小.不是最有可能的候选者,但我已经看到它发生了 - 通常与安全软件干扰相结合.
  • 重组&分解:以及我们经常遇到的一劳永逸的选择:将设置拆分为不同的部分,以便更快地安装每个设置.您可以使用 WiX 的 Burn bootstrapper/sequencer/downloader/chainer 依次安装多个 MSI 文件.
  • 在本地运行:仅作说明,如果您运行网络共享,请复制本地设置并重试.
  • Log File: Get a proper log file created just to have more debugging material: msiexec.exe /i C:\Path\Your.msi MSIFASTINSTALL=3 /L*v C:\Your.log - more on logging from installsite.org
  • Admin Install: Try running the installation after performing an admin install. This will avoid CAB-extraction which can be lengthy: msiexec.exe /a MySetup.msi TARGETDIR=C:\MySetup (also see security software interference below).
  • Dialog Set: Just to rule it out, if you use WiX try to compile your setup with a different setup GUI.
  • Security Software: Definitely try to disable your security software during a test install to see if the anti-virus or anti-malware software kills the CAB extract or blocks a custom action or slows things down overall more than usual.
  • Custom Actions: Review any custom actions and perhaps disable them for a test run. Just to narrow down. Not the most likely candidate, but I have seen it happen - typically in combination with security software interference.
  • Regroup & Decompose: And the bite-the-bullet option that we often end up with: split the setup in different parts to get a faster installation per-setup. You can use WiX's Burn bootstrapper / sequencer / downloader / chainer to install several MSI files in sequence.
  • Run Locally: Just for the record, if you run off a network share, copy the setup local and try again.

WiX Burn 选项还允许您编写自己的外部设置 GUI.我不确定这对安装速度有何帮助.您不会显示自己的设置自己的缓慢对话框,但成本计算仍会运行.In 只会在设置以静默模式运行时发生(很可能).

The WiX Burn option also allows you to write your own, external setup GUI. I am not sure how that would help with the installation speed. You would not show your setup's own, slow dialogs, but costing would still run. In would just happen whilst the setup is being run in silent mode (most likely).

一些链接:

这篇关于在发布欢迎对话框之前需要大量文件的 WIX msi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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