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
- :
- Re: deploying InstallShield.Interop.Msi.dll for use by managed assembly custom action
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
‎Mar 08, 2012
03:41 PM
deploying InstallShield.Interop.Msi.dll for use by managed assembly custom action
I am trying to use InstallShield.Interop.Msi.dll from a .Net custom action. I am deploying the assembly within a property table. However whatever I do I get an error:
System.IO.FileNotFoundException: Could not load file or assembly 'InstallShield.Interop.Msi, Version=17.0.0.714,....
I tried to deploy the file as a regular component, as a support file and also add it to the Binary MSI table, but non of that worked.
Any ideas how to deploy the assembly so that it is accessible during installation?
System.IO.FileNotFoundException: Could not load file or assembly 'InstallShield.Interop.Msi, Version=17.0.0.714,....
I tried to deploy the file as a regular component, as a support file and also add it to the Binary MSI table, but non of that worked.
Any ideas how to deploy the assembly so that it is accessible during installation?
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 08, 2012
06:18 PM
Google WiX DTF Custom Actions. It's Free Open Source that has a C# Custom Action project type for Visual Studio and can easily be consumed by an InstallShield project. ( C++ MSI type ). It automatically handles packaging your dependencies including MSI interop for you.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 08, 2012
11:41 PM
Thanks for the suggestion, but I am still looking at how to use InstallShield interop with InstallShield.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 09, 2012
05:53 AM
You might want to look into that suggestion a little before dismissing it out of hand. FWIW I've been writing installers for 16 years and have a bit of experience to draw on when trying to help people with their problems.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 09, 2012
02:14 PM
I tried the CustomActions from the Wix toolkit, however when I try to declare the CA in InstallShield I get an error that the assembly Microsoft.Deployment.Windows.Installer cannot be loaded.
Not sure if they are even compatible considering that the default param on CA in IS is handle and in the Wix CA is session.
Not sure if they are even compatible considering that the default param on CA in IS is handle and in the Wix CA is session.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 09, 2012
02:34 PM
I was not calling this correctly. I tried to add the CA as a managed assembly, but it looks like the tools package all in a MSI DLL. Thanks for the tip, much appreciated!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 09, 2012
02:49 PM
Glad to hear it's working. My first article on DTF can be found at:
http://blog.deploymentengineering.com/2008/05/deployment-tools-foundation-dtf-custom.html
Others include:
http://blog.deploymentengineering.com/2008/07/reasons-dtf-is-better.html
http://blog.deploymentengineering.com/2008/05/data-driven-cas-made-easy-with-dtf.html
http://blog.deploymentengineering.com/2009/02/msi-tip-authoring-ice-using-c-dtf.html
There's some other content but this one gives you the basics of how the managed assembly gets encapsulated as an unmanaged ( MSI Type 1 CA ) dll that MSI and InstallShield can understand.
http://blog.deploymentengineering.com/2008/05/deployment-tools-foundation-dtf-custom.html
Others include:
http://blog.deploymentengineering.com/2008/07/reasons-dtf-is-better.html
http://blog.deploymentengineering.com/2008/05/data-driven-cas-made-easy-with-dtf.html
http://blog.deploymentengineering.com/2009/02/msi-tip-authoring-ice-using-c-dtf.html
There's some other content but this one gives you the basics of how the managed assembly gets encapsulated as an unmanaged ( MSI Type 1 CA ) dll that MSI and InstallShield can understand.