Subject Re: LONG, Re: [IBO] Installing IBObjects in Delphi 4 and Delphi 6
Author Gerard J.M. Houtenbos
Helen, I have got it working .....

Thanks,

Gerard


On Fri, 03 Feb 2006 16:12:22 +1100, you wrote:

><html><body>
>
>
><tt>
><BR>
>>At 07:48 AM 3/02/2006, Gerard Houtenbos wrote:<BR>
>> >Helen, let's first focus on Delphi 4.<BR>
>> ><BR>
>> >I deleted IBObjects using the uninstaller<BR>
><BR>
>At 10:31 AM 3/02/2006, you wrote:<BR>
><BR>
>>Oops.  The Uninstaller hasn't been implemented, AFAIR.  You've<BR>
>>literally got to do a rigorous cleanup.<BR>
><BR>
>I'll expand on this:  yes, run the uninstaller to clean it from your <BR>
>MSI database, but don't expect it to uninstall anything.<BR>
><BR>
>I also wrote:<BR>
><BR>
><BR>
>>Yes, but because I have 5 versions of Delphi on my dev machine, I<BR>
>>will not use anything but the ...Raw... kit. (Sorry, but the<BR>
>>installers just wreck everything here.)<BR>
>><BR>
>>I will install on D4 and try to follow up any errors that occur.<BR>
><BR>
>OK, I've spent a good part of the day on this so far.  I've installed <BR>
>v.4.6A into Delphi 4, Delphi 6 and Delphi 7, using the ..RawSource kit.<BR>
><BR>
>First:  both D7 and D6 installed flawlessly into clean IBO root folders.<BR>
><BR>
>I also (eventually) managed to get all of the valid packages for <BR>
>Delphi 4 to install, *except* for the RPL and FTS components.  Both <BR>
>exhibited the same error, a change involving the MacroSubstitute <BR>
>procedure, which appears to involve something that D4 doesn't support.<BR>
><BR>
>Now, next is where the LONG part starts.  I'll describe the procedure <BR>
>I followed in all three cases, step-by-step.  (This is partly for me <BR>
>and partly for you, as I'm currently engaged in updating the front <BR>
>section of the IBO Help and right now I'm stuck on the Installation <BR>
>chapter, between the Devil and the Deep Blue Sea.  I'm considering <BR>
>including the procedure below as a temporary help, until Jason either <BR>
>gets the installer issues sorted out, or decides that the former way <BR>
>of distributing the IBO source has a lot more going for it than the <BR>
>frustrations of trying to make one single installer script work for <BR>
>all the numerous variations and IDE bugs !!)<BR>
><BR>
>OK, here goes.  These steps must be done in the order given.  It <BR>
>looks a bit complicated the first time you do it but I promise you <BR>
>that you will be able to do it in your sleep before you know it!  It <BR>
>includes several workarounds for known bugs in the Delphi IDEs.<BR>
><BR>
>1)  Open Delphi.  (IMPORTANT: For Delphi 4, if Delphi is already <BR>
>running, close it and then restart it.)<BR>
><BR>
>2)  Open Components|Install Packages from the menu and, selecting <BR>
>each IBO package in turn, click the Remove button and answer all <BR>
>dialogs.  DO NOT use the checkboxes to "remove" the packages.  You <BR>
>must literally remove them, so that they do not appear in the package <BR>
>list at all.<BR>
><BR>
>3a)  Create a new directory for your IBO root. I created e:\ibo46_dn, <BR>
>in each case, where 'n' is replaced by the Delphi version number.<BR>
>3b)  Beneath the IBO root, create a directory for the DCP files.  I <BR>
>created e:\ibo46_dn\dcp.<BR>
>3b)  Create another directory to act as a repository for junk.  I <BR>
>created e:\trashcan.<BR>
><BR>
>4) In Delphi, edit all library, output and browse paths so that they <BR>
>find your IBO root, your DCP files and your BPL files. The one I <BR>
>always use fro BPLs, for all 3P packages, is <BR>
>($DELPHI)\Projects\BPL.  If that directory doesn't exist, create it.<BR>
>IMPORTANT FOR D4:  Do not trust the IDE to update your library paths <BR>
>properly.  It may take several attempts.  Use Delete and Add, rather <BR>
>than Replace, since Replace seems to have about a 20% first-time <BR>
>success rate.I do strongly recommend having the explicit dcp <BR>
>subdir.  I will explain later.<BR>
><BR>
>5)  Do a File | Save All and, when prompted, save the default project <BR>
>into your "trashcan" directory.  This is essential for D4 and is <BR>
>recommended for D6.  It didn't seem to be needed for D7.  The purpose <BR>
>of this is to make sure that Delphi updates the package and path <BR>
>lists.  You can later just delete the default project sources from <BR>
>your trashcan.<BR>
><BR>
>6) EXIT FROM DELPHI.<BR>
><BR>
>7)  Now, if you ran the installer previous, go the Control Panel | <BR>
>Add/Remove programs and run the uninstaller to clean  out the IBO <BR>
>entry in question.<BR>
><BR>
>8.  Delete or rename your old IBO root folder.<BR>
><BR>
>9.  Find all the old IBO40xxx_Dn.bpl and dcp files that apply to the <BR>
>Dn version you want to install IBO for.  The safest thing is to do a <BR>
>search everywhere for IBO40*.* and select all of the *.Dn.bpl and <BR>
>*.Dn.dcp files in the result list for the "n" you are interested <BR>
>in;  then delete them or move them somewhere right out of reach of <BR>
>your Delphi or system paths.<BR>
><BR>
>Now, you should have a clean system.<BR>
><BR>
>10)  Restart Delphi and close the default project.<BR>
><BR>
>11)  Open the package IBO40_Dn.bpg project group that's in your new <BR>
>IBO root folder.  (If the Project Manager isn't showing, go into the <BR>
>menu and set it to display.)<BR>
><BR>
>12)  Right-click on the first package displayed in the Project <BR>
>Manager's package list and Open it;  then just move it out of the <BR>
>way.  You won't need it, but don't close it.<BR>
><BR>
>13)  Go to the Menu and select Project | Build All Projects.  You can <BR>
>watch in the editbox at the top of the project manager, to see the <BR>
>compiler working its way through the package list.  When it's <BR>
>finished, this editbox will show the first package again.<BR>
><BR>
>OK, now, I got this far with all of the Delphi versions.  From here, <BR>
>it gets unstuck for Delphi 4, so FIRST DO THE FOLLOWING STEP FOR <BR>
>DELPHI 4 ONLY --<BR>
><BR>
>-- Go to ..\Borland\Delphi4\Projects\BPL and select all of the DCP <BR>
>files that were just created by the compiler.  Press Ctrl-X to cut <BR>
>the out, then paste them into the dcp folder that you created earlier <BR>
>beneath your new IBO root.<BR>
><BR>
>The remaining steps apply to all versions.  For D4, you will <BR>
>encounter some errors and warnings, with references to zlib.pas and <BR>
>TIB_OleContainer.  Just take the default replies and IBO will install <BR>
>OK for you anyway.  (I have a snapshot trail of these errors for <BR>
>Jason to inspect at his leisure...)<BR>
><BR>
>14)  Go down the package list in the Project Manager, to the first <BR>
>Design-time package (...DT..).  Right click on the entry and select <BR>
>Install.  Click OK on the modal message and move on to the next <BR>
>...DT... package in sequence.<BR>
><BR>
>15)  Repeat step 14 until you have installed all of the ...DT... <BR>
>packages in your list.  (For D4, don't try to install the two <BR>
>runtime/designtime packages ...RPL... and ...FTS... - it will fail.)<BR>
><BR>
>16)  Now, select File | Save All.  Wait until the button pops back <BR>
>up, then select File | Close All.<BR>
><BR>
>You're done.  If you like, go and check that the BPL and DCP files <BR>
>are all in their proper places...<BR>
><BR>
>Helen<BR>
><BR>
><BR>
></tt>
>
>
><!-- |**|begin egp html banner|**| -->
>
><br><br>
><tt>
>___________________________________________________________________________<BR>
>IB Objects - direct, complete, custom connectivity to Firebird or InterBase<BR>
>             without the need for BDE, ODBC or any other layer.<BR>
>___________________________________________________________________________<BR>
><a href="http://www.ibobjects.com">http://www.ibobjects.com</a> - your IBO community resource for Tech Info papers,<BR>
>keyword-searchable FAQ, community code contributions and more !           </tt>
><br><br>
>
><!-- |**|end egp html banner|**| -->
>
>
>
><!-- |**|begin egp html banner|**| -->
>
> <br><br>
> <div style="width:500px; text-align:right; margin-bottom:1px; color:#909090;">
> <tt>SPONSORED LINKS</tt>
> </div>
> <table bgcolor=#e0ecee cellspacing="13" cellpadding="0" width=500px>
> <tr valign=top>
> <td style="width:25%;">
> <tt><a href="http://groups.yahoo.com/gads?t=ms&k=Database+design+software&w1=Database+design+software&w2=Database+development+software&w3=Inventory+database+software&w4=Resume+database+software&w5=Database+software&w6=Database+management+software&c=6&s=185&.sig=IvtR1hSP9_6-mjsOrw3Ncg">Database design software</a></tt>
> </td>
> <td style="width:25%;">
> <tt><a href="http://groups.yahoo.com/gads?t=ms&k=Database+development+software&w1=Database+design+software&w2=Database+development+software&w3=Inventory+database+software&w4=Resume+database+software&w5=Database+software&w6=Database+management+software&c=6&s=185&.sig=82VQBp25k7O3XdPF5M7ZuQ">Database development software</a></tt>
> </td>
> <td style="width:25%;">
> <tt><a href="http://groups.yahoo.com/gads?t=ms&k=Inventory+database+software&w1=Database+design+software&w2=Database+development+software&w3=Inventory+database+software&w4=Resume+database+software&w5=Database+software&w6=Database+management+software&c=6&s=185&.sig=1BrVQ4t2Gr_d0cnYTbDqMQ">Inventory database software</a></tt>
> </td>
> </tr>
> <tr valign=top>
> <td style="width:25%;">
> <tt><a href="http://groups.yahoo.com/gads?t=ms&k=Resume+database+software&w1=Database+design+software&w2=Database+development+software&w3=Inventory+database+software&w4=Resume+database+software&w5=Database+software&w6=Database+management+software&c=6&s=185&.sig=jXFvfpf7Trd8ha2gLU3eRg">Resume database software</a></tt>
> </td>
> <td style="width:25%;">
> <tt><a href="http://groups.yahoo.com/gads?t=ms&k=Database+software&w1=Database+design+software&w2=Database+development+software&w3=Inventory+database+software&w4=Resume+database+software&w5=Database+software&w6=Database+management+software&c=6&s=185&.sig=l4oz-6H8rOxKJa-9JS8eZA">Database software</a></tt>
> </td>
> <td style="width:25%;">
> <tt><a href="http://groups.yahoo.com/gads?t=ms&k=Database+management+software&w1=Database+design+software&w2=Database+development+software&w3=Inventory+database+software&w4=Resume+database+software&w5=Database+software&w6=Database+management+software&c=6&s=185&.sig=M8K5vdirZKp42AzbS6-7UA">Database management software</a></tt>
> </td>
> </tr>
> </tr>
> </table>
>
><!-- |**|end egp html banner|**| -->
>
>
>
><!-- |**|begin egp html banner|**| -->
>
><br>
> <div style="text-align:center; color:#909090; width:500px;">
> <hr style="border-bottom:1px; width:500px; text-align:left;">
> <tt>YAHOO! GROUPS LINKS</tt>
></div>
><br>
><ul>
> <tt><li type=square> Visit your group "<a href="http://groups.yahoo.com/group/IBObjects">IBObjects</a>" on the web.<br> </tt>
> <tt><li type=square> To unsubscribe from this group, send an email to:<br> <a href="mailto:IBObjects-unsubscribe@yahoogroups.com?subject=Unsubscribe">IBObjects-unsubscribe@yahoogroups.com</a><br> </tt>
> <tt><li type=square> Your use of Yahoo! Groups is subject to the <a href="http://docs.yahoo.com/info/terms/">Yahoo! Terms of Service</a>.</tt>
></ul>
><br>
><div style="text-align:center; color:#909090; width:500px;">
> <hr style="border-bottom:1px; width:500px; text-align:left;">
></div>
></br>
>
><!-- |**|end egp html banner|**| -->
>
>
></body></html>
>

_________________________

Gerard J.M. Houtenbos
DoubleWood Software