Replace a window service DLL

I have a window service application (written with VB.NET) installed on our client machine. How to replace the DLL after fixing a bug?
LVL 1
dshi15Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Jens FiedererConnect With a Mentor Test Developer/ValidatorCommented:
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
 
dshi15Author Commented:
I want replace .exe, not .dll
0
All Courses

From novice to tech pro — start learning today.