PDA

View Full Version : Check for documentation updates...



NewsArchive
11-12-2009, 03:27 AM
Friedrich,

May I ask how you do your 'Check for documentation updates'? Is this
something that can be done in SB7? I ask as our .CHM and .PDF files are now
nearly 60Meg, and I do have an option in my web update client to include or
exclude documentation, but it would be nice to have it on the help menu of
our App's too :)

Thanks in advance.

Colin.

NewsArchive
11-12-2009, 03:28 AM
Hi Colin,

> May I ask how you do your 'Check for documentation updates'? Is this
> something that can be done in SB7? I ask as our .CHM and .PDF files are
> now nearly 60Meg, and I do have an option in my web update client to
> include or exclude documentation, but it would be nice to have it on the
> help menu of our App's too :)

Our 'Check for documentation updates' makes direct use of the SetupBuilder
HTTP download component. But it uses internal and undocumented APIs to
handle this from the SetupBuilder IDE.

What it does is the following: there is an INI file on our server that
stores the CRC32 of the latest PDF and CHM. The latest PDF and CHM files
are located on our server in form of .zip files. If you do a 'Check for
documentation updates', SetupBuilder calculates the CRC32 of the local PDF
and CHM. If the CRC32 values are not equal, it offers to download the
PDF/CHM .zip files. After that, SetupBuilder unzips the new documentation.

It's possible to develop a similar functionality with SetupBuilder. You can
use the "Download File (HTTP)..." script function to download the INI (which
holds the CRC32 values) and the documentation .zip files. Then you can use
"Get File Info (File CRC-32)" to calculate the CRC32 values of the local
stored documentation files and compare the values of the new and old files.
Then you can use the "Unzip File(s)..." function to extract the downloaded
..ZIP files.

Friedrich

NewsArchive
11-13-2009, 02:45 AM
Neat, many thanks for sharing this information Friedrich :)

Colin Wynn [Administer Software Ltd]

NewsArchive
11-13-2009, 02:45 AM
>
> Neat, many thanks for sharing this information Friedrich :)
>

You are very welcome, Colin :)

Friedrich

NewsArchive
11-13-2009, 02:45 AM
Cool!

Jane