tis-pyscripter 3.4.2-801

  • package : tis-pyscripter
  • version : 3.4.2-801
  • architecture : all
  • locale :
  • description : Python development environment
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2018-09-29 15:20:01
  • min_wapt_version :
  • min_os_version :
  • max_os_version :
  • impacted_process : PyScripter.exe

setup.py

#!/usr/bin/python
# -*- coding: utf-8 -*-

from setuphelpers import *
import datetime

uninstallkey=[]
listfolder = ['Highlighters','Styles']

def install():

    versionpaquet = control['version'].split('-',1)[0]
    install_exe_if_needed('PyScripter-v%s-Setup.exe' % versionpaquet,'/VERYSILENT',key='PyScripter_is1',min_version=versionpaquet,killbefore=['PyScripter'])
    for folder in listfolder:
        if isdir(makepath(install_location('PyScripter_is1'),folder)):
            remove_tree(makepath(install_location('PyScripter_is1'),folder))
        copytree2(makepath(folder),makepath(install_location('PyScripter_is1'),folder))

    for prof in local_users_profiles():
        if not 'ServiceProfiles' in prof:
            if isdir(makepath(prof,'AppData','Roaming')):
                fixconfigpyscripter(makepath(prof,'AppData','Roaming'))

    sendmessage = False
    for profsid in reg_enum_subkeys(reg_openkey_noredir(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList')):
        if not profsid.startswith('S-1-5-21-'):
            continue
        profpath = get_profile_path(profsid)
        if isfile(makepath(profpath,u'NTUSER.DAT')):
            try:
                ntuserdat_path = makepath(profpath,u'NTUSER.DAT')
                if is_locked(ntuserdat_path):
                    regkey = profsid
                else:
                    regkey = u"profilemig_%s" % datetime.datetime.now().strftime('%Y%m%d%H%M%S')
                try:
                    if regkey != profsid :
                        run([u'reg',u'load',u'HKEY_USERS\\%s'%regkey,ntuserdat_path])

                    with reg_openkey_noredir(HKEY_USERS,makepath(regkey,'Software','Microsoft','Windows NT','CurrentVersion','AppCompatFlags','Layers'),sam=KEY_ALL_ACCESS,create_if_missing=True) as Layers:
                        reg_setvalue(Layers,makepath(install_location('PyScripter_is1'),'PyScripter.exe'),value='RUNASADMIN',type=REG_SZ)
                        print('Configure runasadmin for %s in %s' % (makepath(install_location('PyScripter_is1'),'PyScripter.exe'),ntuserdat_path))
                finally:
                    if regkey != profsid:
                        run_notfatal([u'reg',u'unload',u'HKEY_USERS\\%s'%regkey])
            except Exception as e:
                if not 'RUNASADMIN' in registry_readstring(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers',makepath(install_location('PyScripter_is1'),'PyScripter.exe')):
                    if registry_readstring(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System','EnableLUA') == 1:
                        if get_language() == 'fr':
                            message = ur"""Pour faciliter le développement de paquet wapt, vous devez cocher la case "Exécuter ce programme en tant qu'administrateur" dans l'onget compatibilité du fichier %s (Paramètres pour tous les utilisateurs)""" % (makepath(install_location('PyScripter_is1'),'PyScripter.exe'))
                        else :
                            message = ur"""To facilitate the development of wapt package, you must check the box "Run this program as administrator" in the file compatibility tab %s (Settings for all users)"""  % (makepath(install_location('PyScripter_is1'),'PyScripter.exe'))
                        if not sendmessage :
                            run('msg *  /time:120 %s' % message)
                            sendmessage = True
                    else:
                        print('The uac seems disabled on the machine')
                else:
                    print('Pyscripter is already configured to run with administrator privileges for all users')

                print(u'Unable to process profile %s: %s' % (profpath,repr(e)))



def session_setup():
    fixconfigpyscripter(application_data())
    registry_setstring(HKEY_CURRENT_USER,r'Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers',makepath(install_location('PyScripter_is1'),'PyScripter.exe'),'RUNASADMIN')

def fixconfigpyscripter(prof):
    profilpy = makepath(prof,'PyScripter')
    if not isdir(profilpy):
        mkdirs(profilpy)
    for folder in listfolder:
        if not isdir(makepath(profilpy,folder)):
            mkdirs(makepath(profilpy,folder))
        for fs in glob.glob(makepath(install_location('PyScripter_is1'),folder,'*')):
            if not isfile(makepath(profilpy,folder,makepath(folder,fs.rsplit('\\',1)[1]))):
                filecopyto(makepath(fs),makepath(profilpy,folder,fs.rsplit('\\',1)[1]))
    if not isfile(makepath(profilpy,"PyScripter.local.ini")):
        inifile_writestring(makepath(profilpy,"PyScripter.local.ini"),'PythonVersions-x86','InstallPath',install_location('WAPT_is1'))
        inifile_writestring(makepath(profilpy,"PyScripter.local.ini"),r'PythonVersions-x86\Custom Versions','Path0',install_location('WAPT_is1'))
        inifile_writestring(makepath(profilpy,"PyScripter.local.ini"),r'PythonVersions-x86\Custom Versions','Count',"0")
    if not isfile(makepath(profilpy,"PyScripter.ini")):
        inifile_writestring(makepath(profilpy,"PyScripter.ini"),r'Other Settings','Style Name',"Windows10")
        inifile_writestring(makepath(profilpy,"PyScripter.ini"),r'IDE Options','AutoCompleteBrackets',"FALSE")
        inifile_writestring(makepath(profilpy,"PyScripter.ini"),r'IDE Options','NewFileEncoding',"sf_UTF8_NoBOM")
        inifile_writestring(makepath(profilpy,"PyScripter.ini"),r'IDE Options','PythonEngineType',"peRemote")

def update_package():

    import requests,urlparse
    url = requests.head('https://sourceforge.net/projects/pyscripter/files/latest/download?source=files',proxies={}).headers['Location']
    dstexe = requests.head(url,proxies={}).headers['Location'].replace('-x64.zip','-Setup.exe')
    dstzip = requests.head(url,proxies={}).headers['Location']
    filenamezip = urlparse.unquote(dstzip.rsplit('/',1)[1])
    filename = urlparse.unquote(dstexe.rsplit('/',1)[1])
    vers = filename.split('-')[1].replace('v','')
    print ("Latest Version : " + vers)

    wget(dstzip,filenamezip)
    unzip(filenamezip)
    remove_file(filenamezip)
    folderzip = filenamezip.rsplit('.',1)[0]
    for folder in listfolder:
        if isdir(folder):
            remove_tree(folder)
        copytree2(makepath(folderzip,'PyScripter',folder),folder)
    remove_tree(folderzip)

    exes = glob.glob('*.exe')
    for fn in exes:
        if fn != filename:
            remove_file(fn)

    if not isfile(filename):
        print('Downloading %s from %s'%(filename,dstexe))
        wget(dstexe,filename)
    else:
        print('Already up to date, skipped')

    os.chdir(os.path.dirname(__file__))

    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = vers + '-0'
    pe.save_control_to_wapt(os.getcwd())

def is_locked(filename):
    """Check if a file is locked"""
    if isfile(filename):
        try:
            open(filename,'r')
            return False
        except IOError as e:
            if e.errno == 13:
                return True
            raise
    else:
        return False

if __name__ == '__main__':
    update_package()



    

Changelog



Version 3.1 (31/12/2017)
    New features:
        Code folding
        Indentation lines
        New IDE option "Compact line numbers"
        pip tool added
        Internal Interpreter is hidden by default
        Kabyle language added
    Issues addressed:
        python logging now works when using remote interpreter !
        #16, #685, #690, #718, #721, #765, #814, #836

Version 2.6 (March 20, 2015)
    New features:
    Python 3.4 support added

Version 2.5 (March 19, 2012)
    New features:
    This is the first joint 32-bit and 64-bit version release
    Python 3.3 support added
    Recent Projects menu item added
    Expandable lists and tuples in the Variables window ( Issue 583 )
    Expandable watches as in the Variables window ( Issue 523 )
    Basic support for Cython files added ( Issue 542 )
    New interpreter action Paste & Execute ( Issue 500 ) Replaces Paste with Prompt
    New PyIDE option "Display package names in editor tabs" default True ( Issue 115 )
    New search option "Auto Case Sensitive" (case insensitive when search text is lower case)
    The Abort command raises a KeyboardInterrupt at the Remote Engine ( Issue 618 )
    Incremental search in the Project Explorer matches any part of a filename (Issue 623)
    New IDE option "File line limit for syntax check as you type" default 1000
    Issues addressed:
     Issue 516 ,  Issue 348 ,  Issue 549 ,  Issue 563 ,  Issue 564 ,  Issue 568 ,  Issue 576 ,  Issue 587 ,  Issue 591 ,  Issue 592 ,  Issue 594 ,  Issue 597 ,  Issue 598 ,  Issue 599 ,  Issue 612 ,  Issue 613 ,  Issue 615 
    

manifest.sha256

Styles/OnyxBlue.vsf cc77d3bc765f080741415986f21734dd5efc8b98b0ac5ee8ec5dd54d94b17859
WAPT/certificate.crt 79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4
Styles/Sky2.vsf d067e65e9b2918ddc0797ef2b3cd0a0b195143174a009fde07f513c3557d0422
Styles/GoldenGraphite.vsf 8254fbc493369e63d0afa3343e20bae4b84853ebf79c61676fce13cd449fbfd5
Highlighters/Dark_4.ini 888b011fe267348cec47c4b03e702526f20a91af759567237c725269f1ed8738
Highlighters/Retta.ini 6f0c708f3702a15d8c365af4b5bb2a04d67ddce775c6b2ac79f0126ae065de14
Styles/EmeraldLightSlate.vsf f10deef27445cb9cdc263e0acbbaf5500dd1c19f5aaba9636196ec07d4b65b9c
Highlighters/IDLEHighlighting.ini a717a5585c48d20a97f135a56ffff08c98a65ea441c4cd193dadfc5e450d1167
Highlighters/github.ini da70c0e96d00ec68a7579d41de124431c8366dcf1910575d596f4d4a7a4c81ac
Highlighters/Default.ini fdbf92d82cd4c17a34a3adb0e22b9d4d1e4aebbff2c2c397b6127445d936d809
setup.py 6b517ee86d4e36dee72f5976ed2efe2d1793089cd23ed76ec990dee7e3ccd8a1
Highlighters/Dark_waher.ini 4b5d04ffdf4aec87f650352558a72c01835354ea61495d8ad4323c0f79c67f00
Styles/AquaLightSlate.vsf 361fe8b3333a11dd7cdc1e929ea8ceb231408cbded71f688ccc6a481f68a67f4
Highlighters/DarkHighlight.ini 2600c5283370405dc4687aa39af88ed5bf3eeed52e2779cf9c71231ac9f36dfc
Highlighters/Dark_eos.ini 7ff17ee31e72e0449f5802d1fbd8938461b0bbc0a70fbddeca0b44f1b6633389
Highlighters/Dark_muted.ini 67c56c6fb1c77c55989cef60bf331608f6853409db6c3c1805023818c62cb1f0
Styles/Windows10Blue.vsf c7162516f18ba21dfe49f71430b39a7d2903a137516c75b19e822ed310304e49
Highlighters/Black Pastel.ini 7d297a88354a60b2931345cb29f9906fdcf5617565a5be00b18bc178e572b890
Highlighters/DarkHighlight2.ini cc04ae107b6c50a0cbc885a4cb4558efcfde3681f01aef7750714975d7f5c3b2
Highlighters/Dark_2.ini fac0bbf6855b6c77b753707eebeb6139c63715568f3720335e32d89fee01a660
Highlighters/Dark_5.ini e4dc2439726503d4fe954be97da386b3f9b2083b2aaba701741701a19026a38b
Styles/Amakrits.vsf e80be6ed0a33fd0c662c0a8bfdfcc9f82a67954a6af642ce03b47d89f018588b
Highlighters/Greyish_dark.ini ffa4c79c7e2afc0cf6286a8d09055015cca4624239e4a73c5cb4489256f5bc9c
Highlighters/MochaHighlight.ini 1e73cd177f4572ffbe11ca62f8fcb36468e5ea0934ad9eb4a66d302303462598
Highlighters/Wombat.ini abbcd41c9bf254fe4214561da630741b5fe5945b8f99021325bfccb4e772dcce
Highlighters/RecognEyes.ini 943c7f15e21a50da23851f43b76db4b02d1a08e356cab9ecb2aa60610ef6546d
Highlighters/solarized_dark_edit.ini 7cf0b987ea2f7e1f8600446bf7d99ac3f532431096952def48c69670b7256e76
Styles/CharcoalDarkSlate.vsf a3851b7d6dce201169ea7ccfecf5a012d30e78055762f02121765e6f06183ebc
Highlighters/IDLEHighlightingv3.ini e0e3cd4d9718add7473049e59e69055790d6463b91fbd99746c0ed764177da83
Styles/CobaltXEMedia.vsf 7af883de75b0569ebb3ec947885ccdbddc43de82f60b663cb3344eb4ffa39f76
WAPT/control ced3523ecb27ec2a78d99769265e5ace9bbb8bc7b8b76876d69f9c548aeb57c1
Styles/Vapor.vsf 7527f5a0058150fc1caf559cf88e13a00ecc2a117a458512c55057df3db03948
Highlighters/Dark_gedit.ini aeb2013a06eeb1c985d6602a057e9d608afcd7bc558fce60bb677997a2aa30f2
Styles/CyanNight.vsf 2684f8e7987133c02e618303d1b62c4673c15fa4dc2537c147baa9c1b4395dcc
Highlighters/Frontenddev.ini ee0d55293bd7efee7c4211bc0bd0590f4dd2f33fdef3c450793b9d84bdb822de
Styles/SapphireKamri.vsf 9c937d022a10f4d81804dd048d7376fff6a5785534c0b2afb2380ab9fb3d8b29
Styles/Windows10Green.vsf e1d6d779b64e02d4d18d0b0d4512aeaaaea247001cac9546c911ce385eff0329
Styles/MetropolisUIBlue.vsf 0057e4337cdde3a816ddda00722bcf499478ce320a30505bb6b9cd84dca14ba2
WAPT/icon.png 83092815859a13c15223c22ab138ffc9c8b48685bfe3f13b58bedbdcb65cfe31
Styles/Glossy.vsf 411e23ac15e11ffa3785ef4b84ab6cb6dd0f64641eca7389aa70671a8604775e
Styles/Sky.vsf 1c9b0f21b19a84d13ea7b89ee38ea899cf7a989e617cdc1444eb8fd7257371b7
Highlighters/Sublime Text 2.ini 3bc626bdbc057709448bd9332d752b6c59006a7d38c75476ab16b6aae61997b2
Highlighters/Notepad++ Like.ini 0480357a7e4b9677b539701ab499b54fb02d58479a14ab93db5081113eca41a0
Highlighters/Dark_zenburn.ini aeb2013a06eeb1c985d6602a057e9d608afcd7bc558fce60bb677997a2aa30f2
Highlighters/Vibrant Ink.ini c9aac994b279fa91845244d0c4ac8b4b2feaac42434999847e549d1146dc4a05
Highlighters/Dark_oblivion.ini bc3f41db99f9621bcb03ac4927c2bf69ffef724c2aef3b0a61a3095011729a9c
Highlighters/Havenjark.ini aa9f13c02114e53d21c003aadaf9e50a07e7c188446d221c2f212892a369f564
Highlighters/Pastel.ini 7c81c5e0c864beaf3bffb4e41c5cf775954c998bb56c9ffef525df86b2fd02ee
Styles/CyanDusk.vsf d87bf4b37006be370293888e95bb1ec5133bcad36a7c83875cb3a4cbd42acecf
Highlighters/Schuss.ini 32251a03c2b2a91ee0b6b7769b3476d1a398c8e62bd21828f05804deb020595f
Styles/Emerald.vsf 13acb0941dc5906533e37361a9d024c563c25d7b825df54e065bced72fa69e81
Highlighters/Sunburst.ini 8c92b82a613fa46a21a81a6710b443b5bd1fbc18a42776caba303eb636fac3a9
PyScripter-v3.4.2-Setup.exe 74876327748e2e27f9b34e3eed2283e3bdd4829643d35d1772cc811095284144
Styles/Silver.vsf b1e1fc2ea3f7246882848a8c65daa8b8ad4db0060b79805a40e4ce01039dea6c
Styles/TabletLight.vsf c08f2e55e71e795547f8b30f6414e04f30dfc5c0583df2c4bfedb86eeedb17ec
Styles/LavenderClassico.vsf 7a71ab189946ca455a9bda3bd9f442fdb2a053c641547848c52843beb60ca2bb
Highlighters/Monokai.ini cf60cb29afe1dc5184496a1650325479853065eda2200b9206f5b8562de7286b
Highlighters/Lnkpot.ini 784fe57e5951fe49dce773cd4ee938fffa7242e88eee9165b370ce021d82751d
Styles/SlateClassico.vsf 0c04de4f0b8729f7223ddca85bab446cf3f9d6a1412954f9bc750532ad79940b
Styles/Diamond.vsf bdd0cc14774e11935f3c2a669b5ab2a66bbc6dd598d85411fa2399a012b6a481
Highlighters/Mr.ini a854b79f71e5836a867e595acdc57b5c48d9c9f8b2fe4dd5e4c084b879c6ee36
Styles/Obsidian.vsf bd6854c3a0fa8ac3f68c42eb9cef925cacc15cd5a7fa51c77ef8cfa90e3df2e0
Highlighters/Darthy_sand_light.ini cbca21197bb9eef3d8ea5418d9b51207724ef2eccbf5caf0288c0851d1629c95
Highlighters/Solarized Light.ini 0b32ee5fd57f159a942806d239e12a1bc25c095926a9e838a93cbe494ce15f0e
WAPT/wapt.psproj e306ae088b4ffc91364d6f53a3933bffa75f4bc4f8a3d6ff422209e90760feb0
Styles/Windows10Purple.vsf 2eefac406312d6b8a25a5aa8df7d4c52ced574ee4a641b031cf7bbb1a9983057
Highlighters/Dark_3.ini feaf3bfcc011eb0da0e71f391b3d7f68adbfec95d722b450596f19a42bd2107a
Highlighters/solarized_light_edit.ini 25654adc6fe6667eb1007ff2b2ce9928fe98aef5269c4b59720e38298a144d0a
Styles/TabletDark.vsf a1690bb83971c29d389a1b3a660607a678a48afb7dc1da6b70b34a5f54630da6
Styles/Carbon.vsf b032de2eff831ab55862321c1697ed1083b426851419ee56c6f070a37208cd74
Styles/Windows10SlateGray.vsf 3aee85ff4207372bfd51ab2bc747f075f4d0ed9c5a7130c612c65a4420dd133d
Highlighters/skycool_light.ini 015fcef74112703316a621a9d4a56c18d0178972c8518bb84d7266162da17f59
Styles/Copper.vsf ca9fae192c429469e65185161ece28088da12631eab5ab0f5d2c2ac3c4a38758
Styles/SmokeyQuartzKamri.vsf d3c51a137279ebdb6b96be00fe41995123a093cc17795578487582e9ef42d9ef
Styles/Radiant.vsf d2395d2770315191ad6b62bd5a403bc78dd02325f716d28caa0744013c8ba015
Styles/TurquoiseGray.vsf ea81a5115a2d0bf8d0a32c137d70ff7384e303280b9c71b9b79047788fccd2bc
Styles/Glossy2.vsf 6301233034afeac72c398794f3f660503a8217bf657dc9debce0bbae978716d4
Styles/MetropolisUIGreen.vsf fb78fc96a6496c3ae583b7be0d6f7843d1a6e78377e5d287165fd88d654ad413
Highlighters/Tango.ini 2181a73e82c59c2d4ef07e877f7ed542dbe7f6d4c8ec2ffb488c6ff4d504cde5
Highlighters/Dark_1.ini d1f4ef60ddc544c4e20cac250a0dca25f55b7034480df3ebbb4f8923832bd0a3
Highlighters/Obsidian.ini c99312759a693dd5aff92eed43806b67c65a83e79e64bd0f86a054a24e7c2009
Styles/AquaGraphite.vsf d62a2c6f76066a3831498c1b0b2983b0d8fd56ce96e7a1380f551eee2af259d1
Styles/Glow.vsf 687a00fd37e9411a520757e93f3e2d241e97c75cb4a084f15f88d2299af6c949
Highlighters/Zenburn.ini a7a9bf3c64b7229d3b07268af526214fa2ff82abccfe376a17352c8955745cd3
Styles/Luna.vsf a35710944e7600768572d0179f381ba8dd0af7492fcde81dbe3f2bd8b712a404
Highlighters/Autumn_dark.ini 3c5b1582ddd1b2443bbf2acd12a8f7f43d427dbe859a4b81f2486084e5e22226
Highlighters/IDLEHighlightingv2.ini 4539a32dc989fab13f2e11f40d1256b8355d592f4b32fe2b7d95741df4bb0f79
Highlighters/NightLion Aptana Theme.ini d881a3e00b683a3a9c6e2a4ad01e04dc3061a01410b2ccd7da5eaa5b8d666ad9
Highlighters/Dark_terminal.ini 6224621d07d11312389110c16186c1828098cb95d75537ab24e8d59887b78b55
Styles/RubyGraphite.vsf 3df51a5991c5f20efe5c07889b5327579244950a2b6b2f177ffce783e736f94c
Styles/CopperDark.vsf 5c10806d14c32513ae00c353ec375ff6e3cc680844c19d6239b17645396d5e27
Highlighters/Gedit Original Oblivion.ini 5aa0092b4bb5b790777671840e7c50abebb3e8a75a0a71f2ad54769693eb4573
Highlighters/Minimal.ini df60e66e2b4b928e85323435c1c7babb37b4073d4780fac4fa44d1c9a34d50b3
Styles/AmethystKamri.vsf 6cd86454682618c0a52b670c5f6a0ba2645ccca641b6736a404ad6d47cfb9edf
WAPT/changelog.txt 23a8f2c680a72c713a7a24f44113d46ffa813c2ba013503786d03d1c798b52f7
Highlighters/Dark_obsidian.ini f63c80aeea197372fa0639b261b9163423e1310e38179b89b8ae2c4a5465e0ac
Styles/MetropolisUIDark.vsf 2788b75ec8be22ae75803f3d925f10b0ff1c7fcb65c1ca5065d165547237a357
Styles/MetropolisUIBlack.vsf 50db88fc174e201f0961368799757874c019de9b659ed6b625a5e4bd28fac61f
Styles/Auric.vsf 6057a38065e8e38ee49d30c4dedc550e41547d23e913a8720935b8af115de65f
Styles/AquaLightSlate2.vsf d29fd2fb43d923b0ca7564d90117e11b4dffa337a33fb2e7accb201f59ef5324
Styles/IcebergClassico.vsf fa2c3eff274bbc0a37ca988af0f9bd9c369acdebe483eac9fa1838b27a826bf1
Styles/Windows10.vsf b7f62785cd661fd5f71545028453c73e36f4394bb34341e04fb71da80e81ca76
Highlighters/Solarized Dark..ini 717d2a38eafa56d2ab0a44300f6f06b596c390e98af017fbf9c181622155b150
Styles/Coral.vsf dfffb89408ccc7ae60dc5f2c5f8982ff3158967ba1ebcc2f5ef3db322d45d820
Highlighters/Oblivion.ini 08890066970ebc6b3759a501b0794b58b4f5179d0843543d145403d787cebdb5
Styles/Windows10Dark.vsf a804b8beab5ef104cb7c34506a095be91af2018a4ffe87faf0159187ba3aa342

Forum feed

WAPT Packages / Paquets WAPT • Error line 3512 in install_wapt
Bonjour à tous,

Depuis la mise à jour vers WAPT 1.6 j'ai le paquet 7zip qui a tendance a fail a l'installation avec cette sortie :

uninstalling 7-Zip 9.20 (x64 edition)
Traceback (most recent call last):
File "c:\wapt\common.py", line 3512, in install_wapt
exitstatus = setup.install()
File "c:\windows\temp\wapt6e8_dt\setup.py", line 42, in install

le code du paquet pyhton de wapt.lesfourmisduweb.org :

CODE :

def install():    global uninstallkey    from common import Wapt    broken_7zip = [ soft for soft in installed_softwares('7-zip') if Version(soft['version']) < Version('16.0') ]    if broken_7zip:        for uninstall in broken_7zip:            cmd = WAPT.uninstall_cmd(uninstall['key'])            print(u'uninstalling %s' % (uninstall['name'],))            # on execute la commande de desinstallation            run(cmd)    allmsi = glob.glob('*-x64.msi')    for msi in allmsi:        if iswin64():            install_msi_if_needed(msi,killbefore=['7zFM.exe'])        else:            install_msi_if_needed(msi.replace('-x64.msi','.msi'),killbefore=['7zFM.exe'])    for ext in ('.001','.7z','.arj','.bz2','.bzip2','.cab','.cpio','.deb','.dmg','.fat',            '.gz','.gzip','.hfs','.iso','.lha','.lzh','.lzma','.ntfs','.rar','.rpm',            '.squashfs','.swm','.tar','.taz','.tbz','.tbz2','.tgz','.tpz','.txz','.vhd',            '.wim','.xar','.xz','.z','.zip', '.zipe'):        register_ext('7-zip',ext,'"%s" "%%1"' % (makepath(programfiles,'7-zip','7zFM.exe'),),icon="%s,1" % (makepath(programfiles,'7-zip','7z.dll')))""" You can do a CTRL F9 in pyscripter to update the package """
Dans le doute je vais juste pas garder ça et remplacer avec simplement :

CODE :

if iswin64():        install_msi_if_needed('7z1805-x64.msi',killbefore=['7zFM.exe'])    else:        install_msi_if_needed('7z1805.msi',killbefore=['7zFM.exe'])    for ext in ('.001','.7z','.arj','.bz2','.bzip2','.cab','.cpio','.deb','.dmg','.fat',            '.gz','.gzip','.hfs','.iso','.lha','.lzh','.lzma','.ntfs','.rar','.rpm',            '.squashfs','.swm','.tar','.taz','.tbz','.tbz2','.tgz','.tpz','.txz','.vhd',            '.wim','.xar','.xz','.z','.zip', '.zipe'):        register_ext('7-zip',ext,'"%s" "%%1"' % (makepath(programfiles,'7-zip','7zFM.exe'),),icon="%s,1" % (makepath(programfiles,'7-zip','7z.dll')))
Mais peut être qu'un oeil expert trouveras le bug :)

Cordialement,
Renaud

Statistiques: Posté par renaud.counhaye — 15 octobre 2018, 11:28


WAPT Packages / Paquets WAPT • Re: killalltasks fatal error : 5 : accès refus
Bonjour Patrick,
psanchez a écrit :
10 octobre 2018, 03:02
Désolé de répondre si tard, je me suis fait happer par le travail.

Le problème se pose aussi bien dans pyscripter que sur un poste en déploiement.

Merci pour le conseil d'ajouter killalltask en install

Je suis super content, j'ai obtenu le bon de commande de mon établissement pour la version Enterprise.
pour info, il y a une "semi-feature" non documentée (ça manque encore un peu de fignolage) qui permet de créer un paquet à partir d'un exe standalone assez facilement: il te suffit de créer un répertoire et de mettre l'exe et autres ressources dedans.
Après tu lances la commande wapt-get en indiquant le nom du répertoire (et non le nom de l'exe):

CODE :

wapt-get make-template c:\temp\lenomdemonlogiciel
La commande make-template va détecter que c'est un répertoire et non un exe d'install et il va créer un paquet automatique qui va coller l'exe dans un répertoire dans program files (en faisant la différence x86/x64), faire un icon dans le menu démarré et faire une procédure de désinstall (qui n'est pas finie).

C'est assez pratique, même si il y a encore un peu de travail à faire de notre côté. Je vais voir avec Simon pour documenter cela.

Cordialement,

Denis

Statistiques: Posté par dcardon — 10 octobre 2018, 12:19


WAPT Packages / Paquets WAPT • Re: killalltasks fatal error : 5 : accès refus
Bonjour,

Désolé de répondre si tard, je me suis fait happer par le travail.

Le problème se pose aussi bien dans pyscripter que sur un poste en déploiement.

Merci pour le conseil d'ajouter killalltask en install

Je suis super content, j'ai obtenu le bon de commande de mon établissement pour la version Enterprise.

Cordialement

Statistiques: Posté par psanchez — 10 octobre 2018, 03:02