Recent

Author Topic: InnoSetup for Lazarus ?  (Read 33124 times)

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: InnoSetup for Lazarus ?
« Reply #15 on: September 28, 2011, 01:48:37 am »
But... it's not actually a good idea to create installers for MacOSX, Linux and BSD's because they all have their own infrastructure for that.

These days, of all the above mentioned systems only a few linux flavors could benefit from using an installer, e.g. Slackware or LFS...
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: InnoSetup for Lazarus ?
« Reply #16 on: September 28, 2011, 11:53:17 am »
But... it's not actually a good idea to create installers for MacOSX, Linux and BSD's because they all have their own infrastructure for that.

These days, of all the above mentioned systems only a few linux flavors could benefit from using an installer, e.g. Slackware or LFS...

Exactly.

It would make much more sense to create something like an RPM builder or deb builder addin to Lazarus so you can compile your project and create "native" setup files for e.g. Debian/Ubuntu and Red Hat.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

bmatthewshea

  • New member
  • *
  • Posts: 8
Re: InnoSetup for Lazarus ?
« Reply #17 on: September 28, 2011, 04:06:26 pm »
But... it's not actually a good idea to create installers for MacOSX, Linux and BSD's because they all have their own infrastructure for that.
These days, of all the above mentioned systems only a few linux flavors could benefit from using an installer, e.g. Slackware or LFS...
It would make much more sense to create something like an RPM builder or deb builder addin to Lazarus so you can compile your project and create "native" setup files for e.g. Debian/Ubuntu and Red Hat.

Even Slackware has diff Package managers and builders. Why build some 'installer' for Linux as almost every distro is a bit different (type and dependencies) and already have their own utilities as well as repo's? Many have things in common (Debian vs it's flavors like Ubuntu). But why bother? I disagree with the OP (and other posts) that we should be trying to rewrite Inno to compile installers for Linux/Mac, too. There is very little point with a very small payoff.

Getting back to the point (And INNO):
Again, IMO, the only thing relevant to this OP would be to compile a console version of ISCC.exe (ala the NSIS/Nullsoft compiler under Linux) for Linux (and possibly Mac). This would be quite helpful for me at least. Building out a "GUI clone" of anything else is just a waste. Please do not get confused - this would still build Windows only installers - just allow the compile to happen inside a different OS.

Quote
Sorry but i use installer for Linux and ... they like that
(re: InstallJammer example)
Who are 'they'? Then you are one of the few that I know of - and yes I have messed with IJ in the past. But Inno is strictly a Windows Installer... Like InstallShield and NSIS. Why are you trying to force a square through a round hole? Why don't you development for IJ if you like it? Make it look like Inno if you want that feel to an installer under a Linux GUI...
« Last Edit: September 28, 2011, 04:20:14 pm by bmatthewshea »

Fred vS

  • Hero Member
  • *****
  • Posts: 3882
    • StrumPract is the musicians best friend
Re: InnoSetup for Lazarus ?
« Reply #18 on: September 28, 2011, 04:15:33 pm »
Quote
It would make much more sense to create something like an RPM builder or deb builder addin to Lazarus

The idea to create a "Linux Inno setup" was not to create a deb builder, who is made for Open source application, but like Inno setup does for Windows, a installer who does the installation easier for users and customers, without dependencies manager because Lazarus can create independent self-executables.

Like InstallJammer or Innosetup but in Lazarus code...


Quote
Who are 'they'?
All the Linux people who are not  Linux-gurus and who find very easy to install a non open-source application only with some clicks, following the instructions of the installer..

Quote
Why don't you development for IJ if you like it? Make it look like Inno if you want that feel to an installer under a Linux GUI...
Hey man, dont be angry, i only ask if somebody was interesting to create a installer for Lazarus and to share some ideas... Sorry to hurt you  :-[

« Last Edit: September 28, 2011, 04:33:03 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

bmatthewshea

  • New member
  • *
  • Posts: 8
Re: InnoSetup for Lazarus ?
« Reply #19 on: September 28, 2011, 04:51:19 pm »
Quote
Who are 'they'?
All the Linux people who are not  Linux-gurus and who find very easy to install a non open-source application only with some clicks, following the instructions of the installer..
Quote
Why don't you development for IJ if you like it? Make it look like Inno if you want that feel to an installer under a Linux GUI...
Hey man, dont be angry, i only ask if somebody was interesting to create a installer for Lazarus and to share some ideas... Sorry to hurt you  :-[

Sorry, I suppose I could have phrased that better, but I am certainly not angry. (And I am also delighted that this is even being debated.) I am not trying to rain on your parade, but you need to be aware of bigger picture and the task you are attempting to undertake.

There are very valid reasons why Linux has specific repo's and installs per Distro. Hundreds of people have developed this out (under various parent distros - RPM's,DEB's,TAR.GZ) to what you see today. The only time I would see using something like InstallJammer as a Linux installer would be to port a game or app that could ride under /usr/local or some-such and have static libs as built. But trying to add it to the 'installed pkg's' under a particular variable distro via some 3rd party 'global' installer gui is just asking for a headache.

When you get a particular source code for Linux there is usually a very good reason it isn't "ported"/compiled to every distro. Every distro is a bit different in the way it records and installs a given pkg so as to make system aware of it existing and to check dependencies from other pkg installs. (Fortunately or unfortunately). I wish it were different (meaning more standardized like Windows) but that is the nature of open source and how Linux evolved.

« Last Edit: September 28, 2011, 05:07:31 pm by bmatthewshea »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: InnoSetup for Lazarus ?
« Reply #20 on: September 28, 2011, 06:15:59 pm »
I think it would be very useful to port InnoSetup to Lazarus and to make it able to create RPM, DEB and Mac packages. It could contain new DEB-specific, RPM-specific and Mac-specific sections for the particularities of each platform, but in general one could make packages in a single interface.

Having said that, I have no interrest in actually doing such a project myself with my free time.

Fred vS

  • Hero Member
  • *****
  • Posts: 3882
    • StrumPract is the musicians best friend
Re: InnoSetup for Lazarus ?
« Reply #21 on: September 28, 2011, 08:52:31 pm »
Quote
I think it would be very useful to port InnoSetup to Lazarus and to make it able to create RPM, DEB and Mac packages. It could contain new DEB-specific, RPM-specific and Mac-specific sections for the particularities of each platform, but in general one could make packages in a single interface.

 ::)

Quote
Having said that, I have no interrest in actually doing such a project myself with my free time.

OK, i gonna begin it alone  :'(
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

lainz

  • Guest
Re: InnoSetup for Lazarus ?
« Reply #22 on: September 28, 2011, 09:25:23 pm »
I'm Inno Setup user it will be very usefull to port it to Lazarus.

Lazarus setup is created with Inno Setup, I've created the LazPaint setup with it, in Windows is very usefull to register file associations (see this article I wrote some time ago http://wiki.lazarus.freepascal.org/Inno_Setup_Usage ).

I'm not a professional programmer, just I help in the things I can, like 'High DPI' article (basically because I use this Windows feature), translations and some other. So I maybe can help in something not complicated things.  ::)

Inno Setup uses has full unicode support, this can be hard with the current RTL. Has High DPI support. Translations. lzma2...

Fred vS

  • Hero Member
  • *****
  • Posts: 3882
    • StrumPract is the musicians best friend
Re: InnoSetup for Lazarus ?
« Reply #23 on: September 29, 2011, 02:41:21 am »
Quote
it will be very usefull to port it to Lazarus
Im just taking a look at the source of InnoSetup...
And the conversion from Delphi to Lazarus do not create a miracle  %)
Lot of work to only convert it...

Maybe the fastest way will be to recreate from nihil a LazInstaller.

-1 choose a look-concept.
-2 define ability to create Windows, RPM, DEB, Mac and custom packages.
-3 define the file-adder.
-4 define the compressors.
-5 define the tasks the installer must do.
-6 define icons and short-cuts to add (depending of os)
-7 define the uninstaller
-8 ...

Quote
Lazarus setup is created with Inno Setup,

Do you know what created Lazarus setup for Linux ?
« Last Edit: September 29, 2011, 03:09:56 am by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

lainz

  • Guest
Re: InnoSetup for Lazarus ?
« Reply #24 on: September 29, 2011, 04:35:38 am »
Quote
Lazarus setup is created with Inno Setup,

Do you know what created Lazarus setup for Linux ?

Go to the 'tools\install' folder of Lazarus, you will see 'README.TXT' and all the files to create the packages for each platform.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: InnoSetup for Lazarus ?
« Reply #25 on: September 29, 2011, 10:32:46 am »
Inno Setup uses has full unicode support, this can be hard with the current RTL. Has High DPI support. Translations. lzma2...

Actually I bet that it is much easier to write a new application which is similar to Inno Setup then to port Inno Setup, specially if you drop Windows suppose, lets say Inno Setup is good enough on Windows and then write a new software which covers DEB, RPM and Mac.


LA.Center

  • Full Member
  • ***
  • Posts: 244
    • LA.Center
Re: InnoSetup for Lazarus ?
« Reply #27 on: September 29, 2011, 04:22:07 pm »
OK, how about this, we as ++Technologies are going to create a setup program for XPower++ anyway, and I am going to push to make the setup program part open source so everyone can get a copy and use/change it for them self, and as already suggested:

1. It should support x86/x64 Windows Setup -> with Reg and uninstaller.
2. It should support dependencies for x86/x64 Linux
3. It should support Application / Library Bundle support for Mac

We will name the project Laz Cross Setup Builder and maintain it on google, this way we will start to contribute to the Lazarus Community, because we love Lazarus :)

Once we have created the root trunk of this project, everyone is welcome to join this effort.
« Last Edit: September 29, 2011, 04:28:29 pm by plusplus »

Fred vS

  • Hero Member
  • *****
  • Posts: 3882
    • StrumPract is the musicians best friend
Re: InnoSetup for Lazarus ?
« Reply #28 on: September 29, 2011, 05:12:04 pm »
@ plusplus

Whaouw, very good news  :P
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

LA.Center

  • Full Member
  • ***
  • Posts: 244
    • LA.Center
Re: InnoSetup for Lazarus ?
« Reply #29 on: October 12, 2011, 11:06:50 am »
As promised we have created the root of Laz Cross Setup Builder

http://code.google.com/p/laz-cross-setup-builder/

and we will soon commit our first initial code, everyone is welcome to join this effort, as ++Technologies we will also sponsor other Lazarus Projects and Lazarus itself, so if you have ideas/suggestions about that let us know.

 

TinyPortal © 2005-2018