在Installshield 2010中的InstallFinalize之后如何运行RemoveFiles? [英] how to run RemoveFiles after InstallFinalize in Installshield 2010?

查看:585
本文介绍了在Installshield 2010中的InstallFinalize之后如何运行RemoveFiles?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用基本的MSI项目Installshield2010.

在InstallFinalize之后,是否可以使用RemoveFiles操作从RemoveFile表中删除文件?

我的安装程序组件中包含一些文件.我使用这些文件配置其他文件,并在InstallFinalize之后删除它们.

我读到有关RemoveFiles动作的信息,并且注意到该动作在InstallFiles之前运行.

是否可以更改该设置或撤消该操作?怎么样?

I use Installshield 2010, a Basic MSI Project.

Is there a way to use RemoveFiles action to remove files from RemoveFile table after InstallFinalize?

I have some files included in installer''s components. I use those files to configure other files and after InstallFinalize I want to remove them.

I read about RemoveFiles action and I have noticed that the action is running before InstallFiles.

Is possible to change that or recall the action? How?

Thanks for your time!

推荐答案

RemoveFiles操作在InstallFinalize之后无法移动.

有两种可能的解决方案可以解决此问题:

1)创建自定义操作以执行清理

2)创建仅在安装程序执行期间需要的临时文件.它们的位置在支持文件"视图中,而不在组件"视图中.保存该文件的目录是临时目录,并保存在[SUPPORTDIR]属性中.
RemoveFiles action cannot be moved after InstallFinalize.

There are two posible solutions to solve this problem:

1) create a custom action to perform the cleanup

2) create temporary files that are only needed during the execution of the installer. Their place are in Support Files view, not in Components view. The directory where are saved this files is a temporary one and is saved in [SUPPORTDIR] property.


这篇关于在Installshield 2010中的InstallFinalize之后如何运行RemoveFiles?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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