Solved

Replace a window service DLL

Posted on 2006-06-23
2
201 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
Comment Utility
I want replace .exe, not .dll
0
 
LVL 23

Accepted Solution

by:
Jens Fiederer earned 125 total points
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

771 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

11 Experts available now in Live!

Get 1:1 Help Now