Archive: GetDrives method


GetDrives method
i am looking for an example of the usage of:

FileFunc.nsh and GetDrives method

...displaying the drive list in a dropdown in place of MUI_PAGE_DIRECTORY

sorry for what appears to be a real simple question, but i am really stumped here as i am new to nsis

thanks in advance


!include LogicLib.nsh
#...
StrCpy $R0 ""
${GetDrives} "ALL" "DriveEnum"
!insertmacro MUI_INSTALLOPTIONS_WRITE page.ini "Field 1" "ListItems" $R0
#...

Function DriveEnum
${If} $R0 == ""
StrCpy $R0 $9
${Else}
StrCpy $R0 $R0|$9
${EndIf}

Push ""
FunctionEnd