We are packaging a Tomcat web application. I put shortcuts to the URL on the desktop and under the start up menu. Everything works fine.
We now want to check for updates before starting the application in the default browser. So I created this silly script and added shortcuts to that script instead.
Code: Select all
@echo off
echo checking for updates
"[#updater.exe]" /justcheck
set checkResult=%ERRORLEVEL%
echo update check result = '%checkResult%'
if %checkResult% EQU 0 (
echo found update, running updater
"[#updater.exe]" /checknow
)
if %checkResult% EQU -536870895 (
echo starting up the application
start http://[AI_TOMCAT_HOSTNAME]:[AI_TOMCAT_HTTP_PORT]
)
echo all done
I am aware that users could simply by pass this script by directly accessing the URL.
But I would prefer the check only to happen once per day, since some of the users will have very slow internet connectivity when in the field.
Apart from writing my own little frequency check, what are my options?
Or what better way to achieve the same goal?
Thank you,
Markus