Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmd.exe /c@echo off
- cls
- title Installing N-able Remote Monitoring Software
- SET "installerLocation=--_CUT_---\users\dyonyx"
- SET "alreadyInstalled=The N-able Agent is already installed"
- pauseSET "notInstalled=The N-able Agent is not yet installed, installing it now..."
- pauseSET "programFiles=c:\program files"
- REM Check to see if its x86 or x64
- IF %PROCESSOR_ARCHITECTURE% EQU AMD64 ( SET "programFiles=%programFiles% (x86)" )
- REM Debug Information
- echo %installerLocation%
- echo %programFiles%
- IF NOT EXIST "%programFiles%\N-Able Technologies\Windows Agent\bin\agent.exe" ( GOTO INSTALL ) else ( GOTO AlreadyInstalled )
- GOTO: END
- :INSTALL
- echo %notInstalled%
- \\%installerLocation%\147WindowsAgentSetup.exe pauseGOTO END
- :AlreadyInstalled
- echo %AlreadyInstalled%
- GOTO END
- :END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement