![](/img/trans.png)
[英]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.