Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 79772305 authored by hhakim's avatar hhakim
Browse files

Build an uninstaller for the windows NSIS installer.

parent cb0dd1a6
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,8 @@ Section "" ; no component so name not needed
CreateDirectory $INSTDIR\python
CreateDirectory $INSTDIR\doc\html
WriteUninstaller "$INSTDIR\uninstall.exe"
; install gpu mod lib
CreateDirectory $INSTDIR\lib
SetOutPath $INSTDIR\lib
......@@ -297,3 +299,15 @@ Function matlabInstallDirFoundCb
FunctionEnd
section "uninstall"
; first, delete the uninstaller
Delete "$INSTDIR\uninstall.exe"
; do not RMDir /r $INSTDIR (danger: https://nsis.sourceforge.io/Reference/RMDir)
RMDir /r "$INSTDIR\doc"
RMDir /r "$INSTDIR\lib"
RMDir /r "$INSTDIR\python"
RMDir /r "$INSTDIR\matlab"
; delete default install dir (doesn't work if user chose a custom dir)
RMDir /r "$PROGRAMFILES64\Faust"
sectionEnd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment