Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 4th December 2012, 06:54   #1
vzevako
Junior Member
 
Join Date: Dec 2012
Posts: 4
Allow UNC path without last backslash on MUI_PAGE_DIRECTORY

Hi,
I found many threads about allowing UNC pathes on MUI_PAGE_DIRECTORY.
But it didn't work for me fully.

I am using AllowRootDirInstall true instruction.

And if I enter path \\server_name\share_name\ it works fine (with last backslash)
If I enter \\server_name\share_name it does not work (without last backslash)

Is there any way to make it working without last backslash?
Please help me.

Thanks for advance.
vzevako is offline   Reply With Quote
Old 4th December 2012, 07:19   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
You could use your own path validation function, which just tests both:
http://nsis.sourceforge.net/Docs/Cha...tml#4.7.2.1.10
MSG is offline   Reply With Quote
Old 4th December 2012, 12:05   #3
vzevako
Junior Member
 
Join Date: Dec 2012
Posts: 4
I tried use .onVerifyInstDir, but unfortunetly it does not work for me, could someone please show example of script with it?
vzevako is offline   Reply With Quote
Old 4th December 2012, 13:19   #4
vzevako
Junior Member
 
Join Date: Dec 2012
Posts: 4
Also it is impossible to do it using .onVerifyInstDir, because this function is called with UNC pathes only after entering \\server_name\share_name\

This callback function is not called when using \\server_name\share_name

Was verified it by just simple adding MessageBox to this function (message appeared only after entering \\server_name\share_name\)

This function works fine only in case local pathes.
vzevako is offline   Reply With Quote
Old 4th December 2012, 14:50   #5
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
MSDN docs for GetDiskFreeSpaceEx: If this parameter is a UNC name, it must include a trailing backslash, for example, "\\MyServer\MyShare\".

IntOp $PostCount $PostCount + 1
Anders 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