|
|
|
|
#1 |
|
Member
Join Date: Jul 2015
Posts: 62
|
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. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Could you maybe post the code from "Section -AdditionalIcons"?
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Member
Join Date: Jul 2015
Posts: 62
|
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 |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
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. IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 |
|
Member
Join Date: Jul 2015
Posts: 62
|
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? |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
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...
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#7 |
|
Member
Join Date: Jul 2015
Posts: 62
|
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
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|