Archive: "could not load xxxx.dll"


"could not load xxxx.dll"
hi all, i have a little question. when i try to register a .dll with this

!insertmacro InstallLib REGDLL $ALREADY_INSTALLED NOREBOOT_PROTECTED "dao350.dll" "$(MSDAOPath)\dao350.dll" "$(MSDAOPath)"

dont know why i get this message "Could not load \dao350.dll" with this dll and 2 more ( msrd2x35.dll and msjet35.dll ). when i use regsvr32 da0350.dll it works, so what could be the problem?

edit: i copied those path $(MSDAOPath) and $(WinSysPathSysFile) from the SETUP.LST of VB6. maybe the problem is there. here is the SETUP.LST lines:

File23=@MSRD2X35.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,4/24/98 11:00:00 PM,252176,3.51.623.0
File28=@MSJET35.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,4/23/98 11:00:00 PM,1045776,3.51.623.4
File29=@dao350.dll,$(MSDAOPath),$(DLLSelfRegister),$(Shared),4/27/98 11:00:00 PM,570128,3.51.1608.0


what is this? $(MSDAOPath)
If it is a define should be ${MSDAOPath},
if it's variable, has invalid characters () hence won't get declared.


yup, it was a variable of the SETUP.LST, i google it and found it is "..\Common Files\Microsoft Shared\DAO\" i will give a try using $COMMONFILES\Microsoft Shared\DAO\


!define MSDAOPath "$COMMONFILES\Microsoft Shared\DAO"
and use it as ${MSDAOPath}