tis-nsclient 0.4.4.19-3

  • package : tis-nsclient
  • version : 0.4.4.19-3
  • description : NRPE pour Windows 32bits et 64bits
  • maintainer : TIS
  • date : 2017-07-20 11:22:23
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112222
  • min_os_version :
  • min_wapt_version :
  • Depends :

setup.py

#!/usr/bin/python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
#    This file is part of WAPT
#    Copyright (C) 2013  Tranquil IT Systems http://www.tranquil.it
#    WAPT aims to help Windows systems administrators to deploy
#    setup and update applications on users PC.
#
#    WAPT is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    WAPT is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with WAPT.  If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------
from setuphelpers import *

uninstallkey = []

def install():
  if iswin64():
    install_msi_if_needed('NSCP-0.4.4.19-x64.msi',killbefore='nscp.exe')
  else:
    install_msi_if_needed('NSCP-0.4.4.19-Win32.msi',killbefore='nscp.exe')

  print("copy nsclient.ini")
  if not isdir(makepath(programfiles,"NSClient++")) or not isdir(makepath(programfiles,"NSClient++",'scripts')):
    error('Destination dir not created propermy')
  filecopyto("nsclient.ini",makepath(programfiles,"NSClient++"))
  filecopyto("check_time.vbs",makepath(programfiles,"NSClient++","scripts"))
  filecopyto("check_ram.wsf",makepath(programfiles,"NSClient++","scripts"))
  filecopyto("CheckWindowsUpdateSettings.py",makepath(programfiles,"NSClient++","scripts"))
  filecopyto("check_searchindexer.py",makepath(programfiles,"NSClient++","scripts"))
  print ("restart nsclient")
  run_notfatal("net stop nscp")
  run_notfatal("net start nscp")

    

manifest

[["check_ram.wsf", "a58ca0ab47bf2a952dbb64d9eb051ff377f63eaa"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["check_searchindexer.py", "c45e50e3323f3f0c15db70971ade1151c04325c2"], ["CheckWindowsUpdateSettings.py", "7095389b5c1cebf0b4081f1563737637ddecb74f"], ["WAPT/icon.png", "8275cb0ee6fea68d27ba2c80e34888fa293dbb9b"], ["check_time.vbs", "5c0a80b8e9f25c80a22f4eb394154ea96b0682d9"], ["WAPT/control", "6aa582a7b539c9d623f56e00fbed83f109997ce8"], ["NSCP-0.4.4.19-x64.msi", "098426b07c048c7f91c08cd6f29dc9c11c159bd0"], ["nsclient.ini", "959925eadb39a0b5b3ce6bef2f4585dc2587abd0"], ["setup.py", "8b4b0fded9c8355e2e1272a77d49a38771551d48"], ["NSCP-0.4.4.19-Win32.msi", "f99fba6dabd01cd1c8731645f59f68033e28a969"], ["WAPT/wapt.psproj", "4e85d7af350c7aa022303492501577e1436625bd"]]