View previous topic :: View next topic |
Author |
Message |
leszpol
Joined: 25 Apr 2008 Posts: 29 Location: Gdynia-TriCity
|
Posted: Tue May 27, 2008 7:48 am Post subject: EXE+salflibc.dll together |
|
|
Hello. It is possible that during compilation I can attach salflibc.dll to EXE program. Now when I distribute *.exe program I have to attache the library separately. Thak you for any suggestion. |
|
Back to top |
|
|
Robert
Joined: 29 Nov 2006 Posts: 445 Location: Manchester
|
Posted: Tue May 27, 2008 9:04 am Post subject: |
|
|
No, you have to distribute salflibc with your executable. There is no way to link them into one file. |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Tue May 27, 2008 4:59 pm Post subject: |
|
|
Actually, there is. FTN95 alone has no way to do it, what you need is an "installer". The one I use is "inno setup" (see www.jrsoftware.org). Basically, you write a set of instructions as to what files are to be placed where when your program is installed, what icons are to go on desktop or start menu etc, and inno setup "compiles" a setup.exe program that does it all!
At the very least, your program is at least one EXE, SALFLIBC.DLL, and posibly also a CHM help file. You may also have example data. You might wish to put entries into the Registry etc. inno setup does all of that.
What's more, it is free!
Eddie |
|
Back to top |
|
|
leszpol
Joined: 25 Apr 2008 Posts: 29 Location: Gdynia-TriCity
|
Posted: Tue May 27, 2008 6:06 pm Post subject: |
|
|
Thank you for all replies. |
|
Back to top |
|
|
Andrew
Joined: 09 Sep 2004 Posts: 232 Location: Frankfurt, Germany
|
Posted: Tue May 27, 2008 7:10 pm Post subject: |
|
|
On the subject of installers - the best tool I have found over the years (and I have used quite a few), particularly for creating MSI installers, is WiX - The Windows Installer XML toolkit available from http://wix.sourceforge.net. It enables full manipulation of the MSI database structure via an defined XML API and has non of the drawbacks of UI tools which (especially for MSI installers) often have limitations. |
|
Back to top |
|
|
JohnHorspool
Joined: 26 Sep 2005 Posts: 270 Location: Gloucestershire UK
|
Posted: Tue May 27, 2008 10:30 pm Post subject: |
|
|
I also use the installer that Eddie suggested, it is very easy to use and very effective, giving a professional looking appearance to the installation. Many software vendors use this installer for both commercial products as well as freeware. |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2819 Location: South Pole, Antarctica
|
Posted: Mon Jun 02, 2008 7:30 pm Post subject: |
|
|
Still I would support the first poster. It would be better if Salford find the way to add its libraries to the exe. Salford is the only company with such, let me highlight this, disadvantage. In the DOS era when EXEs were 10KB and the libraries 1MB it had some sense to save on executable space. Now 1MB libraries do not add any excess weight to harddrives or not to uncommon 10MB EXE files. At least users must have the choise. With the installer you will mess with different versions libraries if you will install more than one application |
|
Back to top |
|
|
JohnHorspool
Joined: 26 Sep 2005 Posts: 270 Location: Gloucestershire UK
|
Posted: Tue Jun 03, 2008 9:00 am Post subject: |
|
|
Quote: | With the installer you will mess with different versions libraries if you will install more than one application |
Sorry, but I can't follow your logic here. With an installer, generally a new sub-directory will be created under C:\Program Files . This sub-directory will then contain all the necessary files for your application which may include multiple exe's, example files, tutorials, documentation and so on and of course a copy of Salflibc.dll Then, if at some later date the user installs another of your applications with a newer salflibc.dll, this will all go into a different installation area. There is no reason for the earlier application to be influenced by the later one.
In practice, aren't self contained exe's a bit of a rarity anyway, the vast majority of windows applications use multiple DLL's |
|
Back to top |
|
|
Andrew
Joined: 09 Sep 2004 Posts: 232 Location: Frankfurt, Germany
|
Posted: Tue Jun 03, 2008 12:16 pm Post subject: |
|
|
Following on from Johns reply - there are very few examples of self-contained executables and even where there are, they often rely on say Visual C runtime libraries. Out of interest - which compiler(s) do you know of that produce binaries that do not have dependencies on runtime DLLs? |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Thu Jun 05, 2008 7:08 pm Post subject: |
|
|
Even if you could attach the DLL to your EXE, you still need your help file to be separate (i.e. to fit in with normal - i.e. current - Windows practice, your help hypertext is in a .chm file, which is processed through the hypertext help (hh.exe) program.
Once you have two files to install, there is no reason not to have more.
Using the installer I mentioned, there is only a single EXE on the distribution disk - in my case, SETUP.EXE . This contains the target program(s), salflibc.dll, the .chm file, examples, etc etc, all effectively "zipped" into the installer ...
Eddie |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2819 Location: South Pole, Antarctica
|
Posted: Fri Jun 06, 2008 8:06 am Post subject: Re: |
|
|
JohnHorspool wrote: | Quote: | With the installer you will mess with different versions libraries if you will install more than one application |
Sorry, but I can't follow your logic here |
Easy to illustrate that is this: I was just recently
hit by interference asking for help here when eventually
what happen is that two salford's fortran installations
communicated via path.
This is also answer to Andrew's question about which compiler |
|
Back to top |
|
|
Andrew
Joined: 09 Sep 2004 Posts: 232 Location: Frankfurt, Germany
|
Posted: Fri Jun 06, 2008 9:44 am Post subject: |
|
|
Sorry - to clarify - I was asking which compiler generates binaries that do NOT have runtime dependencies. |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2819 Location: South Pole, Antarctica
|
Posted: Fri Jun 06, 2008 8:03 pm Post subject: |
|
|
I do not know any. Lets take compilers themself as an example, they are also executables. Compilers are exactly such executables which is not worth implementing in one single exe file. They are permanently in development and bug fixes and it would be a hell to install it each time the comma somewhere was missed . And nobody usually installs several copies of them.
The tasks which benefit from being a single executable are numerous relatively small codes - gadgets, toys etc. which people sometimes tend to use for decades. During such timescales any doubts salflibc will change so much, that most probably will be completely incompativle with older executables ? Lot of freeware and shareware are single-file executables which do not need installs and this sometimes is very convenient.
By the way, how many people still use fortran 77 ? |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Fri Jun 06, 2008 9:49 pm Post subject: |
|
|
Dan,
I generally use FORTRAN 77 style: fixed format in a .FOR file. I have been seduced slightly with:
(a) ! for inline comments
(b) array = constant when I want to intialise the whole array (but I always add a ! comment so I'll know what it is doing later)
(c) I have used & as the continuation marker in new code as I don't think I'll ever drop a deck of cards again (the last time I did so was in 1972 anyway!)
I ONLY use implicitly-typed variables, and only use lower-case for debugging code. In 39 years of programming Fortran I only ever used 2 explicitly-typed variables, and they have given me so much aggravation ever since that last year I finally renamed them!
So count me as pretty much using fortran-77
If you always put salflibc in the same sub-directory as the program, and don't add a new path setting, you never get a conflict. FTN95 needs a PATH because it is a command-line program, so it doesn't get its PATH from the registry, but from AUTOEXEC. I think that it is a mistake to put salflibc.dll in WINDOWS\SYSTEM
Eddie |
|
Back to top |
|
|
IanLambley
Joined: 17 Dec 2006 Posts: 490 Location: Sunderland
|
Posted: Fri Jun 06, 2008 9:59 pm Post subject: Re: |
|
|
Andrew wrote: | Sorry - to clarify - I was asking which compiler generates binaries that do NOT have runtime dependencies. |
Was that a challenge? How about Prospero PC Fortran?
Regards
Ian
Well! that gave my age away didn't it, before long I'll be reminiscing over ICL Jean! |
|
Back to top |
|
|
|