Reference/RegDLL: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(Created page with "RegDLL dllfile [entrypoint_name] Loads the specified DLL and calls DllRegisterServer (or entrypoint_name if specified). The error flag is set if an error occurs (i.e. it can't l...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
RegDLL | =RegDLL= | ||
dllfile [entrypoint_name] | dllfile [entrypoint_name] |
Revision as of 08:19, 7 June 2013
RegDLL
dllfile [entrypoint_name] Loads the specified DLL and calls DllRegisterServer (or entrypoint_name if specified). The error flag is set if an error occurs (i.e. it can't load the DLL, initialize OLE, find the entry point, or the function returned anything other than ERROR_SUCCESS (=0)).
Use SetOutPath to set the current directory for DLLs that depend on other DLLs that are now in the path or in the Windows directory. For example, if foo.dll depends on bar.dll which is located in $INSTDIR use:
SetOutPath $INSTDIR RegDLL $INSTDIR\foo.dll