2. Creating Configuration Files

Parent Previous Next

Once you have created your update package, you are ready to set up your update script file. This file has to be located in the path you have specified in the InstallForge environment (see Update Address) whereas it must be named as updatescript.ini. You also have to create a folder named Updates containing all current program files to be downloaded by Visual Update Express within the same path.


Creating your update script

The update script language is declarative making it very easy for you to create your own scripts. Generally it looks like this:


releases{

1.0

1.1

[...]

}


release:1.0{

}


release:1.1{

DownloadFile:MyProgram.exe,

DownloadFile:Builder.exe,bin

}


As you can see the script makes use of "blocks" containing all the necessary information. Within "releases" you have to list all available releases of your software you want to be supported by VUE for updates beginning with the first release (here: 1.0). For each in this way defined release you have to create a block with a command set VUE has to execute when updating (for the first release (here: 1.0) the block has to be left empty).

Below you will find all commands available in Visual Update Express.


Command

Parameters

DownloadFile

[File_Name],[Download_Path]

RenameFile

[Source_File_Name],[Destination_File_Name]

CopyFile

[Source_File_Name],[Destination_File_Name]

DeleteFile

[File_Name]

DeleteFiles

[Path],[Pattern]

CreateDirectory

[Folder_Name]

DeleteDirectory

[Folder_Name]


Following Windows path constants are supported be VUE to be used within parameters:

<System>, <Windows>, <Temporary>, <ApplicationData>, <Startup>, <CommonStartup>, <ProgramFiles>, <Fonts>, <Desktop>