# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
# This file is part of WAPT
# Copyright (C) 2014 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 time
uninstallkey = []
uninstallstring = []
def install():
global uninstallstring
uninstallstring = [ ]
print('installing DIA for Windows')
run(r'"dia-setup-0.97.2-2-unsigned.exe" /S')
def uninstall():
run('"%s" /S' % os.path.join(programfiles32,'Dia','dia-0.97.2-uninstall.exe'))
while(isrunning('Au_.exe')):
time.sleep(1)
dia_dir = os.path.join(programfiles32,'Dia')
if os.path.exists(dia_dir):
remove_tree(dia_dir)