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

Reply
Thread Tools Search this Thread Display Modes
Old 12th April 2015, 19:33   #1
azureusvuze
Junior Member
 
Join Date: Mar 2013
Posts: 9
How to determine whether a file system supports reparse points?

I found in Microsoft site that I can use GetVolumeInformation with FILE_SUPPORTS_REPARSE_POINTS, but I'm not familiar with System plug-in.

Could anyone create complete GetVolumeInformation using System plug-in from this site?
code:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa364993%28v=vs.85%29.aspx

Thanks before.
azureusvuze is offline   Reply With Quote
Old 12th April 2015, 22:36   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,196
Quote:
!include LogicLib.nsh
!define FILE_SUPPORTS_REPARSE_POINTS 0x00000080

Section

System::Call 'KERNEL32::GetVolumeInformation(t "c:\",i0,i0,*i,*i,*i0r1,i0,i0)i.r0'
DetailPrint return=$0,FileSystemFlags=$1
IntOp $2 $1 & ${FILE_SUPPORTS_REPARSE_POINTS}
${If} $0 <> 0
${AndIf} $2 <> 0
DetailPrint FILE_SUPPORTS_REPARSE_POINTS
${EndIf}

SectionEnd
Just don't ask me to create a junction point with the system plugin...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 12th April 2015, 23:25   #3
azureusvuze
Junior Member
 
Join Date: Mar 2013
Posts: 9
Thumbs up

Quote:
Originally Posted by Anders View Post
Just don't ask me to create a junction point with the system plugin...
Great, thanks
Do not worry, I just use junction from sysinternals instead of using system plugin, because it able to create junction point without administrator privileges
azureusvuze is offline   Reply With Quote
Old 12th April 2015, 23:40   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,196
You can create hardlinks and junction without admin rights with most tools, only symlinks required elevation...

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