installer/Attach.dpr
changeset 169 314eb459448e
parent 126 b072ae770357
child 268 dffb9ead7cfd
     1.1 --- a/installer/Attach.dpr	Wed Dec 28 00:08:15 2005 +0000
     1.2 +++ b/installer/Attach.dpr	Wed Dec 28 00:09:55 2005 +0000
     1.3 @@ -13,6 +13,13 @@
     1.4    WriteLn('');
     1.5    WriteLn('// Looking up files...');
     1.6    { Check files }
     1.7 +  if FileExists(ExtractFilePath(ParamStr(0)) + 'files\hl2launch.exe') then
     1.8 +    WriteLn('// Found files\hl2launch.exe')
     1.9 +  else begin
    1.10 +    WriteLn('// Error: Couldn''t find files\hl2launch.exe!');
    1.11 +    ReadLn;
    1.12 +    exit;
    1.13 +  end;
    1.14    if FileExists(ExtractFilePath(ParamStr(0)) + 'files\server.dll') then
    1.15      WriteLn('// Found files\server.dll')
    1.16    else begin
    1.17 @@ -37,6 +44,7 @@
    1.18    { Compress files }
    1.19    WriteLn('// Compressing files...');
    1.20    eFiles := TStringList.Create;
    1.21 +  eFiles.Add(ExtractFilePath(ParamStr(0)) + 'files\hl2launch.exe');
    1.22    eFiles.Add(ExtractFilePath(ParamStr(0)) + 'files\server.dll');
    1.23    eFiles.Add(ExtractFilePath(ParamStr(0)) + 'files\server_i486.so');
    1.24    eStream := TMemoryStream.Create;