How to add a DLL Plugin without NSH file into my NSIS script? -
i'm using nsis 2.46. plugin i'm trying use hwinfo plug-in (official link). zip file comes source codes , dll file. put hwinfo.dll
inside \nsis\plugins
directory. when adding plugin, i'm supposed !include
.nsh
file well, hwinfo not supply.
i'm trying analyze client's harware before installing-
function .oninit hwinfo::getcpuspeed strcpy $r0 $0 messagebox mb_ok "you have $0ghz cpu" hwinfo::getsystemmemory strcpy $0 messagebox mb_ok "you have $0mb of ram" functionend
but line hwinfo::getcpuspeed
'invalid command'
.
how use plugin without nsh file? , there alternatives?
solved:
i added !addplugindir "${nsisdir}\plugins"
@ top of script. helped detect hwinfo.dll
inside \nsis\plugins
directory @ compile-time.
not plugins have .nsh file wiki page tells how use specific plugin.
if run makensis /v4 yourscript.nsi
list plugins , functions export, if plugin not on list not in correct directory. make sure put in correct directory or use !addplugindir
...
Comments
Post a Comment