Right now I have this:
But it isn't very sufficiant, since the user may have his quake2 directory in e.g. C:\mygames\quake2
ReadINIStr $1 "$TEMP\map-compiler_settings.ini" "Field 7" "State"
StrCmp "$1" "C:\quake2" DirOk
StrCmp "$1" "C:\quake2\" DirOk
StrCmp "$1" "D:\quake2" DirOk
StrCmp "$1" "D:\quake2\" DirOk
StrCmp "$1" "E:\quake2" DirOk
StrCmp "$1" "E:\quake2\" DirOk
StrCmp "$1" "C:\games\quake2" DirOk
StrCmp "$1" "C:\games\quake2\" DirOk
StrCmp "$1" "D:\games\quake2" DirOk
StrCmp "$1" "D:\games\quake2\" DirOk
StrCmp "$1" "E:\games\quake2" DirOk
StrCmp "$1" "E:\games\quake2\" DirOk
StrCmp "$1" "$PROGRAMFILES\quake2" DirOk
MessageBox MB_OK|MB_ICONEXCLAMATION \
"Your current Quake2 directory doesn't contain the letters 'quake2'.$\n \
This will greatly affect Map-Compiling.$\n$\n \
Please change your Quake2 directory structure so that \
it is something like: C:\quake2 or D:\games\quake2.$\n\
If you don't use Quake2, but instead use the Q2Demo or some other \
Quake2 modification, then you will still need to make a new Quake2 \
directory.$\n$\nRead the readme ID: Directory Structures for more \
information."
DirOk:
Thanks for any help
-Stuart