|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
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. |
|
|
|
|
|
#2 |
|
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 |
|
|
|
|
|
#3 |
|
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?
|
|
|
|
|
|
#4 |
|
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. |
|
|
|
|
|
#5 |
|
Moderator
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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|