How can I call a custom action dll written in managed code (.net) from an installer without using an unmanaged intermediary?
The answer to your question depends on how your are authoring your installer.
For Visual Studio setup projects, create an installer class in one of your deployed assemblies. This is covered in the MSDN documentation, eg http://msdn.microsoft.com/en-us/library/d9k65z2d(VS.80).aspx
For Wix projects, you can use DTF to build managed custom actions which have complete access to the contents of the MSI. Wix is available at http://wix.sourceforge.net/.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With