Service already exists (when it clearly doesn't)

前端 未结 4 1633
轮回少年
轮回少年 2020-12-16 11:45

I\'m trying to create an installer for a Windows Service I developed. This installer has a custom UI at one point and it\'s the first time I do something like that so I ins

4条回答
  •  旧时难觅i
    2020-12-16 12:25

    Some time when we install windows service from setup then also problem arises like we can not uninstall. here i will discuss few steps which solve this problem to remove install application entry from Add/Remove panel and again we can install the same application.

    Open registry by Regedit and To locate the program's uninstall key, navigate to the following sub-folder:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
    

    select Uninstall icon and start find your program by name. when it will appear then just remove that entry from registry. after remove the program name will not display in Add/Remove. problem will be solved and again user can install the same application. i got this tips from this location http://eugene2k.hubpages.com/hub/How-to-force-uninstall-a-program and i tested and it worked.

    The below steps is for how to remove services when service is not starting or file missing or corrupted.

    1- Open cmd as administrator

    sc delete servicename

    2- open run > regedit , back it up first and then browse to

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services

    and delete the service key

    3- remove the folder where win service was installed

    4- reboot the machine

提交回复
热议问题