Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 9 of 9 total |
Different version of dbisam installed into the one ide? |
Sun, Aug 16 2015 5:00 PM | Permanent Link |
David | I am just wondering, is it possible to have two versions of DBISam installed into the one IDE at the same time but compile one app using one version of dbisam and another in the same IDE using a different version.
The reason I ask is because I have an app that is currently using 4.25 and as this is working just now there is no real reason to change it just now However I am making a new app that based on the original code and I want to migrate that over to 4.41 as it will be installed in a new site where I can freely upgrade the DB version without causing two many headaches. Providing the new app work fine at the new site I will then bring them all into line but because the app is in a regulated environment, changes to version number cause many headaches with having to revalidate, lots of paper work etc which can be avoided if I can prove the other site works fine in the later version. If this is possible can somebody shed some light on how to do this. I tried but found it was causing me problems with the wrong version of the DB being compiled into the exe. Thanks David. |
Sun, Aug 16 2015 5:29 PM | Permanent Link |
Raul Team Elevate | On 8/16/2015 5:00 PM, David wrote:
> I am just wondering, is it possible to have two versions of DBISam installed into the one IDE at the same time but compile one app using one version of dbisam and another in the same IDE using a different version. > The reason I ask is because I have an app that is currently using 4.25 and as this is working just now there is no real reason to change it just now However I am making a new app that based on the original code and I want to migrate that over to 4.41 as it will be installed in a new site where I can freely upgrade the DB version without causing two many headaches. Providing the new app work fine at the new site I will then bring them all into line but because the app is in a regulated environment, changes to version number cause many headaches with having to revalidate, lots of paper work etc which can be avoided if I can prove the other site works fine in the later version. > If this is possible can somebody shed some light on how to do this. I tried but found it was causing me problems with the wrong version of the DB being compiled into the exe. I believe you can do this manually - i'm not aware of any easy way to do automate it though and maintaining it is PITA. Install both versions in separate folders. There are basically 2 issues : 1. IDE componwents. IDE package you can control by going to Component->Install packages - remove 4.25 for example and add 4.41 or vice versa (it's simply a reference to the appropriate bpl file). You would need to manually remove other/add one every time you need to switch. 2. The other issue is the library search path. You again either have to manually keep changing this to appropriate dbisam paths or if you only have few projects then remove DBISAM paths from IDE global library path and add them directly into the projects - this way each project refers to its own proper version of dbisam. I believe items above should be enough but have not tried this myself. The other thing is to read the dbisam release notes and be aware of any breaking changes between 4.25 and current one - main one i can think of is the blob handling in 4.28 but there are few others. This would be issue is you need to share any common data between apps. Raul |
Mon, Aug 17 2015 5:21 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | David
Since, from your description, it seems to be a short term issue I'd look at using a VM for the older version. Roy Lambert |
Mon, Aug 17 2015 7:08 AM | Permanent Link |
David | Roy.
Odd you should say that, I am just at this very moment creating a vhd file just for this purpose however I would have liked the option to have avoided it and have two different version of dbisam working out of the same IDE as it is much easier. If only there was an easy solution.... but happy to use a VM if no easy alternative can be found. David. Roy Lambert wrote: David Since, from your description, it seems to be a short term issue I'd look at using a VM for the older version. Roy Lambert |
Mon, Aug 17 2015 11:36 AM | Permanent Link |
Fernando Dias Team Elevate | David,
I second what Roy said. Its exactly what i always do - I always have a virtual machine set with the previous version - when i release e new version the previous project is copied to the virtual machine. -- Fernando Dias [Team Elevate] |
Mon, Aug 17 2015 12:51 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | David,
<< I am just wondering, is it possible to have two versions of DBISam installed into the one IDE at the same time but compile one app using one version of dbisam and another in the same IDE using a different version. >> You can't have them both installed into the same IDE at the same time, but you can easily switch between the two using batch files, like this: @echo off set delphidir=<Delphi Installation Directory> set enginedir=<DBISAM Installation Directory>\code set designpkg=<DBISAM Design-Time Package Filename> set runtimepkg=<DBISAM Run-Time Package Filename> echo Copying DBISAM package to target folder... if exist %enginedir%\%runtimepkg% copy %enginedir%\%runtimepkg% %delphidir%\bin\%runtimepkg% echo Updating IDE search path... testreg.exe rsdelphixe %enginedir% %enginedir%\%designpkg% %enginedir% I've included the source for the testreg console application. It contains all of the product IDs that are used as the first parameter to the application ("rsdelphixe" is just an example). The application will update the path for both the design-time package, and the library search paths, and will then set a flag to tell the IDE that they've been changed. Just make sure that your target Delphi IDE isn't running when you execute the batch file, and you'll be all set. This is effectively what I use here internally for building/switching around test environments, and it's quicker than booting up new VMs (based upon VirtualBox - other VMs may be faster). Tim Young Elevate Software www.elevatesoft.com Attachments: testreg.zip |
Tue, Aug 18 2015 8:17 PM | Permanent Link |
David | Excellent Tim thank you very much
Although the VM works, as you say, it is slow as treacle to boot but is a good excuse for me to upgrade my laptop with some more memory regardless Thank you very much David. Tim Young [Elevate Software] wrote: David, << I am just wondering, is it possible to have two versions of DBISam installed into the one IDE at the same time but compile one app using one version of dbisam and another in the same IDE using a different version. >> You can't have them both installed into the same IDE at the same time, but you can easily switch between the two using batch files, like this: @echo off set delphidir=<Delphi Installation Directory> set enginedir=<DBISAM Installation Directory>\code set designpkg=<DBISAM Design-Time Package Filename> set runtimepkg=<DBISAM Run-Time Package Filename> echo Copying DBISAM package to target folder... if exist %enginedir%\%runtimepkg% copy %enginedir%\%runtimepkg% %delphidir%\bin\%runtimepkg% echo Updating IDE search path... testreg.exe rsdelphixe %enginedir% %enginedir%\%designpkg% %enginedir% I've included the source for the testreg console application. It contains all of the product IDs that are used as the first parameter to the application ("rsdelphixe" is just an example). The application will update the path for both the design-time package, and the library search paths, and will then set a flag to tell the IDE that they've been changed. Just make sure that your target Delphi IDE isn't running when you execute the batch file, and you'll be all set. This is effectively what I use here internally for building/switching around test environments, and it's quicker than booting up new VMs (based upon VirtualBox - other VMs may be faster). Tim Young Elevate Software www.elevatesoft.com |
Mon, Aug 24 2015 12:20 PM | Permanent Link |
John Easley | Just wanted to send a thank you for posting this - this will be a huge help with a project I'm working on!!
Thanks again! John Tim Young [Elevate Software] wrote: David, << I am just wondering, is it possible to have two versions of DBISam installed into the one IDE at the same time but compile one app using one version of dbisam and another in the same IDE using a different version. >> You can't have them both installed into the same IDE at the same time, but you can easily switch between the two using batch files, like this: @echo off set delphidir=<Delphi Installation Directory> set enginedir=<DBISAM Installation Directory>\code set designpkg=<DBISAM Design-Time Package Filename> set runtimepkg=<DBISAM Run-Time Package Filename> echo Copying DBISAM package to target folder... if exist %enginedir%\%runtimepkg% copy %enginedir%\%runtimepkg% %delphidir%\bin\%runtimepkg% echo Updating IDE search path... testreg.exe rsdelphixe %enginedir% %enginedir%\%designpkg% %enginedir% I've included the source for the testreg console application. It contains all of the product IDs that are used as the first parameter to the application ("rsdelphixe" is just an example). The application will update the path for both the design-time package, and the library search paths, and will then set a flag to tell the IDE that they've been changed. Just make sure that your target Delphi IDE isn't running when you execute the batch file, and you'll be all set. This is effectively what I use here internally for building/switching around test environments, and it's quicker than booting up new VMs (based upon VirtualBox - other VMs may be faster). Tim Young Elevate Software www.elevatesoft.com |
Mon, Aug 24 2015 2:57 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | John,
<< Just wanted to send a thank you for posting this - this will be a huge help with a project I'm working on!! >> No problem, I'm glad that it was useful for you. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Wednesday, April 24, 2024 at 11:07 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |