Deleting temporary Files delivered by installer
Hi
I have a package that needs to deliver an executable and other files locally, which a custom action then executes during installation of the installer package. I want to delete the executable and files after the custom action has finished with them, so they are not left on the local drive.
Can anyone suggest a way of doing this? I have looked at using the RemoveFiles table, but this isn't working and appears to be only used to remove files when the MSI is uninstalled.
I am using Admin Studio InstallShield 10.5 Professional.
Thanks
I have a package that needs to deliver an executable and other files locally, which a custom action then executes during installation of the installer package. I want to delete the executable and files after the custom action has finished with them, so they are not left on the local drive.
Can anyone suggest a way of doing this? I have looked at using the RemoveFiles table, but this isn't working and appears to be only used to remove files when the MSI is uninstalled.
I am using Admin Studio InstallShield 10.5 Professional.
Thanks
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
MSIPackager
18 years ago
Are the 'other files' required as part of the .exe installation?
If not then store the exe file in the binary table of the MSI then use the 'launch application from installation' custom action - that way the exe doesn't need to physically go onto the local machine. Check this post.
If the other files are required as part of the install then it's a bit more complicated.. Think you can export files out of the binary table to the local machine, you could then run a CA (e.g. using vb script) to install the app then delete the exported files at the end of the script.
Does this help?
Cheers,
Rob.
If not then store the exe file in the binary table of the MSI then use the 'launch application from installation' custom action - that way the exe doesn't need to physically go onto the local machine. Check this post.
If the other files are required as part of the install then it's a bit more complicated.. Think you can export files out of the binary table to the local machine, you could then run a CA (e.g. using vb script) to install the app then delete the exported files at the end of the script.
Does this help?
Cheers,
Rob.
Posted by:
br000301
18 years ago
Posted by:
VikingLoki
18 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.