gpt4 book ai didi

c# - 已添加项目。安装 Windows 服务时出错

转载 作者:太空宇宙 更新时间:2023-11-03 22:08:15 24 4
gpt4 key购买 nike

我正在安装 Windows 服务。当安装程序完成安装事件中编写的代码时。它给出了以下错误。

Error 1001. Item has already been added. Key in dictionary: '_reserved_lastInstallerAttempted' Key being added: '_reserved_lastInstallerAttempted',

我已经在注册表中搜索了上述键的各种可能性,但都是徒劳的。我已经使用了 try catch 。错误既没有显示任何堆栈跟踪也没有显示源。

最佳答案

检查您的 Installer 实现 void Install(IDictionary stateServer) 重写以查看您是否调用了 base.Install(stateServer) 两次

关于c# - 已添加项目。安装 Windows 服务时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7647407/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com