tis-paint.net icon

paint.net

Silent install package for paint.net

4.3.11-0

  • package: tis-paint.net
  • name: paint.net
  • version: 4.3.11-0
  • maintainer: Simon Fonteneau
  • licence: proprietary
  • locale: all
  • target_os: windows
  • impacted_process: PaintDotNet.exe
  • architecture: x64
  • signature_date:
  • size: 74.30 Mo
  • installed_size: 382.76 Mo
  • homepage : https://www.getpaint.net/
  • depends:

package           : tis-paint.net
version           : 4.3.11-0
architecture      : x64
section           : base
priority          : optional
name              : paint.net
categories        : 
maintainer        : Simon Fonteneau
description       : Free image and photo editing software for PCs that run Windows.
 It features an intuitive and innovative user interface with support for layers, unlimited undo, special effects,
 and a wide variety of useful and powerful tools.
depends           : tis-dotnetfx
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 1.5.1.20
sources           : 
installed_size    : 382758912
impacted_process  : PaintDotNet.exe
description_fr    : Logiciel gratuit d'edition d'images et de photos pour PC sous Windows.
 Il dispose d'une interface utilisateur intuitive et innovante avec prise en charge des calques, annulation illimitee, effets speciaux,
 et une grande variete d'outils utiles et puissants.
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : photo,graphics
licence           : proprietary
homepage          : https://www.getpaint.net/
package_uuid      : bb279c8d-4de5-4455-9e1b-84cf3ee9b04f
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : 18aa44d2d96b35d91a3a1664ea558a56b7afcc5d590c2124a2175d65f1a836b0
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : EGptbr53DLqHlrPKqLe5zB6uUSFAWtAxmJ3ULzSKPhpARDC+aEdCNe2T+iU5oNXNcu81ZaY3LUk0JM468JHam7F3USJGL+CZ3pTkVt/MhpilsFXTmF0YMsFIQzq4ABfrXTaFJbzO33jZuxCJ/HUr1tCs8cfiPp2bZJfesQwNqNba1VKAwSWFYtSOhemwz1xN5o95RESYE2ScMKMDtvGdGbRh/RjDP9pM1dsyLPdnia1tig8mFh3+QV61edicdGKgyORROJGJIcpqxNF0ICKFLUsOygN8Gpbt9XqS8gbBHA4Eirao1oRW9/Jf/4r1VKcUjV5Si99IlPnSkiR0L9oLzQ==
signature_date    : 2022-05-30T12:00:25.369167
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes

# -*- coding: utf-8 -*-
from setuphelpers import *
import time
import stat
import os
import json

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

""" You can do a CTRL F9 in pyscripter to update the package """

def install():

    install_msi_if_needed(glob.glob('*.msi')[0],killbefore=['PaintDotNet.exe'])

def update_package():
    proxies = {}
    if isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}

    currentpath = os.path.dirname(os.path.realpath(__file__))

    url_api = 'https://api.github.com/repos/paintdotnet/release/releases'

    json_load = json.loads(wgets(url_api, proxies=proxies))

    found = False
    for releases in json_load:
        if found :
            break
        for download in releases['assets']:
            if download['browser_download_url'].endswith('.winmsi.%s.zip' % control.architecture):
                url_dl = download['browser_download_url']
                binary = url_dl.split('/')[-1]
                found = True
                break
                
    realversion = binary.replace('paint.net.','').replace('.winmsi.%s.zip' % control.architecture,'')
                
    """
    I list all the msi file of the package and test the msi version
    if the version returned by the msi does not correspond to the previous one, I delete the file
    >>>
    """

    allmsi = glob.glob('*.msi')
    for msi in allmsi:
        vers = get_msi_properties(msi)['ProductVersion']
        if  vers != realversion :
            remove_file(msi)

    if not glob.glob('*.msi'):

        if not isdir(user_desktop()):
                mkdirs(user_desktop())

        """I download the file if it does not exist >>>"""
        wget(url_dl, 'paintnet.zip',proxies=proxies)


        """Unzip file >>>"""
        unzip('paintnet.zip','.')

        """Delete zip >>>"""
        remove_file('paintnet.zip')

        """Copy msi file in wapt package >>>"""
        msipaint = glob.glob('*.msi')[0]


    """I write the version in the control file >>>"""

    control.version = get_msi_properties(glob.glob('*.msi')[0])['ProductVersion'] + '-0'
    control.save_control_to_wapt()


5c549ec2ec217ae67860cb2edd045c7f000e5cca4c26f4e288951ed36d8e2c3c : setup.py
4623963e69673d067c027f6aab0dc3845b01ab1b76c52a906bf6cae29c77c40e : paint.net.4.3.11.winmsi.x64.msi
18aa44d2d96b35d91a3a1664ea558a56b7afcc5d590c2124a2175d65f1a836b0 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
f84a44d6abb8410e6032a364d9a72ac4e9727b50c277804cf00b653235118458 : luti.json
876a4c7b28263b1a639d4ebb4097e80dad3c6a509a7de08e4f07302a30120503 : WAPT/control