Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Can't register dll and ocx (http://forums.winamp.com/showthread.php?t=221853)

Romka 19th July 2005 08:32

Can't register dll and ocx
 
Please help!
I try to register DLL and OCX:

!insertmacro InstallLib REGDLL $ALREADY_INSTALLED REBOOT_NOTPROTECTED msvcr70.dll $SYSDIR\msvcr70.dll $SYSDIR

Compile log:

!insertmacro: InstallLib
warning: unknown variable/constant "ALREADY_INSTALLED" detected, ignoring (macro:InstallLib:49)
!insertmacro: end of InstallLib
SectionEnd


Installation log:

Can’t find symbol: DllRegisterServer

DLL copy into sysdir but not register. What I do wrong?

Instructor 19th July 2005 09:35

code:
Var ALREADY_INSTALLED
!insertmacro InstallLib REGDLL $ALREADY_INSTALLED REBOOT_NOTPROTECTED msvcr70.dll $SYSDIR\msvcr70.dll $SYSDIR


deguix 19th July 2005 11:00

"Var" instruction has to be outside sections and functions and prefferably at the top of your script.

Romka 19th July 2005 14:36

Thanks!
Var ALREADY_INSTALLED is working.:)
But Installation log:
Can’t find symbol: DllRegisterServer:(
One more questions please!:rolleyes:
I can’t find in user manual how to register fonts files(*.ttf).

kichik 19th July 2005 19:46

That means the DLL shouldn't be registered. For fonts, search the forum and the wiki.

Comperio 20th July 2005 04:15

In your first example, you mention the file 'msvcr70.dll'.

This is a file included with MS .NET Framework, which I'm fairly certain is protected by Windows File Protection. This means that the only way you'd be able to install it is via Microsoft's own installation (or Windows installer merge module).

Or I could be wrong...

JCD29 15th November 2005 22:44

you can use : upgradeDLL
!insertmacro UpgradeDLL XXX.dll "$PROGRAMFILES\XXX.dll" "$INSTDIR\Temp"

this macro exists in example given by the NSIS installer


All times are GMT. The time now is 05:46.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.