PDA

View Full Version : Check for Update During Install



NewsArchive
09-30-2006, 04:11 AM
I'm going to be putting one of my projects on CD.

When they start the installation, I'd like the setup to check for a newer
version of my software and offer to install it.

Does anyone have an example of doing that? Or can someone point me to the
right example?


--
Paul MacFarlane
American Riviera Software Corp

NewsArchive
10-03-2006, 04:04 AM
No ideas on this?

NewsArchive
10-03-2006, 04:04 AM
Hi Paul,

>> I'm going to be putting one of my projects on CD.
>>
>> When they start the installation, I'd like the setup to check for a newer
>> version of my software and offer to install it.

In order to do that I think you need to _first_ install it. The
webdeploy uses registry settings that are added when the install runs,
so I think you at least have to install the one on the CD, _then_ you
can use the wupdate.exe to check for an update immediately after you
install.

Best regards,

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


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

NewsArchive
10-03-2006, 04:05 AM
Paul,

What Arnór said! Just initialize web update, then call the wupdate.exe
client at the end of the installation (e.g. add a "Check for Updates"
checkbox).

Friedrich

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

"point. click. ship" - that's SetupBuilder 5

NewsArchive
10-04-2006, 12:11 AM
Thanks.,...

Does seem like a waste to make the user go through installation just to do
it again....

The situation is I'm putting an installer on a CD and I can basically
guarantee it'll be out of date by the time people install it.....

I was thinking of ripping the code out of the webupdate project and adding
it into the regular project (with some changes of course- not reference the
registry for current version info, etc.).

It would be a nice feature though.... <g>

paul

NewsArchive
10-04-2006, 12:12 AM
Hi Paul,

>The situation is I'm putting an installer on a CD and I can basically
>guarantee it'll be out of date by the time people install it.....

You could just install the wupdate.exe so it can go download and
install the program. Maybe have an option in the CD install:

Full Install
Web Install

Full install would do the regular install, but web install would do
minimal install and then jump to the web to get the latest version.

Alternatively you could figure out exactly what the install creates in
the registry (or maybe Friedrich has it documented somewhere) - or you
could figure it out from the wupdate script) and just update it in
your script and then fire off to wupdate.exe

Best regards,

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


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

NewsArchive
10-04-2006, 12:12 AM
Good ideas...

Thanks...