Search code examples
nsisdllregistration

Not able to register my 64bit dll through nsis script ?


I have a 64bit dll which i'm able to register from command prompt with regsvr32. But the problem is when i try to register my dll through nsis script its not registered. I used RegDLL command in nsis script. Anyone knows what the problem may be?


Solution

  • you could use rundll32.exe instead:

    ExecWait '"$SYSDIR\rundll32.exe" $INSTDIR\mydll.dll DllRegisterServer'
    

    rundll32.exe is smart enough to launch the 64bit version of itself if you run it with a 64bit dll