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