From 54cf3ca3a36bac367e33e407cd4796adcbba9345 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Fri, 13 Nov 2015 00:07:21 +0100 Subject: [PATCH] Let user choose to keep DSpell or not in Installer --- PowerEditor/installer/nppSetup.nsi | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/PowerEditor/installer/nppSetup.nsi b/PowerEditor/installer/nppSetup.nsi index dcb22c8e..9b5ad497 100644 --- a/PowerEditor/installer/nppSetup.nsi +++ b/PowerEditor/installer/nppSetup.nsi @@ -625,11 +625,16 @@ Section -"Notepad++" mainSection Rename "$INSTDIR\plugins\NppQCP.dll" "$INSTDIR\plugins\disabled\NppQCP.dll" Delete "$INSTDIR\plugins\NppQCP.dll" - IfFileExists "$INSTDIR\plugins\DSpellCheck.dll" 0 +4 - MessageBox MB_OK "Due to the stability issue,$\nDSpellCheck.dll will be moved to the directory $\"disabled$\"" /SD IDOK + IfFileExists "$INSTDIR\plugins\DSpellCheck.dll" 0 +11 + MessageBox MB_YESNOCANCEL "Due to the stability issue, DSpellCheck.dll will be moved to the directory $\"disabled$\".$\nChoose Cancel to keep it this installation.$\nChoose No to keep it forever." /SD IDYES IDNO never IDCANCEL donothing ;IDYES remove + remove: Rename "$INSTDIR\plugins\DSpellCheck.dll" "$INSTDIR\plugins\disabled\DSpellCheck.dll" Delete "$INSTDIR\plugins\DSpellCheck.dll" - + Goto donothing + never: + Rename "$INSTDIR\plugins\DSpellCheck.dll" "$INSTDIR\plugins\DSpellCheck2.dll" + Goto donothing + donothing: ; Context Menu Management : removing old version of Context Menu module IfFileExists "$INSTDIR\nppcm.dll" 0 +3