dmh_nrltd
Posts: 20
Joined: Mon Dec 12, 2005 5:35 pm

Using Multi File Custom Actions

Hi,

Can anyone please explain how to make use of the new Multi File Custom Action feature in v4.3? From the web feature list ...
Multi-file Custom Actions
Provide resources in separate files. Call regular,
third-party multi-file programs as custom actions.
In our install, we have to run a utility to check whether the install can proceed on the user's pc - i.e. before files are installed. The utility is comprised of an EXE and some DLLs. We would ideally like to run this utility as an attached custom action. Is this possible and if so, how?

Many thanks in advance for any help!

David.
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi David,

The Temporary Files are added in the Files and Folders page using the "Add temporary files" context-menu item. It is recommended that you add them to the "Windows Volume -> Temporary" folder.

Double-clicking on a temp file will bring up the Properties dialog, which allows setting the Property attached to a temp file (which will hold its full extraction path) and the attached Condition (which controls the extraction or removal of the temp file).

The temp files will be extracted from a custom table of the MSI database at install time (after the costing actions) and deleted at the end of the installation, provided that the Condition is empty or evaluates to TRUE.

At install time, simply use the Property attached to a temp file in a Custom Action. In your case, you would use an "EXE with Working Dir" CA that will launch the temp EXE file.

Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”