Really, I did not try out, starting a managed custom action deferred. It needs
the installercontext, of the current install to work, is the context still
active at that time? Sorry, I don't know.
Any hints welcome.
Oliver
From: Hao Liu [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 24. Oktober 2007 04:48
To: Mailinglist; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Using .NET 2.0 Managed Custom Actions
I read and tested the "Hosting the CLR with a custom action". It is great to
bridge between the unmanaged CA and managed CA. However, it cannot work with a
deferred CA. Right?
Any input will be appreciated.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mailinglist
Sent: Friday, April 20, 2007 4:52 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Using .NET 2.0 Managed Custom Actions
Hello WiX-users,
because we needed to use managed custom actions in our setup, I searched around
the net for a real solution to this.
I found two projects ([1],[2]), that followed quite good ideas, but both did
not work out of the box or only under special circumstances. So I combined them
both to something working.
Simply, we now use a custom action to start a C++ library, that hosts the CLR,
loads a specified assembly and calls a class that needs to implement a small
interface. From inside that class the installer context can be used to fill
properties, etc.
Since the demo code package is 3 MB, I uploaded it to Rapidshare [3] as well as
to my blog [4].
Greetings,
Oliver Friedrich
Consultant - Software Solutions
[1] "Hosting the CLR within a custom action" - Pablo M. Cibaro -
http://weblogs.asp.net/cibrax/archive/2005/04/11/399839.aspx
[2] "Wrapping the Windows Installer 2.0 API" -
http://www.codeproject.com/csharp/msiinterop.asp
[3] Rapidshare Download Link:
http://rapidshare.com/files/26953203/ManagedCustomActions.zip.html
[4] Blogentry: http://www.forestwalk.de/?p=31
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users