Old 30th April 2010, 06:50   #1
xkiz
Junior Member
 
Join Date: Apr 2010
Posts: 7
problems to register a Dll(x64) on w7 x64

hi, I'm having troubles when i try register a dll (x64) in Windows 7 x64

code:

Section "VSFiler x86" SEC01
SetOutPath "$WINDIR"
SetOverwrite on
File "VSFilter.dll"
REGDLL "VSFilter.dll"
SectionEnd

Section /o "VSFilter x64" SEC02
SetOverwrite on
SetOutPath "$WINDIR"
File "VSFilter_x64.dll"
REGDLL "VSFilter_x64.dll"
SectionEnd

Section Uninstall
Delete "$WINDIR\${PRODUCT_NAME}_Unnistaller.exe"
UnRegDll "$WINDIR\VSFilter_x64.dll"
UnRegDll "$WINDIR\VSFilter.dll"

Delete "$WINDIR\VSFilter_x64.dll"
Delete "$WINDIR\VSFilter.dll"

DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
SetAutoClose false
SectionEnd



ok with the x86 dll everything works just fine, but the x64 dll doesn't get registered.

I don't know what the error might be.

does somebody knows how I can fix this thing?
xkiz is offline   Reply With Quote
Old 1st May 2010, 03:29   #2
redxii
Senior Member
 
Join Date: Nov 2005
Posts: 115
Use Library.nsh: http://nsis.sourceforge.net/Docs/AppendixB.html#B.1

PHP Code:
!include Library.nsh

...

!
define LIBRARY_X64

!insertmacro InstallLib REGDLL NOTSHARED REBOOT_PROTECTED "VSFilter_x64.dll" "$WINDIR\VSFilter_x64.dll" "$WINDIR"

!undef LIBRARY_X64 
redxii is offline   Reply With Quote
Old 1st May 2010, 06:47   #3
xkiz
Junior Member
 
Join Date: Apr 2010
Posts: 7
thanks u very much, i'd used that before but I didn't know the "!define LIBRARY_X64" parte
xkiz is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump