This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Custom Action DLL in the Binary Table
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 10, 2011
01:27 PM
Custom Action DLL in the Binary Table
Folks,
This is more of a general MSI rather than an InstallShield question.
I have 2 dlls, one of which accesses a method in the other. Together, they exist to implement a Custom Action. I'd like the Custom Action to be run Immediate Mode, and fire very early in the InstallUISequence, in order to implement something like a LaunchCondition, which means the files in the package have not yet been installed.
I have implemented DLL CAs using DLLs streamed in the Binary Table, to do this sort of thing. Now if my wishes all come true, I'd like to have one such dll call another. I've never even heard of any such thing - it it even possible?
Thanks,
ScottM
This is more of a general MSI rather than an InstallShield question.
I have 2 dlls, one of which accesses a method in the other. Together, they exist to implement a Custom Action. I'd like the Custom Action to be run Immediate Mode, and fire very early in the InstallUISequence, in order to implement something like a LaunchCondition, which means the files in the package have not yet been installed.
I have implemented DLL CAs using DLLs streamed in the Binary Table, to do this sort of thing. Now if my wishes all come true, I'd like to have one such dll call another. I've never even heard of any such thing - it it even possible?
Thanks,
ScottM
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 11, 2011
05:02 PM
When Windows Installer extracts the .dll from the Binary table, it uses a temporary file name, so it is impossible to find another .dll even if it has already been extracted. When your entry point is an executable, we suggest using Support files, and then write your custom actions to reference [SUPPORTDIR]\your.exe, but I'm not sure how best to handle the .dll case; perhaps place the dependency .dlls in SUPPORTDIR and reference them from a helper .dll in the binary table?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 18, 2011
10:14 AM
stream both DLLs from the binary table and then you can do whatever you want with it