GithubHelp home page GithubHelp logo

nonobis / topshelf.squirrel.updater Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kibnet/topshelf.squirrel.windows

14.0 14.0 5.0 99 KB

Integration of auto-update mechanism is Windows services out of the box.

License: Other

C# 100.00%

topshelf.squirrel.updater's People

Contributors

nonobis avatar robertlarue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

topshelf.squirrel.updater's Issues

No update happening

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.
mbds_installed
mbds_service

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

Precompile error when reconstructing sample

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?

Documentation

Do you have any documentation how this library can be used?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.