Function OutputToDetailView Pop $2 ${If} $2 =~ "\(.+\%\)" ${If} $R1 == "p" DetailPrint $2 ${Else} ${DetailUpdate} "$2" ${EndIf} StrCpy $R1 "u" ${Else} DetailPrint $2 StrCpy $R1 "p" ${EndIf} FunctionEnd .