/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (4)

Posted by: MSIPackager 18 years ago
3rd Degree Black Belt
0
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.
Posted by: br000301 18 years ago
Yellow Belt
0
The other files are required for the exe to run. Thanks for the tip.
Posted by: VikingLoki 18 years ago
Second Degree Brown Belt
0
EXE's and supporting actions executed by a CA doesn't always have to be copied locally. How about putting the files on the MSI's install point and executing them with a CA with a relative path? (i.e. [SourceDir]ExtraEXEstuff\ExtraEXE.exe)
Posted by: MSIPackager 18 years ago
3rd Degree Black Belt
0
How about repackaging the install into a proper MSI? [:D]
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ