Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. cmd.exe /c@echo off
  2.  
  3. cls
  4.  
  5.  
  6.  
  7. title Installing N-able Remote Monitoring Software
  8.  
  9.  
  10.  
  11. SET "installerLocation=--_CUT_---\users\dyonyx"
  12.  
  13. SET "alreadyInstalled=The N-able Agent is already installed"
  14.  
  15. pauseSET "notInstalled=The N-able Agent is not yet installed, installing it now..."
  16.  
  17. pauseSET "programFiles=c:\program files"
  18.  
  19.  
  20.  
  21. REM Check to see if its x86 or x64
  22.  
  23. IF %PROCESSOR_ARCHITECTURE% EQU AMD64 ( SET "programFiles=%programFiles% (x86)" )
  24.  
  25.  
  26.  
  27. REM Debug Information
  28.  
  29. echo %installerLocation%
  30.  
  31. echo %programFiles%
  32.  
  33.  
  34.  
  35. IF NOT EXIST "%programFiles%\N-Able Technologies\Windows Agent\bin\agent.exe" ( GOTO INSTALL ) else ( GOTO AlreadyInstalled )
  36.  
  37. GOTO: END
  38.  
  39.  
  40.  
  41. :INSTALL
  42.  
  43. echo %notInstalled%
  44.  
  45. \\%installerLocation%\147WindowsAgentSetup.exe pauseGOTO END
  46.  
  47.  
  48.  
  49. :AlreadyInstalled
  50.  
  51. echo %AlreadyInstalled%
  52.  
  53. GOTO END
  54.  
  55.  
  56.  
  57. :END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement