Locate.nsh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. !define locate::Open `!insertmacro locate::Open`
  2. !macro locate::Open _PATH _OPTIONS _HANDLE
  3. locate::_Open /NOUNLOAD `${_PATH}` `${_OPTIONS}`
  4. Pop ${_HANDLE}
  5. !macroend
  6. !define locate::Find `!insertmacro locate::Find`
  7. !macro locate::Find _HANDLE _PATHANDNAME _PATH _NAME _SIZE _TIME _ATTRIB
  8. locate::_Find /NOUNLOAD `${_HANDLE}`
  9. Pop ${_PATHANDNAME}
  10. Pop ${_PATH}
  11. Pop ${_NAME}
  12. Pop ${_SIZE}
  13. Pop ${_TIME}
  14. Pop ${_ATTRIB}
  15. !macroend
  16. !define locate::Close `!insertmacro locate::Close`
  17. !macro locate::Close _HANDLE
  18. locate::_Close /NOUNLOAD `${_HANDLE}`
  19. !macroend
  20. !define locate::GetSize `!insertmacro locate::GetSize`
  21. !macro locate::GetSize _PATH _OPTIONS _SIZE _FILES _DIRS
  22. locate::_GetSize /NOUNLOAD `${_PATH}` `${_OPTIONS}`
  23. Pop ${_SIZE}
  24. Pop ${_FILES}
  25. Pop ${_DIRS}
  26. !macroend
  27. !define locate::RMDirEmpty `!insertmacro locate::RMDirEmpty`
  28. !macro locate::RMDirEmpty _PATH _OPTIONS _REMOVED
  29. locate::_RMDirEmpty /NOUNLOAD `${_PATH}` `${_OPTIONS}`
  30. Pop ${_REMOVED}
  31. !macroend
  32. !define locate::Unload `!insertmacro locate::Unload`
  33. !macro locate::Unload
  34. locate::_Unload
  35. !macroend