Skip to content
⌘ NSIS Forum Archive

Install hanging

7 posts

pkonduru#

Install hanging

Hi,

We had a weird scenario where the installer hung at about more than 99%+ complete. This had never happened before. I am attaching the screenshot and the log. I don't know where to even start looking. The installer basically installs files and starts a windows service. This particular scenario did install the files and also started up the service. From the log I can tell it hung when it was trying to execute the "Section -AdditionalIcons" , where basically start menu shortcuts are created. I actually got access to the VM and verified that this was actually where it hung. I am attaching the screenshot and the last lines from the log.
Any pointers would greatly be appreciated.
pkonduru#
Section -AdditionalIcons
logSet on
SetShellVarContext all
SetOutPath $INSTDIR
IpConfig::GetHostName
Pop $0
Pop $R0
IpConfig::GetPrimaryDNSSuffix
Pop $0
Pop $R1

WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "http://$R0.$R1:$HTTPPortNumber/foundation/hub"
CreateDirectory "$SMPROGRAMS\XXX\Foundation"
CreateShortCut "$SMPROGRAMS\XXX\Foundation\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_NAME}.url" "" "$INSTDIR\images\hub_new.ico"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\images\Hub.ico"
logSet off
SectionEnd
Anders#
I would assume that the issue is a network problem and the IpConfig plug-in is stuck waiting on something. How log did you wait at 99% before killing the installer?

If you still have access to this VM you could run Process Explorer in it, double click the installer process and check the Threads tab. Double-click the thread(s) in the list and if you see IpConfig.dll at the top of the stack then that is the problem.
pkonduru#
Thank you Anders for the reply.
We killed the installer after about 2 hours. I tried running the install again but couldn't reproduce this issue.
The installer is copied to the local machine before running it, so I don't know if it can still be a network issue?
Anders#
It might be looking for a domain server etc to get the DNS suffix. If it does not abort after 5 to 10 minutes then maybe the plug-in just keeps on retrying after timing out. I have never used that plug-in so I don't really know...
pkonduru#
Thanks Anders. Is there any other plugin similar which I can use to achieve the same?
I don't want to be in this embarassing situation again 🙂