tis-putty 0.68-3

  • package : tis-putty
  • version : 0.68-3
  • description : Putty ssh client
  • maintainer : Simon Fonteneau
  • date : 2017-03-22 08:47:28
  • signer : Tranquil IT Systems
  • signature_date : 20170322-084717
  • min_os_version :
  • min_wapt_version :

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 *
import winshell
import time
import os


uninstallkey=[]



def remove_putty_if_install_with_exe():
    if uninstall_key_exists('PuTTY_is1'):
        killalltasks('putty.exe')
        #uninstaller cannot be silenced by design (cf putty.iss), so we remove stuff by hand
        #run('"%s" /VERYSILENT /SUPPRESSMSGBOXES' % os.path.join(programfiles32,'putty','unins000.exe'))
        if isdir(install_location('PuTTY_is1')):
            remove_tree(install_location('PuTTY_is1'))
        registry_delete(HKEY_LOCAL_MACHINE,'SOFTWARE\Classes\PuTTYPrivateKey',None)
        if iswin64():
            registry_delete(HKEY_LOCAL_MACHINE,'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\PuTTY_is1',None)
        else:
            registry_delete(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PuTTY_is1',None)
        putty_link = makepath(winshell.programs(common=1),'PuTTY')
        if isdir(putty_link):
            remove_tree(putty_link)
        unregister_uninstall('Putty_is1')


def install():

    remove_putty_if_install_with_exe()

    versionsoft = control['version'].split('-',1)[0]

    if iswin64():
        install_msi_if_needed('putty-64bit-%s-installer.msi' % versionsoft,min_version=versionsoft,killbefore=['putty.exe'])
    else:
        install_msi_if_needed('putty-%s-installer.msi' % versionsoft,min_version=versionsoft,killbefore=['putty.exe'])




    

manifest

[["WAPT/icon.png", "c05f47caca3c7958f798d4ddfd60345589aab7e8"], ["WAPT/wapt.psproj", "d140401965341ede69880cd6342c5db7040324b2"], ["removeputty.bat", "3bd303ccc45a1a58475ef8836ff39127b7a90673"], ["putty-64bit-0.68-installer.msi", "398a78eaa19bff31e4d77635692dc025a6106d53"], ["putty-0.68-installer.msi", "a0eb05deb765b8bca85496cf5e3a00fd4cb4fdbf"], ["setup.py", "b0b1e7bef3899d9c9ea0ea6151550eb35cb8f7de"], ["WAPT/control", "9feb74748fbf4109503db0851aaeb44f77317835"]]