Solved

Replace a window service DLL

Posted on 2006-06-23
2
207 Views
Last Modified: 2008-02-01
I have a window service application (written with VB.NET) installed on our client machine. How to replace the DLL after fixing a bug?
0
Comment
Question by:dshi15
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Author Comment

by:dshi15
ID: 16971561
I want replace .exe, not .dll
0
 
LVL 23

Accepted Solution

by:
Jens Fiederer earned 125 total points
ID: 16971687
If it is installed already, you only need to copy the dll or exe.  You need to shutdown your service before doing this, and then start it up again.

For example, in my c:\program files\PEEPS-service I have:
IBM.Data.Informix.dll
Local.dll
Remotable.dll
Wegmans.Framework.Core.dll
Wegmans.Framework.Data.dll
Wegmans.WBS.Components.dll
Wegmans.WBS.Data.dll
Wegmans.WBS.Services.dll
app.config
libVbPeeps.dll
svcPEEPS.exe
svcPEEPS.exe.config
svcpeeps.InstallState

to update, I just do:
net stop "PEEPS Service"
cp -vf C:/Inetpub/wwwroot/slnPEEPS/svcPeeps/bin/*.{dll,exe} "c:/program files/PEEPS Service"
net start "PEEPS Service"

(note that the "cp" command is part of the Cygwin utilities, but a regular copy would be fine.)



0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question