Setting Up the Source and Destination Directories
From InterBase
Use the SourceDirectory
, DestinationDirectory
and SuggestedDestination
properties along with the InstallCheck
method to set up the source and destination directories for your installation component. The following code snippet uses two TDirectoryListBox components, SrcDir
and DestDir
, to allow the user to change the source and destination directories. The InstallCheck
method checks to see if everything is prepared for the installation.
try IBInstall1.SourceDirectory := SrcDir.Directory; IBInstall1.DestinationDirectory := DestDir.Directory; IBInstall1.InstallCheck; except on E:EIBInstallError do begin Label1.Caption := ''; Cancel.Visible := False; Execute.Visible := True; ProgressBar1.Visible := False; Exit; end; end;