Browse Source

[MODIF] Installer: Don't override contextMenu.xml.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@869 f5eea248-9336-0410-98b8-ebc06183d4e3
remotes/trunk
Don Ho 13 years ago
parent
commit
41a9d6854b
  1. 4
      PowerEditor/installer/nppSetup.nsi
  2. 2
      PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp

4
PowerEditor/installer/nppSetup.nsi

@ -414,11 +414,11 @@ Section -"Notepad++" mainSection
; This line is added due to the bug of xmlUpdater, to be removed in the future
nsExec::ExecToStack '"$TEMP\xmlUpdater.exe" "$TEMP\stylesLexerModel.xml" "$TEMP\stylers.model.xml" "$UPDATE_PATH\stylers.xml"'
Delete "$UPDATE_PATH\contextMenu.backup.xml"
Rename "$UPDATE_PATH\contextMenu.xml" "$INSTDIR\contextMenu.backup.xml"
SetOverwrite off
SetOutPath "$UPDATE_PATH\"
File "..\bin\contextMenu.xml"
SetOverwrite on
SetOutPath "$INSTDIR\"
File "..\bin\langs.model.xml"
File "..\bin\config.model.xml"

2
PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp

@ -201,7 +201,7 @@ int PluginsManager::loadPlugin(const TCHAR *pluginFilePath, vector<generic_strin
delete pi;
return -1;
} catch(...) {
generic_string msg = TEXT("Fail loaded");
generic_string msg = TEXT("Failed to load");
msg += TEXT("\n\n");
msg += USERMSG;
if (::MessageBox(NULL, msg.c_str(), pluginFilePath, MB_YESNO) == IDYES)

Loading…
Cancel
Save