The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: starzboy on May 17, 2009, 07:46:22 AM

Title: Update maker
Post by: starzboy on May 17, 2009, 07:46:22 AM
I have a general question, suppose i have a program and i want my users to update it, how is this done ?
I want the program to check the latest file on the server via a specific path, if newer then download it.

Does an external program exist to do this kind of work ?

Thankyou
Title: Re: Update maker
Post by: UtillMasm on May 17, 2009, 08:01:38 AM
server? path?
what's you mean? :wink
Title: Re: Update maker
Post by: starzboy on May 17, 2009, 08:07:45 AM
yes i meant server.
Title: Re: Update maker
Post by: UtillMasm on May 17, 2009, 09:10:13 AM
oh, mybe myWSUS is for you. :wink
Title: Re: Update maker
Post by: Vortex on May 17, 2009, 10:02:31 AM
Hi starzboy,

As an exercise, you could move your code to be updated to individual DLLs. Your clients can download the latest versions of those DLLs to update the application.

UtilMasm,

WSUS, Windows Server Update Services is a tool to distrubute the MS hotfixes and service packs to all the clients on the network.
Title: Re: Update maker
Post by: starzboy on May 17, 2009, 01:21:32 PM
I have, the code is in the dll, i want my program to check the dll versions and if new then download and replace.
How should i proceed ?
Title: Re: Update maker
Post by: PBrennick on May 17, 2009, 03:24:39 PM
Hi starzboy,

Using the attached program you can accomplish your mission. You will have to modify the URL in the source. The DLL should be zipped. this program will download the zip to the directory you have hardcoded in the program to the hardcoded location and then unzip it. Have the program create a special subfolder for this task. Once the new DLL has been downloaded you can check the date stamp of it against the current DLL. If newer, then copy the new DLL over the old one (unload it first of course). You can add the pertinent code to your program and add a menu item that allows the user to check for updates. If the DLL is replaced, ask the user to restart the program.

Paul


[attachment deleted by admin]