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.
既存のサービスを再インストールしようとしましたが、「エラー 1001。指定されたサービスは既に存在します」というエラーが返されます。
「sc delete servicename」を試しましたが、うまくいきません。これに関する何か入力はありますか?
CathalMF の回答に加えて、コードに以下の行を追加して、アンインストールする前にサービスを停止する必要もありました。
if (s.ServiceName == this.serviceInstaller1.ServiceName) { if(s.Status == ServiceControllerStatus.Running) s.Stop(); .... }