diff --git a/src/WindowsInstaller/include/declarations.nsh b/src/WindowsInstaller/include/declarations.nsh index f790786d90..dfc96e540d 100644 --- a/src/WindowsInstaller/include/declarations.nsh +++ b/src/WindowsInstaller/include/declarations.nsh @@ -35,7 +35,7 @@ Configuration and variables of FreeCAD installer !define APP_RUN "bin\${APP_NAME}.exe" !define BIN_FREECAD "${APP_NAME}.exe" -!define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}" # like "FreeCAD0180" +!define APP_REGKEY "SOFTWARE\${APP_NAME}${APP_SERIES_KEY}" # like "FreeCAD0180" !define APP_REGKEY_SETUP "${APP_REGKEY}\Setup" !define APP_REGKEY_SETTINGS "${APP_REGKEY}\Settings" diff --git a/src/WindowsInstaller/setup/uninstall.nsh b/src/WindowsInstaller/setup/uninstall.nsh index 7ad81ff61c..8db49a1999 100644 --- a/src/WindowsInstaller/setup/uninstall.nsh +++ b/src/WindowsInstaller/setup/uninstall.nsh @@ -67,9 +67,8 @@ Section "un.FreeCAD" un.SecUnProgramFiles DeleteRegKey SHELL_CONTEXT "Software\Classes\${APP_EXT}" ${EndIf} - # clean other registry entries + # clean other registry entry DeleteRegKey SHCTX "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\${APP_NAME}.exe" - DeleteRegKey SHCTX "SOFTWARE\${APP_REGKEY}" # Eventually refresh shell icons ${RefreshShellIcons} @@ -86,9 +85,9 @@ Section /o "un.$(UnFreeCADPreferencesTitle)" un.SecUnPreferences # remove FreeCAD's config files StrCpy $AppSubfolder ${APP_DIR_USERDATA} Call un.DelAppPathSub # function from Utils.nsh + # remove the registry key that stores the main window parameters + DeleteRegKey HKCU "SOFTWARE\${APP_NAME}" NotPreferences: - # remove registry settings - DeleteRegKey HKCU "Software\${APP_NAME}\${APP_NAME}${APP_SERIES_NAME}" SectionEnd