-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide events for installer #93
Comments
Rather than using events, I chose to use properties on the In the latest preview of You can also now use Something like this should be helpful: if (SparkleUpdater.Configuration.IsFirstRun)
// handle first run
else if (!string.IsNullOrWhiteSpace(SparkleUpdater.Configuration.PreviousVersionOfSoftwareRan)
&& SparkleUpdater.Configuration.PreviousVersionOfSoftwareRan != SparkleUpdater.Configuration.InstalledVersion)
// handle update by figuring out what needs to be updated or shown to the user or whatnot I don't think we can properly handle Install or Uninstall events at this point since we don't control those events of the software at all. |
What do you think about storing the previous version as For the install (which is kind of first run) and uninstall I agree. |
I'm sorry for forgetting to reply. I would rather let the user parse the string themselves if they need to -- they might be storing the version in formats such as |
Calling this "done" for 2.0, but am open to further suggestions for 2.1+. |
Hi, sorry had no time yet. I am trying to build a full stack prototype for the whole software update path using Avalonia for multiple platforms (Linux and Windows for now), Will look into it. |
Oh, that's fine. I'm just wanting to wrap things up for a 2.0 release right now. There's no rush or pressure on you to do anything more (although contributions are always welcome). :) |
It would be nice to receive events like with Squirrel to react to certain - who would have guessed - events.
Events:
Also cool to create a small framework to handle migrations to be run when certain versions are passed during an upgrade.
The text was updated successfully, but these errors were encountered: