Link to home
Start Free TrialLog in
Avatar of Roger Alcindor
Roger Alcindor

asked on

Indy 9 installation problem in BCB 5 system

I am trying to install Indy 9 on a windows System that has a Borland C++ builder 5 compiler. Running the FullC5.bat batch file yeilds an error which is triggered by one of the following lines in the batch file.
Does this mean that an environment variable NDC5 or NDWINSYS is not present and if so can anyone say what they should be ?


if (%NDC5%)==() goto enderror
if (%NDWINSYS%)==() goto enderror

Thanks,

Roger
Avatar of jkr
jkr
Flag of Germany image

It looks like that, yet there is hardly any information out there other than http://bigp2.googlecode.com/svn/trunk/x/Indy/Computil.dpr - which leaves these hints:

    woSetupC5: begin
      SetPath('NDC5','Software\Borland\C++Builder\5.0');
    end;

Open in new window


and

        If not SysDirFound then begin { Get System Directory and add to string list }
          SetLength(SysDir, 255);
          SetLength(SysDir, GetSystemDirectory(@SysDir[1], 255));
          EnvList.Add('SET NDWINSYS=' + SysDir);
          EnvUpdated := True;
        end; { if }

Open in new window

Avatar of Roger Alcindor
Roger Alcindor

ASKER

I executed the following before running the fullC5.bat file:

set NDC5 = "C:\Program Files\Borland\CBuilder5"
set NDWINSYS = "C:\Windows\Systeme32"

This got rid of the original error message but new error messages were produced.
This error (problem 2) seems to be due to the batch file processing not handling long file names and therefore not finding files in the C:\Program Files folder, reporting "file not found in C:\Program "
I eventually fixed the issue by editing the FullC5.bat file, replacing %NDC5% and %NDSYSWIN% with
the values specified in the set statements above.
I still have this problem (problem2) on a windows 7 Enterprise machine when installing an ActiveX component where a re-build of C:\Program files\Borland\CBuilder5\Lib\ dclusr50.bpk but not on a Windows 7 Professional machine.
The Windows 7 Professional machine was build by hand whereas the Windows 7 enterprise machine was built using Columbus.
Should I post a new thread for this or might I continue ? the original question has been addressed so I will be awarding points.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I built another Windows 7 Professional machine and the problem did not occur. The customer will be investigating possible differences in Windows 7 enterprise and windows 7 professional which could account for the problem. Meanwhile, the customer will proceed with Windows 7 Professional instead of Windows 7 enterprise.