Using the command 'Unicode false' does reset a previous defined additional Plugins directory.
Thefollowing code throws the error message
Plugin directories:
C:\Program Files (x86)\NSIS\Plugins\x86-ansi
Plugin not found, cannot call SAFER::Exec
!AddPluginDir "W:\Source\Nsis\Installers\PlugIn"
Unicode false
Section ThisIsWorking
SAFER::Exec NORMAL 'CMD /C'
SectionEnd
Whereas this code is compiles without error:
Unicode false
!AddPluginDir "W:\Source\Nsis\Installers\PlugIn"
Section ThisIsWorking
SAFER::Exec NORMAL 'CMD /C'
SectionEnd
Notes
- The SAFER plugin has nothing to do with this fault, it is used as an example.
- Using 'Unicode true' compiles both way
The directory is not lost, it is deemed incompatible. It will return if you change the Unicode mode back again. This is by design.
You can specify the architecture manually: !addplugindir /x86-ansi c:\myansiplugins