Skip to content
⌘ NSIS Forum Archive

problems to register a Dll(x64) on w7 x64

3 posts

xkiz#

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


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?
redxii#
Use Library.nsh: http://nsis.sourceforge.net/Docs/AppendixB.html#B.1

!include Library.nsh
...
!define LIBRARY_X64
!insertmacro InstallLib REGDLL NOTSHARED REBOOT_PROTECTED "VSFilter_x64.dll" "$WINDIR\VSFilter_x64.dll" "$WINDIR"
!undef LIBRARY_X64