Old 7th April 2016, 17:48   #1
pkonduru
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.
Attached Thumbnails
Click image for larger version

Name:	Installer_hung.jpg
Views:	97
Size:	11.7 KB
ID:	52332  
Attached Files
File Type: txt Install.txt (2.9 KB, 91 views)
pkonduru is offline   Reply With Quote
Old 7th April 2016, 18:47   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
Could you maybe post the code from "Section -AdditionalIcons"?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 7th April 2016, 19:14   #3
pkonduru
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
pkonduru is offline   Reply With Quote
Old 7th April 2016, 20:03   #4
Anders
Moderator
 
Anders's Avatar
 
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
Anders is offline   Reply With Quote
Old 7th April 2016, 21:26   #5
pkonduru
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?
pkonduru is offline   Reply With Quote
Old 7th April 2016, 21:50   #6
Anders
Moderator
 
Anders's Avatar
 
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
Anders is offline   Reply With Quote
Old 7th April 2016, 22:05   #7
pkonduru
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
pkonduru 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