added another check to prevent users from running it in an invalid directory

This commit is contained in:
Christian Hammacher 2007-08-11 14:06:03 +00:00
parent 3f1226e504
commit 84b146d74a
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -805,8 +805,8 @@ begin
IdLogFile.Active := True;
end;
if not DirectoryExists(ExtractFilePath(Application.ExeName) + 'files') then begin
MessageBox(Handle, 'The files-folder couldn''t be found. Run the Pre-Installer of AMX Mod X and try again.', 'Error', MB_ICONERROR);
if not DirectoryExists(ExtractFilePath(Application.ExeName) + 'files\base') then begin
MessageBox(Handle, 'You cannot copy this program and then run it to install AMX Mod X. Please download and install the full AMX Mod X package and start this installer again from the start menu.', 'Error', MB_ICONERROR);
Application.Terminate;
end
else begin