Code Monkey home page Code Monkey logo

Comments (4)

dbforge avatar dbforge commented on May 22, 2024

Hi,

you do not need to set this property to true as it is the default value.
What kind of application are you running? Windows Forms, Console or WPF?

By default, nUpdate will call Application.Exit on your program once the installation process is started. May it be that you have some code in your program that prevents the closing of each form from happening?

Of course, it would be good to know your application type as WPF and console need a small workaround to get this working atm. For that the TerminateApplication method is marked as virtual. You may want to override it and kill your application the way that it needs to be done.

Best,
Dominic

from nupdate.

Pentagrade avatar Pentagrade commented on May 22, 2024

I'm programming in WinForms currently.
The process I can see on screen once the InstallPackage method is called is that an error box pops up saying the executable is locked just as my application closes. This does all occur within the space of a second or so. I don't have any code overriding the shutdown of the app.

from nupdate.

dbforge avatar dbforge commented on May 22, 2024

Do you have any code in your application that keeps it running even if all forms are closed (e. g. NotifyIcon or any else running services)?

You may want to try creating a class that inherits from UpdateManager and override the TerminateApplication method to kill your process without any resting active resources.
Then use this UpdateManager subclass instead.

Best,
Dominic

from nupdate.

Pentagrade avatar Pentagrade commented on May 22, 2024

Hi @ProgTrade, took a while to get back to you as I'm working on many things at once.

I was able to overcome this issue by shifting the updating code into my Program.cs before my first form can be initialized. It would have been desirable to have included this in my form so I can notify the user that the update is starting but that isn't a big deal as my use case will require all updates to be mandatory anyway and most only delay startup by a few more seconds by my testing.

Thanks for your help!
Hope this assists anyone with a similar issue

from nupdate.

Related Issues (20)

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.