Bonjour,
Jai ajouté le paquet talensac-adobereader « Adobe Reader DC 15.009.20069 » à mon inventaire,
Néanmoins, jai vu un poil trop tard quil nétait pas possible de linstaller sur XP, et pas mal de PC lont dans leur liste.
Du coup quand je clique sur le paquet sur un poste XP on maffiche :
Fermeture d Adobe Reader
Fermeture de la mise a jour automatique d adobe reader
installation Adobe Reader
desactivation des mises a jour automatiques
EWaptSetupException: Fatal error : End audit did not find the software.
Du coup jai créé un paquet talensac-fixuptalensac contenant :
import platform
from setuphelpers import *
uninstallkey=[]
def install():
reader = WAPT.is_installed('talensac-adobereader')
if reader :
WAPT.forget_packages(reader.package)
Mais cela ne semble pas fonctionner, mon paquet talensac-adobereader reste dans la liste des paquets à installer.
Me-suis trompé quelque part ?
Cordialement
Alan
Comme le paquet est en erreur, il n'est pas considéré comme installé...
Vous pouvez directement l'oublier pour les plateformes XP (dans la mesure où il n'est plus dans les dépendances..., sinon il reviendra au prochain upgrade)
//
//from setuphelpers import * /import platform/
/ def install(): /
/// if platform.win32_ver()[0]=='XP': print(u"Paquet enlevé : %s" % WAPT.forget_packages(///'talensac-adobereader'/))/
//
Le 24/11/2015 11:42, Alan DAOULAS a écrit :
Bonjour,
J’ai ajouté le paquet talensac-adobereader « Adobe Reader DC 15.009.20069 » à mon inventaire,
Néanmoins, j’ai vu un poil trop tard qu’il n’était pas possible de l’installer sur XP, et pas mal de PC l’ont dans leur liste.
Du coup quand je clique sur le paquet sur un poste XP on m’affiche :
/Fermeture d Adobe Reader/
/Fermeture de la mise a jour automatique d adobe reader/
/installation Adobe Reader/
/desactivation des mises a jour automatiques/
/EWaptSetupException: Fatal error : End audit did not find the software./
//
Du coup j’ai créé un paquet talensac-fixuptalensac contenant :
/import platform/
/from setuphelpers import */
/uninstallkey=[]/
//
/def install():/
/ reader = WAPT.is_installed('talensac-adobereader')/
/if reader :/
/WAPT.forget_packages(reader.package)/
//
Mais cela ne semble pas fonctionner, mon paquet talensac-adobereader reste dans la liste des paquets à installer.
Me-suis trompé quelque part ?
Cordialement
Alan
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
oups...
/def install(): / /// if platform.win32_ver()[0]=='XP': print(u"Paquets enlevés : %s" % (WAPT.forget_packages(///'talensac-adobereader'/),))/
//
Le 24/11/2015 12:18, Hubert TOUVET a écrit :
Comme le paquet est en erreur, il n'est pas considéré comme installé...
Vous pouvez directement l'oublier pour les plateformes XP (dans la mesure où il n'est plus dans les dépendances..., sinon il reviendra au prochain upgrade)
//
//from setuphelpers import * /import platform/
/ def install(): /
/// if platform.win32_ver()[0]=='XP': print(u"Paquet enlevé : %s" % WAPT.forget_packages(///'talensac-adobereader'/))/
//
Le 24/11/2015 11:42, Alan DAOULAS a écrit :
Bonjour,
J’ai ajouté le paquet talensac-adobereader « Adobe Reader DC 15.009.20069 » à mon inventaire,
Néanmoins, j’ai vu un poil trop tard qu’il n’était pas possible de l’installer sur XP, et pas mal de PC l’ont dans leur liste.
Du coup quand je clique sur le paquet sur un poste XP on m’affiche :
/Fermeture d Adobe Reader/
/Fermeture de la mise a jour automatique d adobe reader/
/installation Adobe Reader/
/desactivation des mises a jour automatiques/
/EWaptSetupException: Fatal error : End audit did not find the software./
//
Du coup j’ai créé un paquet talensac-fixuptalensac contenant :
/import platform/
/from setuphelpers import */
/uninstallkey=[]/
//
/def install():/
/ reader = WAPT.is_installed('talensac-adobereader')/
/if reader :/
/WAPT.forget_packages(reader.package)/
//
Mais cela ne semble pas fonctionner, mon paquet talensac-adobereader reste dans la liste des paquets à installer.
Me-suis trompé quelque part ?
Cordialement
Alan
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
C'est la bonne syntaxe cependant je n'ai jamais réussi a oublier un paquet en erreur. (tranquil.it pourra confirmer le problème ?)
Du coup dans ce cas il faut modifier le paquet erreur pour qu'il ne génère plus d'erreur et ensuite je peux l'oublier.
Dans ton cas je te conseille de modifier/talensac-adobereader/
et d'ajouter en dessou du def install
oswindows = registry_readstring(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows NT\CurrentVersion', 'ProductName') if 'Windows XP' in oswindows : print('Je suis un Windows XP') return (0);
Simon
Le 24/11/2015 11:42, Alan DAOULAS a écrit :
Bonjour,
J’ai ajouté le paquet talensac-adobereader « Adobe Reader DC 15.009.20069 » à mon inventaire,
Néanmoins, j’ai vu un poil trop tard qu’il n’était pas possible de l’installer sur XP, et pas mal de PC l’ont dans leur liste.
Du coup quand je clique sur le paquet sur un poste XP on m’affiche :
/Fermeture d Adobe Reader/
/Fermeture de la mise a jour automatique d adobe reader/
/installation Adobe Reader/
/desactivation des mises a jour automatiques/
/EWaptSetupException: Fatal error : End audit did not find the software./
//
Du coup j’ai créé un paquet talensac-fixuptalensac contenant :
/import platform/
/from setuphelpers import */
/uninstallkey=[]/
//
/def install():/
/ reader = WAPT.is_installed('talensac-adobereader')/
/if reader :/
/WAPT.forget_packages(reader.package)/
//
Mais cela ne semble pas fonctionner, mon paquet talensac-adobereader reste dans la liste des paquets à installer.
Me-suis trompé quelque part ?
Cordialement
Alan
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Oups Hubert trop rapide.
Merci pour la précision
Le 24/11/2015 12:21, Fonteneau Simon a écrit :
C'est la bonne syntaxe cependant je n'ai jamais réussi a oublier un paquet en erreur. (tranquil.it pourra confirmer le problème ?)
Du coup dans ce cas il faut modifier le paquet erreur pour qu'il ne génère plus d'erreur et ensuite je peux l'oublier.
Dans ton cas je te conseille de modifier/talensac-adobereader/
et d'ajouter en dessou du def install
oswindows =
registry_readstring(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows NT\CurrentVersion', 'ProductName') if 'Windows XP' in oswindows : print('Je suis un Windows XP') return (0);
Simon
Le 24/11/2015 11:42, Alan DAOULAS a écrit :
Bonjour,
J’ai ajouté le paquet talensac-adobereader « Adobe Reader DC 15.009.20069 » à mon inventaire,
Néanmoins, j’ai vu un poil trop tard qu’il n’était pas possible de l’installer sur XP, et pas mal de PC l’ont dans leur liste.
Du coup quand je clique sur le paquet sur un poste XP on m’affiche :
/Fermeture d Adobe Reader/
/Fermeture de la mise a jour automatique d adobe reader/
/installation Adobe Reader/
/desactivation des mises a jour automatiques/
/EWaptSetupException: Fatal error : End audit did not find the software./
//
Du coup j’ai créé un paquet talensac-fixuptalensac contenant :
/import platform/
/from setuphelpers import */
/uninstallkey=[]/
//
/def install():/
/ reader = WAPT.is_installed('talensac-adobereader')/
/if reader :/
/WAPT.forget_packages(reader.package)/
//
Mais cela ne semble pas fonctionner, mon paquet talensac-adobereader reste dans la liste des paquets à installer.
Me-suis trompé quelque part ?
Cordialement
Alan
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Effectivement... :-[ correctif à inclure dans la 1.3.3....
merci ! Hubert
Le 24/11/2015 12:21, Fonteneau Simon a écrit :
C'est la bonne syntaxe cependant je n'ai jamais réussi a oublier un paquet en erreur. (tranquil.it pourra confirmer le problème ?)
Du coup dans ce cas il faut modifier le paquet erreur pour qu'il ne génère plus d'erreur et ensuite je peux l'oublier.
Dans ton cas je te conseille de modifier/talensac-adobereader/
et d'ajouter en dessou du def install
oswindows =
registry_readstring(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows NT\CurrentVersion', 'ProductName') if 'Windows XP' in oswindows : print('Je suis un Windows XP') return (0);
Simon
Le 24/11/2015 11:42, Alan DAOULAS a écrit :
Bonjour,
J’ai ajouté le paquet talensac-adobereader « Adobe Reader DC 15.009.20069 » à mon inventaire,
Néanmoins, j’ai vu un poil trop tard qu’il n’était pas possible de l’installer sur XP, et pas mal de PC l’ont dans leur liste.
Du coup quand je clique sur le paquet sur un poste XP on m’affiche :
/Fermeture d Adobe Reader/
/Fermeture de la mise a jour automatique d adobe reader/
/installation Adobe Reader/
/desactivation des mises a jour automatiques/
/EWaptSetupException: Fatal error : End audit did not find the software./
//
Du coup j’ai créé un paquet talensac-fixuptalensac contenant :
/import platform/
/from setuphelpers import */
/uninstallkey=[]/
//
/def install():/
/ reader = WAPT.is_installed('talensac-adobereader')/
/if reader :/
/WAPT.forget_packages(reader.package)/
//
Mais cela ne semble pas fonctionner, mon paquet talensac-adobereader reste dans la liste des paquets à installer.
Me-suis trompé quelque part ?
Cordialement
Alan
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Petite correction sinon vous allez être embêter avec les prochaine version de wapt:
oswindows = registry_readstring(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows NT\CurrentVersion', 'ProductName') if 'Windows XP' in oswindows : print('Je suis un Windows XP') del uninstallkey[:] return (0);
En effet la prochaine version de wapt gère la vérification de la uninstallkey a la fin de l'installation
Petit précision d'hubert:
Il faut donc changer la uninstallkey si le logiciel ne doit pas installer car sinon le paquet se mettra en erreur
del uninstallkey[:]
Pour vider uninstallkey coimplètement (si c'est cela que tu veux faire) , il faut plutôt écrire : *del *uninstallkey*[:] *
Ou sinon vous pouvez travailler par ajout de clé .. et donc laisser vide la uninstallkey lors de sa déclaration uninstallkey = []
puis suivant le cas d'ajouter la bonne clé.
par exemple if iswin64(): uninstallkey.append('clewin-x64') else: uninstallkey.append('clewin-x86')
Simon
Le 24/11/2015 12:25, Hubert TOUVET a écrit :
Effectivement... :-[ correctif à inclure dans la 1.3.3....
merci ! Hubert
Le 24/11/2015 12:21, Fonteneau Simon a écrit :
C'est la bonne syntaxe cependant je n'ai jamais réussi a oublier un paquet en erreur. (tranquil.it pourra confirmer le problème ?)
Du coup dans ce cas il faut modifier le paquet erreur pour qu'il ne génère plus d'erreur et ensuite je peux l'oublier.
Dans ton cas je te conseille de modifier/talensac-adobereader/
et d'ajouter en dessou du def install
oswindows =
registry_readstring(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows NT\CurrentVersion', 'ProductName') if 'Windows XP' in oswindows : print('Je suis un Windows XP') return (0);
Simon
Le 24/11/2015 11:42, Alan DAOULAS a écrit :
Bonjour,
J’ai ajouté le paquet talensac-adobereader « Adobe Reader DC 15.009.20069 » à mon inventaire,
Néanmoins, j’ai vu un poil trop tard qu’il n’était pas possible de l’installer sur XP, et pas mal de PC l’ont dans leur liste.
Du coup quand je clique sur le paquet sur un poste XP on m’affiche :
/Fermeture d Adobe Reader/
/Fermeture de la mise a jour automatique d adobe reader/
/installation Adobe Reader/
/desactivation des mises a jour automatiques/
/EWaptSetupException: Fatal error : End audit did not find the software./
//
Du coup j’ai créé un paquet talensac-fixuptalensac contenant :
/import platform/
/from setuphelpers import */
/uninstallkey=[]/
//
/def install():/
/ reader = WAPT.is_installed('talensac-adobereader')/
/if reader :/
/WAPT.forget_packages(reader.package)/
//
Mais cela ne semble pas fonctionner, mon paquet talensac-adobereader reste dans la liste des paquets à installer.
Me-suis trompé quelque part ?
Cordialement
Alan
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt