Solved

Replace a window service DLL

Posted on 2006-06-23
2
202 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now