Section ""How can I get <dirname> ?
SetoutPath "$INSTDIR\Missions\"
File "Files\pbtl.exe"
FindFirst $0 $1 "$INSTDIR\Missions\*.pbo"
loop:
DetailPrint $1
;Operations on file $1
ExecWait '"$INSTDIR\Missions\pbtl.exe" -u $1'
Delete "$INSTDIR\Missions\$1"
;<dirname> is just $1 without extension(pbo)
ExecWait '"$INSTDIR\Missions\pbtl.exe" -p <dirname>'
Delete /r "$INSTDIR\Missions\<dirname>\*.*"
FindNext $0 $1
IfErrors 0 +2
goto end
Goto loop
end:
Delete "$INSTDIR\Missions\pbtl.exe"
SectionEnd
FindFile
My installer ( I 've already created 4-5 topic to complete it 🙂) used to make similiar operations on several dozens files. I looked through the help and write the following code.