Sample Updates Configuration File For An EXE Application
In this article you will find sample updates configuration files for an EXE application. Note that these files can be generated automatically by using an Updates Configuration Project.
The file version will be used as a detection criteria for the update.
1. First update
For the first update, the updates configuration file can look like this:
;aiu; [myapplication2.0] Name = MyApplication 2.0 Description = Fixed crashing bug. URL = http://www.myupdateslocation.com/download/myapplication2.0.msi Size = 654321 ServerFileName = myapplication2.0.msi FilePath = [APPDIR]myapplication.exe Version = 2.0
2. Second update
For the second update, the updates configuration file can look like this:
;aiu; [myapplication3.0] Name = MyApplication 3.0 Description = Fixed error when opening large files. URL = http://www.myupdateslocation.com/download/myapplication3.0.msi Size = 854321 ServerFileName = myapplication3.0.msi FilePath = [APPDIR]myapplication.exe Version = 3.0 Replaces = All [myapplication2.0] Name = MyApplication 2.0 Description = Fixed crashing bug. URL = http://www.myupdateslocation.com/download/myapplication2.0.msi Size = 654321 FilePath = [APPDIR]myapplication.exe Version = 2.0
3. Patch update
Adding a patch update can make the updates configuration file look like this:
;aiu; [myapplication3.1] Name = MyApplication 3.1 Description = Patch URL = http://www.myupdateslocation.com/download/myapplication3.1.msp Size = 44321 ServerFileName = myapplication3.1.msp FilePath = [APPDIR]myapplication.exe Version = 3.1 Depends = myapplication3.0 [myapplication3.0] Name = MyApplication 3.0 Description = Fixed error when opening large files. URL = http://www.myupdateslocation.com/download/myapplication3.0.msi Size = 854321 FilePath = [APPDIR]myapplication.exe Version = 3.0 Replaces = All [myapplication2.0] Name = MyApplication 2.0 Description = Fixed crashing bug. URL = http://www.myupdateslocation.com/download/myapplication2.0.msi Size = 654321 FilePath = [APPDIR]myapplication.exe Version = 2.0
Here are more updates configuration samples.