PDA

View Full Version : Web Update - modifications to the stratgey



NewsArchive
03-24-2008, 04:27 AM
I have decided to gradually change my method if updating as my applications
tend to change quite a lot regularly. So i am now going to start developing
one installer that anyone can download. it will act as a full install for
new contacts, a main install for new clients and an upgrade for existing
clients. I will do this by detecting a registry key.

However I would like to keep the web update ****ogy in that the program
checks every x days by comparing the version on the server with the registry
version. Can I just have web update check that server file and then download
the main installer? In other words, rather than send individual files to the
server and have web update install those, I just want it to download the
main exe again.

That way my installer never has to change other than adding the new files
and some internal conditions if a version already exists.

Of course I might still continue with my current methods it does seem
somewhat silly to load the upgrade with all the C6 and 3rd party dll's that
may not need replacing but am trying to balance ease of maintenance of the
installers with size of download etc.

I hope this makes sense.

TIA

John Fligg

NewsArchive
03-24-2008, 04:28 AM
Hi John,

>version. Can I just have web update check that server file and then download
>the main installer? In other words, rather than send individual files to the
>server and have web update install those, I just want it to download the
>main exe again.

Upload the .ini file to your server as you do with normal updates, and
set your wupdate.exe to check for an update. If there is an update,
then open a URL to download the update file and popup a message to
tell the user that they should close the proogram, wait for the
download to finish and then run it.

CheckForUpdates Procedure
RC Long
ITS ITShellClass
Code
Run('wupdate.exe /C /S',1)
RC = RunCode()
If RC = 1
If Message('There is a newer version of the program available for download'...
'Download the update?'...) = BUTTON:YES

ITS.OpenURL('http://www.icetips.com/downloads/myinstall.exe')
Message('You should close this program, wait for the install to download then run it')
End
Else
Message('No new updates available')
End

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
03-24-2008, 04:29 AM
Thanks Arnor! Saved for future reference.


--
Russell B. Eggen
www.radfusion.com
Skype Clarion chat: http://tinyurl.com/2273lm

NewsArchive
03-24-2008, 04:30 AM
John,

Open your updater script (wupdate or whatever you renamed it to)

Go to the end of the script and you will see how easily you can switch to
your startegy of using an installer-updater
If %DOWNLOADUPDATE% Equals "$TRUE$" Then
Display Setup Progress Dialog
Download File from
"%HOST_ADDRESS%/%HOST_DIRECTORY%/%HOST_UPDATEFILENAME%" to "%TMPDIR%"
[no-cache]
End

%HOST_ADDRESS etc carry the infos you want .....

The ini file generated by SB updater can be hand created by you and sent to
your server in the same directory the installer is

The only pb I see is the name of the installer-updater migth have to be the
one of the updater exe file ..... but I am sure Lord and Master will correct
me :)

--
Thank you

Cordialement - Best regards
Jean-Pierre GUTSATZ

CGF

Data Management Center - A tool to let you Migrate Import Export Transfer
all your Data very easily
www.dmc-fr.com
Certified by Microsoft : "Works with Vista" & "Works with Windows Server
2008"