# Stable update notification

**URL:** <https://discourse.slicer.org/t/stable-update-notification/23655>\
**Category:** Support\
**Created:** [May 31, 2022, 5:17pm UTC](https://discourse.slicer.org/t/stable-update-notification/23655 "2022-05-31T17:17:34Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [May 31, 2022, 11:28pm UTC](https://discourse.slicer.org/t/stable-update-notification/23655/6 "2022-05-31T23:28:56Z")

</div>

> [@pieper](#):
>
> checking for updates should be on by default or only if a user opts in?

Based on this [comment](https://github.com/Slicer/Slicer/issues/5502#issuecomment-842400963), it would need to be opt-in.

> [@pieper](#):
>
> Maybe there’s should be a dialog box the first time you run slicer on a new machine asking for preference?

I’ll provide information below about my current implementation to serve as ideas for Slicer.

I currently have support for auto version checking for my Slicer custom app by checking a release notes file on the web and comparing the latest version with version of my custom app being run. The update selection is saved as a user setting (False/True or missing if deferred decision by pressing “Cancel”). They can manually check with an action in the menu bar at Help-\>Check For Updates.

```auto
[Application]
auto_version_check=False
last_update_check=2022-05-31 18:58:54.201097

```

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/f/ff2a3dd60e63531429d0aeb52265284808865632.png)

If the user has selected “Manual”, I’m a little bit annoying and I will display a message on the status bar if they haven’t manually checked for a new version in the past 30 days. See code below.

```python
long_number_days_since_last_check = 30
if time_since_last_check > timedelta(days=long_number_days_since_last_check):
    message = f"It has been over {long_number_days_since_last_check} days since the last check for a version update. Please go to Help->Check For Updates."
    slicer.util.mainWindow().statusBar().showMessage(message, 30000) # shown for 30 seconds before cleared

```

If there is a update available I show release notes for all versions between the current version and the latest version available.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/0/105a2c455e2f8d0c3ddb005ee9384d316ecff87e.png)

I allow the user to “Ignore” the version update (saved as a user setting) if they don’t care about the update (often minor bug fix releases) and if they have “automatic” check mode turned on, then they will only be alerted of the next available release.

```auto
[Application]
ignore_version=1.13.1

```

They can use the “Download” button to automatically download the installer, close the current instance, and run the installer.

---

_[View the full topic](https://discourse.slicer.org/t/stable-update-notification/23655)._
