Temporary files and custom actions - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Temporary files and custom actions

Hi,

I finally found some time to continue my tests with temporary files and custom actions. At the moment everything seems to work, but there is something that is a little bit unclear for me.
In my project, I added my files once as regular files, and then I added them again as temporary files. This is working fine, the temporary files are extracted into the temp-folder, my custom actions run, and at the end the temporary files do get removed. However, doing it this way, my MSI package is twice the size as without temporary files. This seems to be caused by the fact that I add each file twice (regular and temporary), but if I add my files only as temporary files I cannot choose them for custom actions.

Am I doing something wrong? Thanks for the help!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Temporary Files are not available for "Installed Custom Action" type of CA. To launch a temporary file you can use "Add Predefined Custom Action->Launch file or open URL" or "Exe with working dir" types of custom actions.

Use "Launch file or open URL" if you need to specify a command line for the temporary file.

Note that for "Launch file or open URL" type of CA you need to enclose the path of the temp file in quotes. For example: "[&file.exe]".

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”