On 8/29/2012 17:46, Krzysztof wrote:
Hi,
I have some problem. Example:
I created some exec using free pascal and lazarus. It is placed on
http server. User in webbrowser click download, and server should
attach link from where it is clicked into this exec. So when user run
downloaded exec, this exec can read this link. The idea is that
everything is in one file (and must be). My question is, exists any
commandline tool which can edit executable file for edit some resource
(like ResEdit or Restorator for Windows) which can be used by http
server? By resource I mean some const (or resourcestring section, free
pascal binary can replace it in runtime, can some tool do this same
outside?). So main problem is in server side. Finally we can use free
pascal compiler and compile modified source by server, but this
solution we use when everything fails (admins, restrictions etc.). I
need this only for windows (for now), so I'm considering some
commandline installer makers like InnoSetup or something. Any idea?
i think i know what you are asking for and my thought actually matches what mark
loyd seemed to be saying... with that in mind, i remember reading about some
sort of resource editor to allow editing of resources in a binary... it was
posted in this area back in jan 2012... i don't know if this is what you are
looking for but here's what i found...
[QUOTE]
Date: Mon, 30 Jan 2012 09:09:42 +0100
From: Reinier Olislagers <reinierolislag...@gmail.com>
To: FPC Mailing list <fpc-pascal@lists.freepascal.org>,
Lazarus mailing list <laza...@lists.lazarus.freepascal.org>
Subject: [fpc-pascal] Poor man's resource code available and CheckRide update:
now with editor
Hi all,
(Cross posted to Lazarus+FPC lists)
Thanks to UPayload (http://www.delphidabbler.com/articles?article=7) and some
help on the forum, I could implement an alternative way of storing files in an
executable file (basically it just appends them with a footer). See source:
poormansresource.pas in https://bitbucket.org/reiniero/checkride/src/, and the
CheckRideResourceZipper project for sample code
This method allows me to edit such a "resource" using an FPC/Lazarus program. As
- I think - DoDi predicted, I had a lot of trouble trying to work with regular
Windows resources, but whether that is due to bugs in FPC, Windows or me, I
don't know ;)
I updated my CheckRide remote control package with this functionality: a helper
can edit CheckRide.exe with his hostname and port number and distribute that
single exe to his clients/helped persons. This allows 1 click operation at the
helped side.
I also tested operation with a Linux helper running stunnel+vncviewer and a
WIndows helped party running CheckRide.exe
See the site mentioned above.
Comments, patches, as well as criticism welcome ;)
Thanks,
Reinier
[/QUOTE]
if i'm reading the above correctly, it would appear that it can possibly do what
you are looking for... maybe...
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal