Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Allow UNC path without last backslash on MUI_PAGE_DIRECTORY (http://forums.winamp.com/showthread.php?t=353086)

vzevako 4th December 2012 06:54

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.

MSG 4th December 2012 07:19

You could use your own path validation function, which just tests both:
http://nsis.sourceforge.net/Docs/Cha...tml#4.7.2.1.10

vzevako 4th December 2012 12:05

I tried use .onVerifyInstDir, but unfortunetly it does not work for me, could someone please show example of script with it?

vzevako 4th December 2012 13:19

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.

Anders 4th December 2012 14:50

MSDN docs for GetDiskFreeSpaceEx: If this parameter is a UNC name, it must include a trailing backslash, for example, "\\MyServer\MyShare\".


All times are GMT. The time now is 18:06.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.