当前位置:网站首页>NSIS search folder

NSIS search folder

2022-07-05 07:34:00 sukhoi27smk

!include "FileFunc.nsh"
Function .onInit
  !insertmacro MUI_LANGDLL_DISPLAY
  ${Locate} "C:\" "/L=D" "FolderPro"
FunctionEnd


Function FolderPro
  ${If} $R7 == "Program Files"
    MessageBox MB_OK '$R7'
    MessageBox MB_OK '$R8'
  ${Else}
    push $0
  ${EndIf}
FunctionEnd

Need to install locate plug-in unit , And includes FileFunc.nsh The header file

$R7 Return the name of each folder ,$R8 Return its path

原网站

版权声明
本文为[sukhoi27smk]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140553428656.html