Recent

Author Topic: What Is The Proper Upgrade Path for LAZ 1.8?  (Read 2497 times)

pixelink

  • Hero Member
  • *****
  • Posts: 1260
What Is The Proper Upgrade Path for LAZ 1.8?
« on: December 18, 2017, 05:27:24 pm »
Hi,
I don't want to mess up previous apps I have made.

So, what is the proper way to install the new LAZ 1.8 Application....
And... what do I do about previous LPK packages I have installed in 1.6

Thanks
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

Thaddy

  • Hero Member
  • *****
  • Posts: 14205
  • Probably until I exterminate Putin.
Re: What Is The Proper Upgrade Path for LAZ 1.8?
« Reply #1 on: December 18, 2017, 05:38:38 pm »
Hi,
I don't want to mess up previous apps I have made.

So, what is the proper way to install the new LAZ 1.8 Application....
And... what do I do about previous LPK packages I have installed in 1.6

Thanks
THIS IS NOT THE EASY WAY but to me it is A proper way... :D
Back-up!
Keep the package sources if they are your own or not in the standard distribution.
Expect some packages to be broken, so check if they are maintained
Download a (binary) fpc 3.0.4 from the official website
Use svn to check out lazarus
Build Lazarus with 3.0.4.
Install OPM package. (online package manager)
Then recompile your specific packages that are not in the standard distribution OR install OPM and get them from OPM if they are mainstream but not in OPM.
Install those.

I know this looks like a lot to do, but in my experience it is fool proof. (This fool)
« Last Edit: December 18, 2017, 05:40:45 pm by Thaddy »
Specialize a type, not a var.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9793
  • Debugger - SynEdit - and more
    • wiki
Re: What Is The Proper Upgrade Path for LAZ 1.8?
« Reply #2 on: December 18, 2017, 07:26:17 pm »
I would not go the SVN way here.

But yes, first step: backup

Then (if you like safety) test with 1.8
Download the installer.
- On windows select "2ndary install". This will leave your current install untouched.
Put your 2ndary install into a new folder (e.g. C:\lazarus18), and when ask for the config dir, use (in case of above example) C:\lazarus18\conf
Install your package. In case of 3rd party, make sure you use a new copy, in a new folder diff to the one you use one your current lazarus / Also check for updates.
- On other platform see: http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Using_lazarus.cfg_file

From your current Lazarus, export your projects using Project > Publish Project.
Test them...

Now if all works, keep using the 2ndary, or update your primary using the installer (may need uninstall in some cases, but often works by installing over existing)

 

TinyPortal © 2005-2018