raidionics / Raidionics

Software for automatic segmentation and generation of standardized clinical reports of brain tumors from MRI volumes
https://raidionics.github.io/
BSD 2-Clause "Simplified" License
32 stars 4 forks source link

Bug: Automatic models folder deletion after re-installation #40

Closed dbouget closed 1 year ago

dbouget commented 1 year ago

On Ubuntu and Mac, the .raidionics is not deleted during the installation process.

An automatic deletion of the Models folder should be performed, based on the software version, to prevent issues due to old models still existing on disk but likely not forward-compatible.

andreped commented 1 year ago

@dbouget I thought you added a fix for this when the program is launched the first time after installation?

For UNIX-based system, there isn't a way to remove this folder, AFAIK. At least on macOS there is no uninstall script. App bundles are deleted by deleting the bundle itself manually (right click + remove). For Ubuntu we could make such a method, but I do not see a point in doing it, if it doesnt work for macOS. Best is just to detect if the program is launched the first time, and then from the program we can delete the folder, which I believe you are doing now, or?

dbouget commented 1 year ago

We can leave the automatic removal of the models folder upon installation for Windows only.

In general, there is an option in the Settings panel to manually request a purge of the models folder (by clicking the trash bin icon).