Unable to load custom plugin in NSIS script -
i have made custom nsis plugin perform operations. in nsis script, have loaded plugin through following command:
!addplugindir "plugin\"
(in same folder nsis script present, there folder called "plugin" in dll named exdll.dll present)
and executing functions of dll through following command:
exdll::func123 "<param1>" "<param2>"
after compilation, executable executed no issues. when move same executable system, following error:
could not load: c:\users\user123\appdata\local\temp\nsw19b5.tmp\exdll.dll
i checked above directory ("c:\users\user123\appdata\local\temp\nsw19b5.tmp"), dll "exdll.dll" present there.
so, have following queries:
- what can possible reason behind this?
- how shall resolve issue?
you missing dependencies. inspect .dll dependency walker on problematic system. find linking directly 1 of msvcrt files , vc c++ runtime files not installed on said systems.
you change code don't need crt (/zl) or switch static linking (/mt).
Comments
Post a Comment