Uninstall DSE service

To Uninstall Service

1.Open the Windows Service List.

An easy way to open this list is to open a Command Prompt and execute the command services.msc in Administrative mode

DSE_SE~1_img8

Right click DSE_Service and stop it.

Open command prompt with Administrative rights

1.Go to the following directory, so you can use the “installutill.exe”

%WinDir%\Microsoft.NET\Framework\v4.0.<current version>

Ex:

cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319

Type following command

InstallUtil.exe -u "<DSE_Service path>\DSE_Service.exe"

Once uninstallation successful you will get the following message

DSE_SE~1_img9

DSE_SE~1_img10

Once Uninstall is success full DSE_Seveice will be removed from Services.msc list.

If DSE_Service still exists in the Service list or not uninstalled properly try the following commands in command line administrative mode.

1)To stop the service -> net stop "DSE_Service" , net start "DSE_Service" will start the service again.

2)If Installation Not uninstalled properly use following command to delete the service->

sc delete "DSE_Service"

Multiple Instance- example

 

InstallUtil.exe /ServiceName=DSE_ServiceTest /DisplayName="DSE_ServiceTest" "C:\Projects\DSE\General\DseMgrVer2\DSE_Manager_Ver2_IIS\DSE_ServiceTest\DSE_Service.exe"

InstallUtil.exe -u /ServiceName=DSE_ServiceTest /DisplayName="DSE_ServiceTest"

In DSE_Service.exe.config

Change following elements:

 

1)        From

 <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" name="DSE_Service" />  

 To

 <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" name="DSE_ServiceTest" />  

 

2)        From

 <host>

   <baseAddresses>

     <add baseAddress="http://localhost:8095/DSE_Service" />

    </baseAddresses>

 </host>

 To new endpoint

  <host>

    <baseAddresses>

         <add baseAddress="http://localhost:8096/DSE_ServiceTest" />

      </baseAddresses>

         </host>

         

3) Change \DSE_Manager\Web.config

   From

    <endpoint address="http://localhost:8095/DSE_Service" binding="wsHttpBinding" bindingConfiguration="DSE_Service" contract="DseService.ILoadData" name="DSE_Service" />

    To    

    <endpoint address="http://localhost:8096/DSE_ServiceTest" binding="wsHttpBinding" bindingConfiguration="DSE_Service" contract="DseService.ILoadData" name="DSE_ServiceTest" />