Custom dll command in managed code

How can I call a custom action DLL written in managed code (.net) from the installer without using an unmanaged intermediary?

+3
source share
4 answers

The answer to your question depends on how you create your installer.

For Visual Studio installation projects, create an installer class in one of the deployed assemblies. This is described in the MSDN documentation, for example http://msdn.microsoft.com/en-us/library/d9k65z2d(VS.80).aspx

For Wix projects, you can use DTF to create managed custom actions that have full access to MSI content. Wix is ​​available at http://wix.sourceforge.net/ .

+4

.NET/Windows Installer

, VS.NET. - " - ". intaller. System.Configuration.Install.Installer. , Install(). , Windows .

​​ Windows . , .NET, , .

, .

+1

, , , ++/CLI , / :

++: .NET Framework

, "" ++/CLI, #/. NET/ , , : ++/CLI, - DLL ( ). , ++/CLI.

0

. , ?

Blockquote

, , , , ++/CLI , / : ++: .NET Framework , "" ++/CLI, #/. NET/ , , : ++/CLI, - DLL ( ). , ++/CLI.

Blockquote

I am stuck in a problem with this problem right now. I have a project that works in the standard mcc VC, but I'm trying to take it to the C ++ / cli world. My main problem I am facing is that I cannot load the interface in a call to CoCreateInstance ().

0
source

Source: https://habr.com/ru/post/1696594/


All Articles