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: Managed code - including reference to "Interop.WindowsInstaller"
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
‎Jul 02, 2008
06:49 AM
Managed code - including reference to "Interop.WindowsInstaller"
Hi all,
I'm referencing Interop.WindowsInstaller in my c# code for custom actions in order to get/set msi properties during installation .
The problem is, that during installation I get an execption telling that this file cannot be found, UNLESS I copy Interop.WindowsInstaller.dll to the system32folder in the target machine where the installation is being run.
I would like to know if anyone has encountered this issue, and if there is a solution other than installing this file in the target system.
Thanks,
Sharon.
I'm referencing Interop.WindowsInstaller in my c# code for custom actions in order to get/set msi properties during installation .
The problem is, that during installation I get an execption telling that this file cannot be found, UNLESS I copy Interop.WindowsInstaller.dll to the system32folder in the target machine where the installation is being run.
I would like to know if anyone has encountered this issue, and if there is a solution other than installing this file in the target system.
Thanks,
Sharon.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 02, 2008
10:08 AM
You're doing this as part of a new Managed Code Custom Action, right? If so, there's a solution for this doesn't have UI (we're tracking that under IOC-000073143) so here's how to do it. Go to the Direct Editor and load the ISClrWrap table. In that table, add a row with the name of your custom action, Dependency0, and the build-time path to your dependency DLL as the three columns. For example, if you were using the InstallShield.Interop.Msi.dll, you might specify (with | characters separating the columns):
[ MyManagedCA | Dependency0 |\system\InstallShield.Interop.Msi.dll ]
If you need to specify additional assemblies, add another row and increment the number to Dependency1, and so forth, being sure not to skip any numbers.
[ MyManagedCA | Dependency0 |
If you need to specify additional assemblies, add another row and increment the number to Dependency1, and so forth, being sure not to skip any numbers.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 02, 2008
11:01 AM
As an aside, as much as I appreciate the work Acresso did on Managed CA's, DTF is a better direction to go.
1) It solves the problem of tatooing the msi process with a fixed version of the CLR
2) It's linker ( MakeSfxCa ) is more flexible for including dependencies an
3) The interop is simply better
4) The hosting process has a better debugging story
5) It's open source so it's easier to see problems and get resolutions to issues
6) It's not tied to one vendors authoring tools
1) It solves the problem of tatooing the msi process with a fixed version of the CLR
2) It's linker ( MakeSfxCa ) is more flexible for including dependencies an
3) The interop is simply better
4) The hosting process has a better debugging story
5) It's open source so it's easier to see problems and get resolutions to issues
6) It's not tied to one vendors authoring tools
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 07, 2008
05:02 AM
I tried to add reference in the IsClrWrap table to the required dll on the build machine as offered. Since I was trying to install on the same machine where the build took place, (just for the testing stage), I removed the dll from the system32 folder in order to see if the installation can be run now without the dll in this location. Installation failed to load this dll again. I would like to know your opinions regarding this scenario.
In addition, I would like to get some links on DTF, If possible.
In addition, I would like to get some links on DTF, If possible.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 07, 2008
10:44 AM
Google for "WiX DTF"
http://www.installsite.org/pages/en/msifaq/a/1044.htm
http://blogs.msdn.com/jasongin/default.aspx <- Jason wrote DTF
You can also search my blog for "DTF" and get 7 articles that reference it including some code snippets.
http://www.installsite.org/pages/en/msifaq/a/1044.htm
http://blogs.msdn.com/jasongin/default.aspx <- Jason wrote DTF
You can also search my blog for "DTF" and get 7 articles that reference it including some code snippets.
![](/skins/images/7DF1852B2C95702E61A73F170B191DAC/responsive_peak/images/icon_anonymous_message.png)