Archive: SharedDLL - is the syntax correct?


SharedDLL - is the syntax correct?
I have a DLL that needs to be registered, but it's a shared DLL within a few different products.

The DLL gets installed at COMMONFILES\MyDLLFolder\mydll.dll

I got the code snippet from the user manual: Is the below snippet correct?


IfFileExists "$COMMONFILES\MyDLLFolder\mydll.dll" 0 new_installation ;Replace MyApp.exe with your application filename
StrCpy $ALREADY_INSTALLED 1
new_installation:

!insertmacro InstallLib REGDLL $ALREADY_INSTALLED REBOOT_NOTPROTECTED mydll.dll $COMMONFILES\MyDLLFolder\mydll.dll $SYSDIR

Please help!


I'm getting the following error, any help would be really appreciated:

!insertmacro: InstallLib
!error: InstallLib: The library dllname.dll could not be found.
Error in macro InstallLib on macroline 112

I'm including the Library.nsh header but not sure what else to include. Any help?


I'm going to assume that "Dllname.dll" the same as "mydll.dll" in your first post...

Does it exist in the same folder as your NSI script? If not, then you probably need to specify the full path (on your local computer.)


aww,I didn't specify the full path to dllname.dll. As soon as I specified the path, it compiled without any issues. Thanks so much Comperio!


Reg OCX in CommonFile
error of post sorry