-
Notifications
You must be signed in to change notification settings - Fork 2
/
Locate.nsh
51 lines (35 loc) · 1.06 KB
/
Locate.nsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
!define locate::Open `!insertmacro locate::Open`
!macro locate::Open _PATH _OPTIONS _HANDLE
locate::_Open /NOUNLOAD `${_PATH}` `${_OPTIONS}`
Pop ${_HANDLE}
!macroend
!define locate::Find `!insertmacro locate::Find`
!macro locate::Find _HANDLE _PATHANDNAME _PATH _NAME _SIZE _TIME _ATTRIB
locate::_Find /NOUNLOAD `${_HANDLE}`
Pop ${_PATHANDNAME}
Pop ${_PATH}
Pop ${_NAME}
Pop ${_SIZE}
Pop ${_TIME}
Pop ${_ATTRIB}
!macroend
!define locate::Close `!insertmacro locate::Close`
!macro locate::Close _HANDLE
locate::_Close /NOUNLOAD `${_HANDLE}`
!macroend
!define locate::GetSize `!insertmacro locate::GetSize`
!macro locate::GetSize _PATH _OPTIONS _SIZE _FILES _DIRS
locate::_GetSize /NOUNLOAD `${_PATH}` `${_OPTIONS}`
Pop ${_SIZE}
Pop ${_FILES}
Pop ${_DIRS}
!macroend
!define locate::RMDirEmpty `!insertmacro locate::RMDirEmpty`
!macro locate::RMDirEmpty _PATH _OPTIONS _REMOVED
locate::_RMDirEmpty /NOUNLOAD `${_PATH}` `${_OPTIONS}`
Pop ${_REMOVED}
!macroend
!define locate::Unload `!insertmacro locate::Unload`
!macro locate::Unload
locate::_Unload
!macroend