windows script
Budget: $30 – $250 AUD
Tasks completed by the script
• Check for an active network connection if none found exit
• Determine the IP address of the “back of house PC” by:
o checking to see what the current gateway ip is. i.e If the gateway ends in .254 then set the “back of house PC” variable to xxx.yyy.zzz.1. If the gateway ends in .1 then set the “back of house PC” variable to xxx.yyy.zzz.11.
o
• check for a rollback flag
o Check for rollback.txt on (\\back-of-house-pc\lifelenzversions\current\rollback.txt) user name test1 password 12345
o If it cannot access the back of house PC then exit
• If a rollback flag is found On \\back-of-house-pc\lifelenzversions\current\ Then the following would be executed:
o Compare file creation date of the file
\\back-of-house-pc\lifelenzversions\previous\LIFELENZ-TimeClockSetup.msi
With
C:\lifelenzversions\LIFELENZ-TimeClockSetup.msi
If they are the same then the script will write to a log file and exit, the device will continue to load as normal
If They are not the same then
o Copy and over write all files from \\back-of-house-pc\lifelenzversions\previous\to c:\livelenzversions
o Stop the lifelenz.exe service
o Run c:\livelenzversions\installprod.bat
o Once completed Write to a log file containing the current installed lifelenz creation date and an overall completion slash failure result.
o Restart.
• If a rollback flag is not found in \\back-of-house-pc\lifelenzversions\current\ Then the following would be executed:
o Compare file creation date of the file
\\back-of-house-pc\lifelenzversions\current\LIFELENZ-TimeClockSetup.msi
With
C:\lifelenzversions\LIFELENZ-TimeClockSetup.msi
If they are the same then the script will write to a log file and exit, the device will continue to load as normal
If They are not the same then
o Copy and overwrite all files from \\back-of-house-pc\lifelenzversions\current\to c:\livelenzversions
o Stop the lifelenz.exe service
o Run c:\livelenzversions\installprod.bat
o Once completed Write to a log file containing the current installed lifelenz creation date and an overall completion slash failure result.
o Restart.
General notes
• The c:\lifelenzversions folder should always contain 3 files as below
Contents of the log file
• The log file should be added to each time and contain one line per log
• The date
• The time
• The first line from the releasesummary.TXT file Contained in c:\lifelenzversions
“Version: 1.40.0017” *the version number will change
• The last script action e.g version up to date exit or new version installed restarted
log file location
\\back-of-house-pc\lifelenzversions\current\log\
Log file name
Lifelenzlog(last update date and time).txt
• Check for an active network connection if none found exit
• Determine the IP address of the “back of house PC” by:
o checking to see what the current gateway ip is. i.e If the gateway ends in .254 then set the “back of house PC” variable to xxx.yyy.zzz.1. If the gateway ends in .1 then set the “back of house PC” variable to xxx.yyy.zzz.11.
o
• check for a rollback flag
o Check for rollback.txt on (\\back-of-house-pc\lifelenzversions\current\rollback.txt) user name test1 password 12345
o If it cannot access the back of house PC then exit
• If a rollback flag is found On \\back-of-house-pc\lifelenzversions\current\ Then the following would be executed:
o Compare file creation date of the file
\\back-of-house-pc\lifelenzversions\previous\LIFELENZ-TimeClockSetup.msi
With
C:\lifelenzversions\LIFELENZ-TimeClockSetup.msi
If they are the same then the script will write to a log file and exit, the device will continue to load as normal
If They are not the same then
o Copy and over write all files from \\back-of-house-pc\lifelenzversions\previous\to c:\livelenzversions
o Stop the lifelenz.exe service
o Run c:\livelenzversions\installprod.bat
o Once completed Write to a log file containing the current installed lifelenz creation date and an overall completion slash failure result.
o Restart.
• If a rollback flag is not found in \\back-of-house-pc\lifelenzversions\current\ Then the following would be executed:
o Compare file creation date of the file
\\back-of-house-pc\lifelenzversions\current\LIFELENZ-TimeClockSetup.msi
With
C:\lifelenzversions\LIFELENZ-TimeClockSetup.msi
If they are the same then the script will write to a log file and exit, the device will continue to load as normal
If They are not the same then
o Copy and overwrite all files from \\back-of-house-pc\lifelenzversions\current\to c:\livelenzversions
o Stop the lifelenz.exe service
o Run c:\livelenzversions\installprod.bat
o Once completed Write to a log file containing the current installed lifelenz creation date and an overall completion slash failure result.
o Restart.
General notes
• The c:\lifelenzversions folder should always contain 3 files as below
Contents of the log file
• The log file should be added to each time and contain one line per log
• The date
• The time
• The first line from the releasesummary.TXT file Contained in c:\lifelenzversions
“Version: 1.40.0017” *the version number will change
• The last script action e.g version up to date exit or new version installed restarted
log file location
\\back-of-house-pc\lifelenzversions\current\log\
Log file name
Lifelenzlog(last update date and time).txt
Related categories:
Microsoft