@echo off
cls
setlocal
set /a varWait=%random% %%61
REM #################################
REM # Mozilla Firefox ESR 52.4.1
REM # AirWatch Staging & Provisioning
REM #################################
timeout %varWait%
if exist "%ProgramFiles(x86)%\Mozilla Firefox" (
"%ProgramFiles(x86)%\Mozilla Firefox\uninstall\helper.exe" -ms -ma
"%SystemDrive%\AirWatch\FirefoxSetup52.4.1esr.exe" -ms -ma
) else (
"%SystemDrive%\AirWatch\FirefoxSetup52.4.1esr.exe" -ms -ma
)
timeout %varWait%
endlocal
REM #############
REM # START NOTES
REM #############
REM ## Checks if Mozilla Firefox in already installed, if so uninstalls,
REM ## re-installs v52.4.1 ESR and cleans-up. If not installs fresh and
REM ## then cleans-up.
REM # 2-clause license ("Simplified BSD License" or "FreeBSD License")
REM #
REM # Copyright © 2018, Adam Brian Chilcott
REM # All rights reserved.
REM #
REM # Redistribution and use in source and binary forms, with or without
REM # modification, are permitted provided that the following conditions are met:
REM #
REM # 1. Redistributions of source code must retain the above copyright notice, this
REM # list of conditions and the following disclaimer.
REM # 2. Redistributions in binary form must reproduce the above copyright notice,
REM # this list of conditions and the following disclaimer in the documentation
REM # and/or other materials provided with the distribution.
REM #
REM # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
REM # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
REM # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
REM # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
REM # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
REM # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
REM # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
REM # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
REM # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
REM # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
REM #
REM # The views and conclusions contained in the software and documentation are those
REM # of the authors and should not be interpreted as representing official policies,
REM # either expressed or implied, of the FreeBSD Project.
REM ###########
REM # END NOTES
REM ###########
Comments