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!

有帮助吗?

解决方案

If you have temporary files that are only needed during the execution of the installer put them in the Support Files view not components view.

InstallShield has a table ( ISSetupFile ) and related custom actions that will extract these files to a temp directory and assign it to the [SUPPORTDIR] property. It will clean this up for you at the end of the install also.

That way you won't be fighting against MSI trying to get it to install and uninstall something during the install.

其他提示

No you cannot move the RemoveFiles action after InstallFinalize. As the MSDN documentation states, it must be scheduled before the InstallFiles action.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa371199(v=vs.85).aspx

I would recommend using a custom action to perform the cleanup.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top