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: x86
  • signature_date:
  • size: 67.54 Mo
  • installed_size: 382.76 Mo
  • homepage : https://www.getpaint.net/
  • depends:

package           : tis-paint.net
version           : 4.3.11-0
architecture      : x86
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      : 0a48d352-da95-439b-b0d4-60a91b76c337
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         : KmpJthwipjk4KhXcylJrYy1Yd4aMjMJT6408LTqif7Pmjg4ciXVuVJBq0XJcbOSJN2yZVfvxBtkCEsUDKrrbdFa/yH0wQwHsoa/vXfoRtwl11QNZouCtsMPkdNJWHsHIvTyISdMR6sPBURCvx6F5S20nGj30R/yRQkl3yLLmmZkaKJ5YBAioQp3oOQiAEW/QuqxSqPFa5N3cYJcQTnSKnJ6VxIQDcgpo/Aet0sg7agI1NJn0t+D/Ztmld23Xi4Qs2JYxnjneMuhRf2Gl3gtMdoGR+nq+Hgo6TH2iATTdqF6NLiicgeJPY3BkABeMOaek9lmpsAVTeLCrDzNHNZqCxA==
signature_date    : 2022-05-30T12:02:16.512171
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()
    

05a141fb9cd2857aa5fd7083c1e685ecab961b1ae2f361e89c6418971a1f4432 : setup.py
0d41acbfc3e97576f94c9b03fc04ada3807c92b117ef0af4dc54ca7ca02f82e5 : paint.net.4.3.11.winmsi.x86.msi
18aa44d2d96b35d91a3a1664ea558a56b7afcc5d590c2124a2175d65f1a836b0 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
a21b683bd5e7ea57dfd3761ed7a5d198b399bbf2f21d7847165c43512d3f1e90 : luti.json
1808013e64a68c647a7a3d6eda27426e5b0ac0add3e9cb5800d9c9d8c8b5824c : WAPT/control