zanz
28th July 2008 22:29 UTC
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!
zanz
30th July 2008 20:31 UTC
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?
Comperio
30th July 2008 20:47 UTC
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.)
zanz
30th July 2008 22:32 UTC
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!
tossnet
7th January 2011 21:37 UTC
Reg OCX in CommonFile
error of post sorry