安裝項目下,右鍵視圖->自定義操做,出現安裝、提交、回滾、卸載四個文件夾,右鍵安裝,添加自定義操做,選擇安裝的服務爲輸出文件windows
右鍵安裝輸出文件->在condition->Not (Installed OR PREVIOUSVERSIONSINSTALLED),注意條件是大小寫敏感的。安裝了就不用安裝了orm
卸載條件->NOT UPGRADINGPRODUCTCODE 更新的時候不用卸載blog
下載地址:例子下載ci
其餘參考資料:http://social.msdn.microsoft.com/Forums/windows/en-US/b2d1bd22-8499-454e-9cec-1e42c03e2557/how-to-deal-with-error-1001-the-specified-service-already-exists-when-install-a-service-using?forum=winformssetupget