Silent installation and uninstallation of Windows On-Premise Poller

Silent installation and uninstallation of Windows On-Premise Poller

Silent installation of an On-Premise Poller on Windows

Follow the steps below for the silent installation of an On-Premise Poller on a Windows server:
  1. Download the install.iss file.
  2. Open the install.iss file in an editor and navigate to line 20
  3. Locate the szMsg key and enter your Device Key. You can obtain the Device Key from the Site24x7 web client (Admin > Developer > Device Key). 
    Example:  szMsg=<Device key>
    NotesNote: Delete the install.iss file once the installation is completed.
  4. Navigate to line 23. By default, the installation will be in the C:\Program Files (x86) folder. You can change the installation location by specifying the value for the szDir key.
    Example: szDir=<Installation Location>
  5. Execute the following command as an administrator in the Command Prompt:
    "<On-Premise Poller setup>" -s -a -s  -f1"<ISSPath>" -f2"<logpath>Install.log"
            Before executing the command, take a note of the following points:
    1. Depending on your OS (64-bit or 32-bit), replace <On-Premise Poller setup> with the default path or your configured installation path.
      Example: Replace <On-Premise Poller setup> with C:\Users\Downloads\Site24x7OnPremisePoller_64bit.exe
    2. Replace <ISSPath> with the location where the install.iss file is saved.
      Example: Replace <ISSPath> with C:\Users\Downloads\install.iss
    3. Replace <LogPath> with the path where log files should be created.
      Example: Replace <LogPath> with C:\Users\Downloads\Install.log
            The f2 is optional. By default, setup.log will be created in the current execution directory.
            Refer to the below sample command:
  C:\Users\Downloads\Site24x7OnPremisePoller_64bit.exe" -s -a -s -f1"C:\Users\Downloads\install.iss" -f2"C:\Users\Downloads\install.log
            After successful installation, the Install.log file will look like this:
             

Silent installation of an On-Premise Poller on Windows with Proxy setting

  1.  Download the install-proxy.iss file.
  2. Open the install-proxy.iss file in an editor and navigate to line 21.
  3. Locate the szMsg key and enter your Device Key. You can obtain the Device Key from the Site24x7 web client (Admin > Developer > Device Key). 
    ExampleszMsg=<Device key>
  4. Provide the proxy details in the install-proxy.iss file at lines 30, 31, 32, 33 of the following parameters:
         Host: <hostname>
         Port: <portnumber>
         Username: <your_username>
         Password: <your_password>
    Ensure that the details are entered correctly before proceeding with the setup.
  5. Alert
    Important: Delete the install-proxy.iss file once the installation is completed.

  6. Navigate to line 24. By default, the installation will be in C:\Program Files (x86) folder. You can change the installation location by specifying the value for the szDir key.
    Example: szDir = <Installation Location>
  7. Execute the following command as an administrator in the Command Prompt:
    "<On-Premise Poller setup>" -s -a -s -f1"<ISSPath>" -f2"<logpath>install-proxy.log"
    Before executing the command, consider the following:
    1. Based on your OS architecture (64-bit or 32-bit), replace <On-Premise Poller setup> with the default or configured installation path. 
      Example: Replace <On-Premise Poller setup> with C:\Users\Downloads\Site24x7OnPremisePoller_64bit.exe
    2. Replace <ISSPath> with the directory where the install-proxy.iss file is stored. 
      Example: Replace <ISSPath> with C:\Users\Downloads\install-proxy.iss
    3. Replace <LogPath> with the desired location for storing log files.
      Example: Replace <LogPath> with C:\Users\Downloads\install.log

    The f2 is optional. By default, setup.log will be created in the current execution directory.
    Refer to the below sample command:

    "C:\Users\Downloads\Site24x7OnPremisePoller_64bit.exe" -s -a -s -f1"C:\Users\Downloads\install-proxy.iss" -f2"C:\Users\Downloads\install.log"

Silent uninstallation of an On-Premise Poller on Windows

Follow the steps below for the silent uninstallation of an On-Premise Poller on a Windows server:
  1. To stop the On-Premise Poller service in Windows:
    1. Navigate to Start > Settings > Control Panel. Under Administrative Tools, click Services. Alternatively, you can search for services.msc using the Run dialog box. Then, stop the Site24x7 On-Premise Poller service as an administrator.
    2. You can also execute the following command in the Command Prompt:
    3. net stop SITE24X7_ONPREMISEMONITOR
  2. Download the uninstall.iss file.
  3. Execute the following command as an administrator in the Command Prompt:
  4. "<On-Premise Poller setup>" -s -a -s  -f1"<ISSPath>" -f2"<logpath>Uninstall.log"

    Before executing the command, consider the following:

    1. Replace <On-Premise Poller setup> with the default or configured installation path of the On-Premise Poller installer file
      Example: Replace <On-Premise Poller setup> with C:\Users\Downloads\Site24x7OnPremisePoller_64bit.exe
    2. Replace <ISSPath> with the location where the uninstall.iss file is saved.
      Example: Replace <ISSPath> with C:\Users\Downloads\uninstall.iss
    3. Replace <LogPath> with the desired directory for storing log files.
      Example: Replace <LogPath> with C:\Users\Downloads\uninstall.log

            The f2 is optional. By default, setup.log will be created in the current execution directory.
            Refer to the below sample command:

"C:\Users\Downloads\Site24x7OnPremisePoller_64bit.exe" -s -a -s -f1"C:\Users\Downloads\uninstall.iss" -f2"C:\Users\Downloads\uninstall.log"

            After successful uninstallation, the uninstall.log file will look like this:
    
  1. Set a proxy for my On-Premise Poller during its installation in a Windows server
  2. Fixing catastrophic failure issues when installing Windows On-Premise Poller
    • Related Articles

    • Silent installation of Linux On-Premise Poller

      Follow the steps below for the silent installation of an On-Premise Poller on a Linux server. You can also configure proxy during silent installation. Copy and paste the following commands in your terminal 64 bit OS: sudo wget ...
    • Troubleshooting steps for On-Premise Poller

      Prerequisites and basic details: Prerequisites for installing On-Premise Poller Necessary ports to allow access to the installed On-Premise Poller How secure is On-Premise Poller Amount of bandwidth consumed by the On-Premise Poller software Adding ...
    • Set proxy for Linux On-Premise Poller during installation

      There are 3 ways through which you can configure a proxy in an On-Premise Poller for a Linux server. During installation using the Installation Wizard Using the console During the silent installation of the On-Premise Poller Linux agent 1. During ...
    • Installation of Linux On-Premise Poller using the console

      Copy, paste, and execute the following commands in your terminal to install the On-Premise Poller 64 bit OS: sudo wget http://staticdownloads.site24x7.com/probe/Site24x7OnPremisePoller_64bit.bin sudo chmod 755 Site24x7OnPremisePoller_64bit.bin sudo ...
    • How do I uninstall an On-Premise Poller

      The default directories for installing the On-Premise Poller are: Windows: C:\Program Files(x86)\Site24x7OnPremisePoller Linux: /opt/Site24x7OnPremisePoller Follow the steps given below to uninstall the On-Premise Poller from your Windows or Linux ...