Jim Beveridge
Posts: 32
Joined: Wed May 10, 2006 10:54 pm

Multiple attached files for custom action

I apologize if I'm missing something obvious, but I need to write a DLL custom action that requires six DLLs. It's straightforward to have a custom action use a single DLL that's an attached file, but I don't see a way to attach multiple files to a single custom action.

Any ideas?

Thank you.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: Multiple attached files for custom action

Hi,
It's straightforward to have a custom action use a single DLL that's an attached file, but I don't see a way to attach multiple files to a single custom action.
I'm afraid that this is not supported by Windows Installer. You can add all DLLs to your package and use a "New Installed Custom Action" to call the main DLL. Note that in this case you need to scheduled the custom action after "InstallFiles" standard action with "Deferred" as "Execution Options".

If you don't want to install the DLLs with your application then you can add those files as "Temporary Files":
http://www.advancedinstaller.com/user-g ... files.html

Best Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
Jim Beveridge
Posts: 32
Joined: Wed May 10, 2006 10:54 pm

Re: Multiple attached files for custom action

Thanks. I was able to get it to work based on your recommendations, but I was not able to create a Custom Action based on a temporary file. I had to make the Custom Action based on an attached file, then the rest of the files were temporary files.

Return to “Common Problems”