PDA

View Full Version : Utility to extract, replace files in SB setup.exe's



NewsArchive
09-05-2007, 12:36 PM
After I have made a Setup.exe I would like to just replace one file inside it,
like the way I can open up a Zip file and replace a file.

I realize I will need to sign the setup.exe again.

Does such a utility exist?

-----------
Carl Barnes
www.carlbarnes.com
Maker of CW Assistant, Clarion Source Search,
CHM4Clarion - Add Html Help to C5, 5.5, 6 and 7 with just 4 lines of code

NewsArchive
09-05-2007, 12:37 PM
Carl,

No, because SetupBuilder creates native Win32 executables. Similar to
replacing a bitmap compiled into a Clarion or Visual Studio executable. You
also have to recompile (and code-sign) such an .exe.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.5
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
09-05-2007, 12:37 PM
Hi Carl,

>After I have made a Setup.exe I would like to just replace one file inside it,
>like the way I can open up a Zip file and replace a file.

You can use wildcards in SB to add files from folders. You can also
compile projects without opening SB, i.e. with command line
parameters. Since I always duplicate the install structure in my
Products folder where I build my installs I've taken to use just
wildcards for most folders. That way if I add a file all that I need
to do is recompile:) Of course that also means that you must _remove_
files that are no longer needed, which just bit me in the behind this
am<g>

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
09-06-2007, 01:57 AM
I looked at a Setup.exe hoping to find a list of resources (1 for each file)
that maybe I could replace one with a revised one (that I extracted from a
newer Setup.exe) using a resource manager.

Consider it a suggestion. A possible way I could see the utility working is:
1. Pick setup.exe #1
2. Pick setup.exe #2
3. A list of file names common to both installs appear, maybe with date/time/size info
4. A way to transfer file from #1 to #2

I sign using my own batch file so the signing again is no problem.

On occasion we get into a dilemma were we would like to just update a few files
in an older setup.exe and don't have all the original files needed to run the
SB script. If it was a ZIP file we could do it with ease. I think WinZip will
let you manipulate a self extracting Zip.

-----------
Carl Barnes
www.carlbarnes.com
Maker of CW Assistant, Clarion Source Search,
CHM4Clarion - Add Html Help to C5, 5.5, 6 and 7 with just 4 lines of code

NewsArchive
09-06-2007, 01:58 AM
Carl,

Thank you for your suggestion! But unfortunately, this is not possible.

Let me try to explain. (WinZip et al.) SFX Zip files are nothing more or
less than simple archives with a Win32 stub. That stub knows nothing about
the files included in the archive part. It simply decompresses what is in
the "zip". Does a SFX Zip file support conditional statements like IF,
THEN, ELSE, ELSEIF, LOOP, etc.? No!

A SetupBuilder setup.exe is *not* a self-extracting file! SetupBuilder
compiles native Win32 applications. Files are not part of the setup.exe
resource. The binary contents of a setup.exe includes "file objects" (this
can be a complete file, a delta patch file or multiple-version delta
patches). You cannot simply "replace" a file from within such a Win32
executable.

Friedrich