简体   繁体   中英

Service + Service installer

I am putting together a simple poller service for one of our web applications, however I would like to be able to update the service by simply swapping the DLL over.

I add the dll as a depencancy and it all works nicely the code can see it in VS and it compiles and the installer compiles and it installs and runs, however when I exclude the depended on dll in the installer it will still compile then it fails to start and complains that it can't find a file that it needs even though it is in the right place and has rights to access it.

Is this acheivable (I'm pretty sure that it is)

thanks in advance.

I found it works a load better with the dll in the same folder as the service is installed in not in the windows folder (used procmon to find the errors when the service was starting up).

Could have also put the dll in the GAC (but I prefer it when I have 100% control over the file).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM