Menu

#1312 Additional plugins directory lost after using the command 'Unicode false'

3.0 Series
closed-invalid
nobody
None
5
2024-08-06
2024-08-05
No

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

Discussion

  • Anders

    Anders - 2024-08-06

    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

     
  • Anders

    Anders - 2024-08-06
    • status: open --> closed-invalid
     

Log in to post a comment.