CopyFiles为时已晚 [英] CopyFiles too late

查看:101
本文介绍了CopyFiles为时已晚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在单击我的MSI后立即复制文件.我目前正在使用CopyFiles函数,但执行速度不够快.我需要我自己的自定义动作还是有办法在显示任何UI之前将其移动?

I need to copy files as soon as my MSI is clicked. I'm using CopyFiles function at the minute but it is not doing it quickly enough. Do I need my own custom action or is there a way to move it before any UI is shown?

谢谢

推荐答案

我认为需求定义和设计不当.这是您应该做什么的示例:

I think the requirement has been poorly defined and designed. Here's an example of what you should be doing:

我有一个客户直接(零售)和间接(通过增值经销商)销售产品.他的应用程序是可扩展的,因为他,他的VAR或他们的最终用户客户具有使用以下属性扩展/修改/覆盖MSI的要求:

I have a customer who sells a product directly (retail) and indirectly (through value added resellers). His application is extensible in that he, or his VAR's or their end user customers have requirements to be able to extend / modify / override the MSI with such attributes as:

1)UpgradeCode

1) UpgradeCode

2)产品名称

3)许可协议

4)图标

5)配置文件

6)数字证书

我的客户在C#中编写了一个向导UI,可指导用户完成所有这些工作,我编写了一个库,该库使用WiX DTF库(Microsoft.Deployment.WindowsInstaller)与MSI进行交互.结果是一个实用程序,它完全封装了将MSI转换为变体的过程.

My customer wrote a wizard UI in C# the guides the user through all this and I wrote a library that interacts with MSI using the WiX DTF library (Microsoft.Deployment.WindowsInstaller). The result is an a utility that completly encapsulates the process in which the MSI is transformed into a variation.

这就是Symantec Antivirus的工作方式.

This is how Symantec Antivirus works as well.

花费一些开发时间,您可以指导您的用户构建具有更新的ProductName和Registry表条目的MSI.生成的MSI不需要任何自定义操作,并且仍将遵循所有适用的Windows Installer最佳实践.

With some dev time, you could guide your user into building an MSI with updated ProductName and Registry table entries. The resulting MSI wouldn't need any custom actions and would still follow all applicable Windows Installer best practices.

这篇关于CopyFiles为时已晚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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