So, if VIS fails, then it does not write to the bsp file ($8.bsp) therefore the last file write time should be the same. This works fine, but sometimes, even when VIS is successful, $3 and $4 are the same.
GetFileTime $8.bsp $0 $4
ExecWait "$\"$INSTDIR\quake2\compilers\qvis3.exe$\" $\"$8.bsp$\"" $2
StrCmp 0 $2 0 CompileClosed
GetFileTime $8.bsp $0 $3
StrCmp $3 $4 CompileFail2
What can I do to improve this?
-Stu