nonobis / topshelf.squirrel.updater Goto Github PK
View Code? Open in Web Editor NEWThis project forked from kibnet/topshelf.squirrel.windows
Integration of auto-update mechanism is Windows services out of the box.
License: Other
This project forked from kibnet/topshelf.squirrel.windows
Integration of auto-update mechanism is Windows services out of the box.
License: Other
Hi,
I have been trying to implement your script. Great Library by the way.
The issue i am having is that although squirrel is downloading the latest version of the package and placing it in the installed location it does not actually update.
If you could help it would be greatly appriciated, please let me know if you require any logs files or anything.
I have used your template sample file for this.
Regards
Tahid Miah
I'm getting this error at design time:
Type argument 'ServiceHosted' does not inherit from or implement the constraint type 'ServiceControl'
Here's my code:
oHost = New SquirreledHost(oService, Assembly.GetCallingAssembly, oSelfUpdater, True, RunAS.LocalSystem)
oHost.ConfigureAndRun(Sub(HostConfig)
HostConfig.Service(Of ServiceHosted)(Sub(s) <---- ERROR HERE
s.ConstructUsing(Function(name) New ServiceHosted())
s.WhenStarted(Function(tc) tc.Start)
s.WhenStopped(Function(tc) tc.Stop)
s.WhenPaused(Function(tc) {})
s.WhenContinued(Function(tc) {})
End Sub)
HostConfig.EnableServiceRecovery(Function(rc) rc.RestartService(1))
HostConfig.EnableSessionChanged()
HostConfig.UseNLog
HostConfig.StartAutomatically
End Sub)
Here's my ServiceHosted
class:
Public Class ServiceHosted
Implements ISelfUpdatableService
Public Sub Start() Implements ISelfUpdatableService.Start
End Sub
Public Sub [Stop]() Implements ISelfUpdatableService.Stop
End Sub
Private Shared ReadOnly Log As LogWriter = HostLogger.Get(GetType(ServiceHosted))
End Class
This is all very strange because it's the same construct as the sample. And the sample builds without any problem.
Topshelf requires ServiceHosted
to implement the ServiceControl
interface. However, switching to this breaks the auto-update mechanism, which itself requires ISelfUpdatableService
.
How is the sample project able to 'fool' Topshelf into thinking that the implementation is correct? This has really got me scratching my head.
Any suggestion?
Do you have any documentation how this library can be used?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.