Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有项目和服务安装程序的应用程序。除了在某些情况下通过 PSEXEC 远程安装时,安装通常工作正常。
我想知道,我可以在代码中的哪个位置拦截并检查是否已经安装了特定服务,或者根据最佳选项将其卸载或跳过当前的服务安装(但仍继续进行整体安装)。
您可以在每次安装前尝试无条件卸载它。