NewMatic Web Update How-To
On the theory that examples are the best way to show how to use something, here are some sample version information files. All assume the CurrentVersion in the NMWUpdate component is set to 1.1.1.1 or lower.
- Updating an Application's executable
Version=1.1.1.2 Download=http://www.mysite.com/MyApp/MyApp.exe Path=<INSTALLDIR> Run=<INSTALLDIR>\MyApp.exe
- Updating an Application's Help File in the \Windows\Help directory
Version=1.1.1.2 Download=http://www.mysite.com/MyApp/MyApp.hlp Path=<WINDIR>\Help Run=<INSTALLDIR>\MyApp.exe
- Updating a DLL located in the \Windows\System directory
Version=1.1.1.2 Download=http://www.mysite.com/MyApp/Some.dll Path=<WINSYSDIR> Run=<INSTALLDIR>\MyApp.exe
This will only work if "MyApp.exe" unloads the DLL when it closes! - Updating multiple files using a Setup program
Version=1.1.1.2 Download=http://www.mysite.com/MyApp/SelfExtractAndRun.exe Path=<TEMPDIR> Run=<TEMPDIR>\SelfExtractAndRun.exe
SelfExtractAndRun.exe is, for instance, a self-extracting zip of a group of InstallShield files, which will automatically run setup.exe after extraction. - Downloading and extracting a compressed file (.CAB)
Version=1.1.1.2 Download=http://www.mysite.com/MyApp/MyApp.cab Path=<TEMPDIR> Run=extract.exe /Y <TEMPDIR>\MyApp.cab <INSTALLDIR>\MyApp.exe
About the Version numbers
The Version numbers set in the component and in the Version-Information file on the website do not have to correspond to any actual Version numbers set in the application itself, if the UseVerInfo property is set to False. They do, however, have to be in the Major.Minor.Release.Build format.
As long as the Version number in the Version-Information file on the website is higher than the CurrentVersion set in the component, the files will be updated.
© 2004 Brute Force Programming
ALL RIGHTS RESERVED
