adamchilcott

airwatch_deploy_-_firefox.cmd

Nov 5th, 2017
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.52 KB | None | 0 0
  1. @echo off
  2.  
  3. cls
  4.  
  5. setlocal
  6.  
  7. set /a varWait=%random% %%61
  8.  
  9. REM #################################
  10. REM # Mozilla Firefox ESR 52.4.1
  11. REM # AirWatch Staging & Provisioning
  12. REM #################################
  13.  
  14. timeout %varWait%
  15.  
  16. if exist "%ProgramFiles(x86)%\Mozilla Firefox" (
  17.     "%ProgramFiles(x86)%\Mozilla Firefox\uninstall\helper.exe" -ms -ma
  18.     "%SystemDrive%\AirWatch\FirefoxSetup52.4.1esr.exe" -ms -ma
  19. ) else (
  20.     "%SystemDrive%\AirWatch\FirefoxSetup52.4.1esr.exe" -ms -ma
  21. )
  22.  
  23. timeout %varWait%
  24.  
  25. endlocal
  26.  
  27. REM #############
  28. REM # START NOTES
  29. REM #############
  30.  
  31. REM ## Checks if Mozilla Firefox in already installed, if so uninstalls,
  32. REM ## re-installs v52.4.1 ESR and cleans-up. If not installs fresh and
  33. REM ## then cleans-up.
  34.  
  35. REM # 2-clause license ("Simplified BSD License" or "FreeBSD License")
  36. REM #
  37. REM # Copyright © 2018, Adam Brian Chilcott
  38. REM # All rights reserved.
  39. REM #
  40. REM # Redistribution and use in source and binary forms, with or without
  41. REM # modification, are permitted provided that the following conditions are met:
  42. REM #
  43. REM # 1. Redistributions of source code must retain the above copyright notice, this
  44. REM # list of conditions and the following disclaimer.
  45. REM # 2. Redistributions in binary form must reproduce the above copyright notice,
  46. REM # this list of conditions and the following disclaimer in the documentation
  47. REM # and/or other materials provided with the distribution.
  48. REM #
  49. REM # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  50. REM # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  51. REM # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  52. REM # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
  53. REM # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  54. REM # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  55. REM # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  56. REM # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  57. REM # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  58. REM # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  59. REM #
  60. REM # The views and conclusions contained in the software and documentation are those
  61. REM # of the authors and should not be interpreted as representing official policies,
  62. REM # either expressed or implied, of the FreeBSD Project.
  63.  
  64. REM ###########
  65. REM # END NOTES
  66. REM ###########
Add Comment
Please, Sign In to add comment