UpdateAutoMate™ Method

Action2 Example

 

Encapsulates the AutoMate™ action in the “System” group, “Update AutoMate™.” The method attempts to check for a newer version of AutoMate™, and if one exists, updates the executables to the newest version.

 

Declaration

function UpdateAutoMate™ (intUpdateLocation As Integer,

varFTPServer As Variant,

varNetworkPath As Variant,

intShowProgress As Integer,

intForceReboot As Integer) As Integer

 

Parameters

intUpdateLocation

 Indicates whether AutoMate™ should check an FTP site for an updated version, or use an installation that already exists on a local path:

  

Value

Meaning

0

Check the Unisyn site for a new version

1

Use an installation on a local path

 

varFTPServer

 Checks the Unisyn FTP site for an updated version of AutoMate™. If left blank, AutoMate™ will attempt to contact ftp.unisyn.com for an update. This is only used if the intUpdateLocation parameter is set to “0.”

 

varNetworkPath

 The path to the installation to use. This is parameter is ignored unless intUpdateLocation is set to “1.”

 

intShowProgress

 Specifies whether or not to display a progress meter indicating the status of the download and update. Set to “1” to show a progress meter or “0” for silent upgrade.

 

intForceReboot

 Some updates of AutoMate™ require that the system be rebooted before the changes take effect. If intForceReboot is set to “1”, AutoMate™ will forcibly reboot the machine when the update is finished. If intForceReboot is set to “0”, AutoMate™ will wait until the next reboot by the user before the changes take effect.

 

Description

The UpdateAutoMate™ method is used to automatically update AutoMate™ to the latest version available from the Unisyn FTP site. Setting intUpdateLocation to “0” and the varFTPServer to ftp.unisyn.com (or “” for default) will cause AutoMate™ to contact the Unisyn site, check for a newer version, and if one is present, download it and automatically install it.

 

The UpdateAutoMate™ method can also forcibly install a pre-existing or older installation over itself. To do this, set intUpdateLocation to “1” and set varNetworkPath to the location of the AutoMate™ setup file.

 

Note that the upgrade process requires that AutoMate™ shut itself down, run the setup executable, and then restart. Therefore, running the UpdateAutoMate™ method will cause the script and any running tasks to stop.