Reference/RegDLL: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (→RegDLL) |
m (→RegDLL) |
||
Line 9: | Line 9: | ||
<highlight-nsis> SetOutPath $INSTDIR | <highlight-nsis> SetOutPath $INSTDIR | ||
RegDLL $INSTDIR\foo.dll</highlight-nsis> | RegDLL $INSTDIR\foo.dll</highlight-nsis> | ||
''Command introduced with NSIS v1.0i'' |
Latest revision as of 08:22, 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
Command introduced with NSIS v1.0i