Skip to content

Commit

Permalink
Merge pull request #36 from andreped/remove-dir
Browse files Browse the repository at this point in the history
Remove .raidionics/ directory during install and uninstall for Windows [skip ci]
  • Loading branch information
dbouget authored Apr 4, 2023
2 parents 6b3f144 + c25458d commit 10fd401
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
26 changes: 14 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
![CI](https://github.com/dbouget/Raidionics/workflows/Build%20macOS/badge.svg?branch=master&event=push)

Software to automatically segment brain tumors from pre- and post-operative MRI scans, compute their characteristics (e.g., volume, location), and generate a standardized report.
The software was first introduced in the article "Brain tumor preoperative surgery imaging: models and software solutions for
segmentation and standardized reporting", which has been published in [Frontiers in Neurology](https://www.frontiersin.org/articles/10.3389/fneur.2022.932219/full).
The software was first introduced in the article _"Brain tumor preoperative surgery imaging: models and software solutions for
segmentation and standardized reporting"_, which has been published in [Frontiers in Neurology](https://www.frontiersin.org/articles/10.3389/fneur.2022.932219/full).

<p align="center">
<img src="assets/images/Preview_SingleUse.gif" width="85%">
Expand All @@ -23,9 +23,10 @@ The current version (i.e., v1.2) provides a more user-friendly graphical user in


## Installation
An installer is provided for the three main Operating Systems: Windows (v10, 64-bit), Ubuntu Linux (>= 18.04), macOS (>= 10.15 Catalina) and macOS ARM (M1 chip).
An installer is provided for the three main Operating Systems: Windows (v10, 64-bit), Ubuntu Linux (>= 18.04), macOS (>= 10.15 Catalina), and macOS ARM (M1 chip).
The software can be downloaded from [here](https://github.com/dbouget/Raidionics/releases) (see **Assets**).
N-B: For re-installation, it is recommended to manually delete the .raidionics folder located inside your home directory.

**NOTE:** For reinstallation, it is recommended to _manually delete_ the `.raidionics/` folder located inside your home directory.

These steps are only needed to do once:
1) Download the installer to your Operating System.
Expand All @@ -36,12 +37,13 @@ These steps are only needed to do once:
If you are using Raidionics in your research, please use the following citation:
```
@article{10.3389/fneur.2022.932219,
title={Preoperative Brain Tumor Imaging: Models and Software for Segmentation and Standardized Reporting},
author={Bouget, David and Pedersen, André and Jakola, Asgeir S. and Kavouridis, Vasileios and Emblem, Kyrre E. and Eijgelaar, Roelant S. and Kommers, Ivar and Ardon, Hilko and Barkhof, Frederik and Bello, Lorenzo and Berger, Mitchel S. and Conti Nibali, Marco and Furtner, Julia and Hervey-Jumper, Shawn and Idema, Albert J. S. and Kiesel, Barbara and Kloet, Alfred and Mandonnet, Emmanuel and Müller, Domenique M. J. and Robe, Pierre A. and Rossi, Marco and Sciortino, Tommaso and Van den Brink, Wimar A. and Wagemakers, Michiel and Widhalm, Georg and Witte, Marnix G. and Zwinderman, Aeilko H. and De Witt Hamer, Philip C. and Solheim, Ole and Reinertsen, Ingerid},
journal={Frontiers in Neurology},
volume={13},
year={2022},
url={https://www.frontiersin.org/articles/10.3389/fneur.2022.932219},
doi={10.3389/fneur.2022.932219},
issn={1664-2295}}
title={Preoperative Brain Tumor Imaging: Models and Software for Segmentation and Standardized Reporting},
author={Bouget, David and Pedersen, André and Jakola, Asgeir S. and Kavouridis, Vasileios and Emblem, Kyrre E. and Eijgelaar, Roelant S. and Kommers, Ivar and Ardon, Hilko and Barkhof, Frederik and Bello, Lorenzo and Berger, Mitchel S. and Conti Nibali, Marco and Furtner, Julia and Hervey-Jumper, Shawn and Idema, Albert J. S. and Kiesel, Barbara and Kloet, Alfred and Mandonnet, Emmanuel and Müller, Domenique M. J. and Robe, Pierre A. and Rossi, Marco and Sciortino, Tommaso and Van den Brink, Wimar A. and Wagemakers, Michiel and Widhalm, Georg and Witte, Marnix G. and Zwinderman, Aeilko H. and De Witt Hamer, Philip C. and Solheim, Ole and Reinertsen, Ingerid},
journal={Frontiers in Neurology},
volume={13},
year={2022},
url={https://www.frontiersin.org/articles/10.3389/fneur.2022.932219},
doi={10.3389/fneur.2022.932219},
issn={1664-2295}
}
```
10 changes: 7 additions & 3 deletions assets/Raidionics.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "DisplayIcon" "$INSTDIR\images\raid
WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "DisplayVersion" "${VERSION}"
WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "Publisher" "${COMP_NAME}"

# Delete .raidionics/ directory if it exists
RMDir /r "$PROFILE\.raidionics\"

# Create directory
CreateDirectory $INSTDIR

Expand All @@ -130,18 +133,19 @@ SectionEnd

######################################################################

# Remove location where program is installed as well as addition .raidionics/ directory in home directory
Section Uninstall
${INSTALL_TYPE}
RmDir /r "$INSTDIR"
# RmDir /r "$PROFILE/.raidionics/resources"
RMDir /r "$INSTDIR"
RMDir /r "$PROFILE\.raidionics\"

!ifdef REG_START_MENU
!insertmacro MUI_STARTMENU_GETFOLDER "Application" $SM_Folder
Delete "$SMPROGRAMS\$SM_Folder\${APP_NAME}.lnk"
Delete "$SMPROGRAMS\$SM_Folder\Uninstall ${APP_NAME}.lnk"
Delete "$DESKTOP\${APP_NAME}.lnk"

RmDir "$SMPROGRAMS\$SM_Folder"
RMDir "$SMPROGRAMS\$SM_Folder"
!endif

DeleteRegKey ${REG_ROOT} "${REG_APP_PATH}"
Expand Down
Binary file modified assets/images/Preview_SingleUse.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 10fd401

Please sign in to comment.