PDA

View Full Version : Suggestion: Version Resource Embedding



NewsArchive
08-18-2010, 01:44 AM
SB already provides manifest embedding and code signing. Any chance it
could also include version resource embedding for EXE and DLL files?

Obviously with FAR<g> more flexibility than the current APP extension
and also for easier addition to hand coded projects, ie: no APP file.

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://www.cpcs-inc.com

NewsArchive
08-18-2010, 01:45 AM
Lee,

> SB already provides manifest embedding and code signing. Any chance it
> could also include version resource embedding for EXE and DLL files?
>
> Obviously with FAR<g> more flexibility than the current APP extension
> and also for easier addition to hand coded projects, ie: no APP file.

We already tried it some years ago but embedding a version resource to an
existing application file is not that easy (and can be dangerous). You need
a (good) resource editor to do it correctly. The risk is too high to add
such a feature to the SetupBuilder compiler.

Friedrich

NewsArchive
08-18-2010, 01:45 AM
Friedrich,

> We already tried it some years ago but embedding a version resource to an
> existing application file is not that easy (and can be dangerous). You need
> a (good) resource editor to do it correctly. The risk is too high to add
> such a feature to the SetupBuilder compiler.

But, Friedrich, I thought you could do ANYTHING!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://www.cpcs-inc.com

NewsArchive
08-18-2010, 01:46 AM
He's working on the coffee feature, so give him a break! <g>

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm

NewsArchive
08-18-2010, 01:46 AM
Lee,

>
> But, Friedrich, I thought you could do ANYTHING!<g>
>

<G>

In this case, it is not enough to simply use the UpdateResource API to
add/modify the version resource. This Windows API does not work with
certain type of EXE files. Two years ago, we did an alpha test with such a
"#set version resource..." compiler directive and it turned out that about
80 out of 500 files (generated with different compiler versions of Clarion,
Delphi, VC, VB, Borland C++, etc.) were corrupted after such a version
resource updating process.

A "real" resource editor does more than just adding the version resource via
the UpdateResource API. It "rebuilds" the .exe to make sure that you have a
valid application file after the updating process.

But it's not a trivial task to develop such a resource editor that works
with all kind of application files.

Friedrich

NewsArchive
08-18-2010, 01:47 AM
Hi Lee,

> SB already provides manifest embedding and code signing. Any chance it
> could also include version resource embedding for EXE and DLL files?

It's called Build Automator - www.buildautomator.com <g> I use it to set up
version information on all my products, compiled (clarion and non-clarion
compiles), sources (clw, inc, tpl, tpw) , help files (help&manual),
installs, whatever.

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
08-19-2010, 02:45 AM
Friedrich,

> In this case, it is not enough to simply use the UpdateResource API

Understood and appreciated.

I'll ponder a bit longer on my next suggestion!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://www.cpcs-inc.com

NewsArchive
08-19-2010, 02:45 AM
> Understood and appreciated.
>
> I'll ponder a bit longer on my next suggestion!<g>

<BG> ;-)

Friedrich

NewsArchive
08-20-2010, 04:51 AM
I use the Bo_resc fro Comsoft7... works great. I really never have to think
about it except when I change version numbers so it shows up correctly in
the exe properties. Then I have a separate setupbuilder compile that I use
to just add the manifest and code signing to all my apps at once. Then I use
IQ sync to copy my files to the folders getting ready for the final
setupbuilder installation.

All of this is done with a mouse click using Build Automator.

I realize I do a lot of work trying not to do a lot of work :)

Ray
VMT

NewsArchive
08-20-2010, 04:52 AM
Hi Ray,

> All of this is done with a mouse click using Build Automator.
>
> I realize I do a lot of work trying not to do a lot of work :)

Build Automator does that to you!<g>

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php