Archive: help for dll reg


help for dll reg
i made a NSIS setup installer which contains Dll register,
it's ok when i install it locally,
then i install it on a vitual machine(vmware 4,winxp), after installed it , run the programme ,it goes wrong , then
checked out that the Dlls hadn't been registed .

here is the code related:
Section -Post
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
;------------------写注册表,注册dll
regdll "$instdir\pdmftp.dll"
regdll "$instdir\rtxsend.dll"
regdll "$instdir\ftpsend.ocx"
regdll "$instdir\mb.ocx"
regdll "$instdir\MSCOMCT2.ocx"
WriteRegStr HKCU "Software\pdm" "path" "$instdir\pdm.exe"
WriteRegStr HKLM "Software\pdm" "path" "$instdir\pdm.exe"
SectionEnd

sorry for my poor english, i'm a chinese guy ,hehe


I'm just guessing here, but on your box where it seems to work OK, you might have had those controls already registered? Try changing the sequence that you register them, put the ones that depend upon the others after the ones that don't depend upon any others. (I'm thinking that the ocx's might be needed by the pdmftp or rtxsend dlls, and can't register until the ocx's are registered).

Don