View Full Version : Question about creating a zip archive
NewsArchive
03-13-2011, 04:23 AM
Hello all,
Just checked out the Create Zip Archive tool. Nice! Very Nice!
Is there a way to automatically generate a zip archive when I compile my SB
project and add that archive in with my setup executable?
I have a NetTalk web app that ships with another app. The NT app has allot
of files associated with running a web app. They make my setup exe larger
than I would like. If I could include a zipped archive of those files it
would reduce my setup exe's size. I thinking of unzipping the files into
the user's directory when they run my install.
Thanks!
Don
NewsArchive
03-13-2011, 04:25 AM
Hi Don,
> Just checked out the Create Zip Archive tool. Nice! Very Nice!
>
> Is there a way to automatically generate a zip archive when I compile my
> SB project and add that archive in with my setup executable?
>
> I have a NetTalk web app that ships with another app. The NT app has
> allot of files associated with running a web app. They make my setup exe
> larger than I would like. If I could include a zipped archive of those
> files it would reduce my setup exe's size. I thinking of unzipping the
> files into the user's directory when they run my install.
Yes, absolutely no problem. You can use the "#zip file(s)..." compiler
directive to create a ZIP archive at compile time. You can then
automatically add the created ZIP to the setup.exe. You can even unzip that
file at installer runtime.
I have attached a simple source code demo. At compile time, it creates a
'sbtest.zip' archive and adds one file to that archive. At installer
runtime, the zip is extracted to 'c:\sbtest'.
Does this help?
BTW, but I don't think that this will reduce the size of your installer.
SetupBuilder itself creates highly-optimized installer executables.
Friedrich
NewsArchive
03-14-2011, 01:37 AM
"BTW, but I don't think that this will reduce the size of your installer.
SetupBuilder itself creates highly-optimized installer executables."
Well, I use WebUpdate. I have to upload 600+ files to my server because of
the web app. Zipping the web files will probably reduce that number
dramatically. Maybe speed things up a bit.
I cannot wait for SB version 8..... :-)
Don
NewsArchive
03-14-2011, 01:37 AM
Hi Don,
> "BTW, but I don't think that this will reduce the size of your installer.
> SetupBuilder itself creates highly-optimized installer executables."
>
> Well, I use WebUpdate. I have to upload 600+ files to my server because
> of the web app. Zipping the web files will probably reduce that number
> dramatically. Maybe speed things up a bit.
Yes, absolutely. In this case, it does definitely make sense to use a .ZIP
archive!
>
> I cannot wait for SB version 8..... :-)
>
:-)
Friedrich
NewsArchive
03-15-2011, 03:37 AM
Thanks Friedrich!
Donald Ridley
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.