Page 1 sur 1

Paquet Sketchup

Posté : 12 déc. 2016 - 17:02
par gaelds
Je galère pas mal avec l'install de sketchup-make 2017, ça ne fonctionne que sur quelques PC. Est-il possible de désactiver la vérification de la clé d’uninstall à la fin de l’install du paquet wapt ? Sur mon PC (win7 64bits), j’ai le message :

Sinon sur 1 salle de 6 PC sous XP, j’ai le message :
Installing dst-sketchup2016
EWaptSetupException: Fatal error : MSI SketchUp2016-x86.msi has been installed but the uninstall key
{CF062509-06B2-4F57-9373-166B04719F94} can not be found


Et sur les mêmes PC avec la version 2015 :
installing dst-sketchup2015
Exception: The uninstall key: {A1391613-0694-43DF-A4FC-144CC26BCDCB} has not been found in system registry after software installation.

Toujours dans la même salle, le PC prof (identique au mien, un dell 3020 en win7 64 bits) installe bien la version 2017 + vc2015 + dotnetfx4.5 mais rien ne se passe quand on clique dessus…

Code : Tout sélectionner

# -*- coding: utf-8 -*-
from setuphelpers import *
import platform

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

# command(s) to launch to remove the application(s)
uninstallstring = []

# list of required parameters names (string) which can be used during install
required_params = []


def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    global uninstallkey
    global uninstallstring

    softname = 'Sketchup'
    versionsoft = '16.1.1450'
    check_installed_soft = installed_softwares(softname)
    if check_installed_soft:
             for uninstall in check_installed_soft:
                key=uninstall['key']
                if installed_softwares(uninstallkey=key):
                   if Version(uninstall['version']) < Version(versionsoft):
                         cmd = WAPT.uninstall_cmd(uninstall['key'])
                         run_notfatal(cmd)

    if iswin64():
        print('Installation de sketchup 2017')

        install_msi_if_needed('SketchUp2017-x64.msi',killbefore=['SketchUp.exe'])
        uninstallkey.append('{F124B571-EFA9-40F2-81B3-32AB0232429A}')

    else:
        print('installing dst-sketchup2016')
        install_msi_if_needed('SketchUp2016-x86.msi',killbefore=['SketchUp.exe'])
        uninstallkey.append('{CF062509-06B2-4F57-9373-166B04719F94}')


def uninstall():

Re: Paquet Sketchup

Posté : 13 déc. 2016 - 08:05
par gaelds
Sur les conseils de Simon j'ai enlevé les uninstallkey.append( et ça fonctionne mieux sur mon PC, pour le PC où le logiciel ne se lance pas c'est une mise à jour de pilotes à faire. Et pour XP, Sketchup n'est plus compatible depuis la version 2015...

Re: Paquet Sketchup

Posté : 25 nov. 2020 - 10:57
par JeanBaudin
gaelds a écrit : 12 déc. 2016 - 17:02 Je galère pas mal avec l'install de sketchup-make 2017, ça ne fonctionne que sur quelques PC. Est-il possible de désactiver la vérification de la clé d’uninstall à la fin de l’install du paquet wapt ? Sur mon PC (win7 64bits), j’ai le message :

Sinon sur 1 salle de 6 PC sous XP, j’ai le message :
Installing dst-sketchup2016
EWaptSetupException: Fatal error : MSI SketchUp2016-x86.msi has been installed but the uninstall key
{CF062509-06B2-4F57-9373-166B04719F94} can not be found


Et sur les mêmes PC avec la version 2015 :
installing dst-sketchup2015
Exception: The uninstall key: {A1391613-0694-43DF-A4FC-144CC26BCDCB} has not been found in system registry after software installation.

Toujours dans la même salle, le PC prof (identique au mien, un dell 3020 en win7 64 bits) installe bien la version 2017 + vc2015 + dotnetfx4.5 mais rien ne se passe quand on clique dessus…

Code : Tout sélectionner

# -*- coding: utf-8 -*-
from setuphelpers import *
import platform

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

# command(s) to launch to remove the application(s)
uninstallstring = []

# list of required parameters names (string) which can be used during install
required_params = []


def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    global uninstallkey
    global uninstallstring

    softname = 'Sketchup'
    versionsoft = '16.1.1450'
    check_installed_soft = installed_softwares(softname)
    if check_installed_soft:
             for uninstall in check_installed_soft:
                key=uninstall['key']
                if installed_softwares(uninstallkey=key):
                   if Version(uninstall['version']) < Version(versionsoft):
                         cmd = WAPT.uninstall_cmd(uninstall['key'])
                         run_notfatal(cmd)

    if iswin64():
        print('Installation de sketchup 2017')

        install_msi_if_needed('SketchUp2017-x64.msi',killbefore=['SketchUp.exe'])
        uninstallkey.append('{F124B571-EFA9-40F2-81B3-32AB0232429A}')

    else:
        print('installing dst-sketchup2016')
        install_msi_if_needed('SketchUp2016-x86.msi',killbefore=['SketchUp.exe'])
        uninstallkey.append('{CF062509-06B2-4F57-9373-166B04719F94}')


def uninstall():
Salut, as tu pu trouver une réponse à ton problème sur Sketchup?

Re: Paquet Sketchup

Posté : 25 nov. 2020 - 18:10
par jpele
Bonjour,

La coïncidence fait que nous avons mis à jour le paquet aujourd'hui même sur le Store, je vous invite à le tester.
https://store.wapt.fr/store/tis-sketchup-make

Cordialement,
Jimmy

Re: Paquet Sketchup

Posté : 16 déc. 2020 - 08:24
par JeanBaudin
jpele a écrit : 25 nov. 2020 - 18:10 Bonjour,

La coïncidence fait que nous avons mis à jour le paquet aujourd'hui même sur le Store, je vous invite à le tester.

https://store.wapt.fr/store/tis-sketchup-make
Cordialement,
Jimmy
Merci, je vais aller jeter un oeil à tout ça :D