Fix installer's plugins copy issue under Linux (by using WINE)

This commit is contained in:
Don HO 2018-12-11 18:50:57 +01:00
parent e9563aeb8c
commit b709bc9f1b
2 changed files with 5 additions and 4 deletions

View File

@ -195,6 +195,6 @@ ${EndIf}
FunctionEnd
Section un.PluginsAdmin
Delete "$PLUGIN_CONF_PATH\nppPluginList.dll" ; delete 7.6 version's left
Delete "$USER_PLUGIN_CONF_PATH\nppPluginList.dll" ; delete 7.6 version's left
Delete "$ALLUSERS_PLUGIN_CONF_PATH\nppPluginList.dll"
SectionEnd

View File

@ -60,10 +60,11 @@ initUpdatePath:
Delete $INSTDIR\doLocalConf.xml
; "%PROGRAMDATA%\Notepad++\plugins"
ReadEnvStr $0 "ALLUSERSPROFILE"
StrCpy $PLUGIN_INST_PATH "$0\Notepad++\plugins"
StrCpy $ALLUSERS_PLUGIN_CONF_PATH "$0\Notepad++\plugins\Config"
SetShellVarContext all
StrCpy $PLUGIN_INST_PATH "$APPDATA\${APPNAME}\plugins"
StrCpy $ALLUSERS_PLUGIN_CONF_PATH "$APPDATA\${APPNAME}\plugins\Config"
SetShellVarContext current
StrCpy $USER_PLUGIN_CONF_PATH "$APPDATA\${APPNAME}\plugins\Config"
StrCpy $UPDATE_PATH "$APPDATA\${APPNAME}"
CreateDirectory $UPDATE_PATH\plugins\config