
[英]c# AssemblyInstaller service install blocking access to dll file
[英]Is it possible to install a windows service(EXE) written in C++(using CreateService WINAPI) by calling assemblyInstaller.Install from a C# code?
是否可以通过调用C#代码安装assemblyInstaller.Install来安装用C ++编写的Windows服务(使用CreateService WINAPI)。 这是我正在谈论的Assembly Installer类-http: //msdn.microsoft.com/zh-cn/library/system.configuration.install.assemblyinstaller.install.aspx
我很确定,答案是否定的。 AssemblyInstaller将尝试使用程序集的元数据。
您为什么要混合使用两种不同的平台? 如果您能够使用C ++和Win32 API编写服务,则应该可以创建一些注册表项来安装它,不是吗? 在这种情况下,仅使用AssemblyInstaller.Install是不值得的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.