×
Menu

via Command Line

 
Application Updates can be applied via Command Line. This feature allows users to keep SwiftSort up to date in an Automated environment and allows users to define a more considered decision of how to progress via return codes.
 
 
Syntax:-
 
wyUpdate.exe <switches>
 
Example:-
 
wyUpdate.exe /quickcheck /justcheck /noerr
 
 
 
 
The executable can be located in your application folder (program files) which is dependant on your operating system and architecture.
 
 
 
 
Updating SwiftSort consists of two steps, checking for an update and then applying an update.
 
 

Checking for Updates

 
 
Switch
Value
Return Codes
Comment
/quickcheck
 
0 = No update available
Check for updates and only display form if update available.
 
It is not advised to use this switch solely as it requires user intervention if an update is available.
/justcheck
 
0 = No update available
1= Error occured
2= Update available
 
For use only in combination with the above.
 
Check for updates and  do not display a form if an update is available. A form is displayed should an error occur awaiting user intervention.   
/noerr
 
0 = No update available
1= Error occured
2= Update available
For use only in combination with the above two switches.
 
Check for updates and  do not display a form if an update is available or if an error occurs.
 
 
 

Applying Updates

 
 
Switch
Value
Return Codes
Comment
/skipinfo
 
0 = Update applied
Downloads and applies the available updates without user intervention unless an error occurs.
-updatepath=
https://updates.thesoftwarebureau.com/SwiftSort/Live/
 
 
This switch must be used and the value must be applied in order to point the updater to the relevant files. 
 
 
 

Usage

 
It is strongly advised that the switches above are used in two stages and in combination with each other as below.
 
Step 1 - Check for available updates:-
 
wyUpdate.exe /quickcheck /justcheck /noerr
 
 
Step 2 - Apply Update (only if Step 1 Return Code = 2):-
 
wyUpdate.exe /skipinfo -updatepath=https://updates.thesoftwarebureau.com/SwiftSort/Live/
 
 

Example

 
 
"C:\Program Files (x86)\SoftwareBureau\Swift\Sort\wyupdate.exe" /quickcheck /justcheck /noerr
 
 
REM 0 = No update available
if %ERRORLEVEL% equ 0 GOTO NoUpdate
 
 
REM 1 = Error occured
if %ERRORLEVEL% equ 1 GOTO Error
 
 
REM 2 = Update available
if %ERRORLEVEL% equ 2 GOTO UpdateAvailable
 
 
:NoUpdate
echo ****  No Update Found  ****
goto End
 
 
:Error
echo ****  Error  ****
goto End
 
 
:UpdateAvailable
echo ****  Appying Update  ****
"C:\Program Files (x86)\SoftwareBureau\Swift\Sort\wyupdate.exe" /skipinfo -updatepath=https://updates.thesoftwarebureau.com/SwiftSort/Live/
goto UpdateApplied
 
 
:UpdateApplied
echo ****  Update Applied  ****
 
 
:End
 
 
Updates should only be applied if SwiftSort is not open. Application Updates should always be applied prior to applying Resource Updates as Resource Updates are dependant on the version of SwiftSort in use.
 
To apply updates access to https://updates.thesoftwarebureau.com (Public IP 3.8.228.18) is needed . To route https traffic via a proxy see Proxy Server.
 
For installations that have no internet access due to security restrictions upgrades can also be applied locally by manually downloading the upgrade files from an unrestricted machine. Please contact support for further instructions and to be added to the relevant upgrade email subscriber list.