Old 26th June 2007, 03:40   #1
gpseaver
Junior Member
 
Join Date: Jun 2007
Posts: 1
Question 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
gpseaver is offline   Reply With Quote
Old 26th June 2007, 04:50   #2
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 462
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
demiller9 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump