Solved

Replace a window service DLL

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

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…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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