Old 21st April 2020, 20:25   #1
BGIdev
Junior Member
 
Join Date: Apr 2020
Posts: 8
Post UNC specification for filenames

I am creating an installation package for installing the company software on the workstation at client sites. As the installation package for the software resides on the network, I prompt user to specify the network location to find such file.

I have this working for user type in drive/path (with Auto-complete) in a textbox using the OnChange function, and a browse mode using the SelectFolderDialog function.

When I enter the network specification in the textbox with the drive/path specification, everything functions smoothly. However, when entering a UNC, there is a significant lag in response as I type the backslashes.

Any suggestion on improving the response when entering a UNC?

Thank you,
BGIdev is offline   Reply With Quote
Old 21st April 2020, 20:30   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
Are you doing the Autocomplete yourself or are you using the Windows autocomplete? I don't think there is much you can do about this either way. A custom plug-in could perhaps do it on a background thread but that could only cure the responsiveness, not the waiting time.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 21st April 2020, 21:23   #3
BGIdev
Junior Member
 
Join Date: Apr 2020
Posts: 8
I am using the call of the SHAutoComplete() function.

Here is the block of code per creating the textbox with the OnChange and AutoComplete functionality:

${NSD_CreateLabel} 20 120 100% 12U "HDIS Location on Network"
${NSD_CreateText} 20 135 300 20U $hdispath
Pop $tb_hdispath

GetFunctionAddress $0 CheckFolder
nsdialogs::OnChange $tb_hdispath $0

; set manual entry of drive/path to auto-complete as user types in the path
System::Call shlwapi::SHAutoComplete(p$tb_hdispath,1)

Thanks,
BGIdev is offline   Reply With Quote
Old 21st April 2020, 21:30   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
Does it get better if you remove nsdialogs::OnChange? There is not much you can do to make SHAutoComplete faster.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
filenames, unc

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