Bonjour,
Je rencontre un problème avec le packet "PhotoFiltre 7". Je veux le déployer sur des postes en WinXP, des postes Win7 et des postes en Win10. Hors l'installation du packet PhotoFiltre est différente selon si l'OS est WinXP ou Win7/10.
Je m'explique : - la prise en charge du CURENT-USER est bien géré sous WinXP mais mal géré sous Win7/10 - la prise en charge du ALLUSERS (Public) est mal géré sous Win7/10 - la gestion du Menu Démarrer du CURENT-USER est bien géré sous WinXP mais ne fonctionne pas sous Win7/10 - la gestion des Programmes du Menu Démarrer pour ALLUSERS (Public) ne fonctionne pas correctement sous Win7/10 : la fonction "create_programs_menu_shortcut" qui permet de créer un raccourci dans le Menu Démarrer pour ALLUSERS pointe en réalité au mauvais endroit "C:\ProgramData\Microsoft\Windows\Start Menu" alors qu'il doit pointer sur le vrai dossier => "C:\ProgramData\Microsoft\Windows\Start Menu\Programs"
Tous cela afin d'avoir des gestions de déploiement homogène.
Je suis entrain de recréer un nouveau packet PhotoFiltre, mais je rencontre un problème lors de la création du raccourci dans les Programmes du Menu Démarrer pour ALLUSERS, avec la fonction "create_programs_menu_shortcut"
Actuellement : "create_programs_menu_shortcut" = "C:\ProgramData\Microsoft\Windows\Start Menu"
Comment faire pour que "create_programs_menu_shortcut" =>> "C:\ProgramData\Microsoft\Windows\Start Menu\Programs" ???????????????
Dois-je passer par la fonction "makepath" ou puis-je faire : create_programs_menu_shortcut('\Programs\PhotoFiltre 7', os.path.join(programfiles32, 'PhotoFiltre 7', 'PhotoFiltre7.exe')) : en rajoutant " \Programs\"
Cordialement
*Jean-Luc VERON* Site de Poitiers Bassin de Melle Pôle Éducation Citoyenneté - Direction de l'Éducation Service Lycée Numérique
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Garanti sans virus. www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Bonjour,
Wapt 1.3.13.0 Win7x64
J'ai le même problème avec la fonction : create_programs_menu_shortcut
Cordialement,
Frédéric G.
De: "Jean-Luc VERON" jean-luc.veron@nouvelle-aquitaine.fr À: wapt-request@lists.tranquil.it, wapt@lists.tranquil.it, wapt-owner@lists.tranquil.it Envoyé: Jeudi 8 Février 2018 14:39:16 Objet: [Wapt] problème package PhotoFiltre
Bonjour,
Je rencontre un problème avec le packet "PhotoFiltre 7". Je veux le déployer sur des postes en WinXP, des postes Win7 et des postes en Win10. Hors l'installation du packet PhotoFiltre est différente selon si l'OS est WinXP ou Win7/10.
Je m'explique : - la prise en charge du CURENT-USER est bien géré sous WinXP mais mal géré sous Win7/10 - la prise en charge du ALLUSERS (Public) est mal géré sous Win7/10 - la gestion du Menu Démarrer du CURENT-USER est bien géré sous WinXP mais ne fonctionne pas sous Win7/10 - la gestion des Programmes du Menu Démarrer pour ALLUSERS (Public) ne fonctionne pas correctement sous Win7/10 : la fonction "create_programs_menu_shortcut" qui permet de créer un raccourci dans le Menu Démarrer pour ALLUSERS pointe en réalité au mauvais endroit "C:\ProgramData\Microsoft\Windows\Start Menu" alors qu'il doit pointer sur le vrai dossier => "C:\ProgramData\Microsoft\Windows\Start Menu\Programs"
Tous cela afin d'avoir des gestions de déploiement homogène.
Je suis entrain de recréer un nouveau packet PhotoFiltre, mais je rencontre un problème lors de la création du raccourci dans les Programmes du Menu Démarrer pour ALLUSERS, avec la fonction "create_programs_menu_shortcut"
Actuellement : "create_programs_menu_shortcut" = "C:\ProgramData\Microsoft\Windows\Start Menu"
Comment faire pour que "create_programs_menu_shortcut" =>> "C:\ProgramData\Microsoft\Windows\Start Menu\Programs" ???????????????
Dois-je passer par la fonction "makepath" ou puis-je faire : create_programs_menu_shortcut('\Programs\PhotoFiltre 7', os.path.join(programfiles32, 'PhotoFiltre 7', 'PhotoFiltre7.exe')) : en rajoutant " \Programs\"
Cordialement
Jean-Luc VERON Site de Poitiers Bassin de Melle Pôle Éducation Citoyenneté - Direction de l'Éducation Service Lycée Numérique
Garanti sans virus. www.avg.com
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Voici un exemple qui fonctionne correctement chez moi.
Les lignes suivante me permettent de créer et ranger les raccourcis scratch dans différent dossier du menu démarrer. Il faut s'assurer que les dossiers cible existe d'où leur création
print('Creation des raccourcis Scratch') mkdirs(u'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Mathématique') mkdirs(u'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Programmation') create_programs_menu_shortcut(u'Programs\Mathématique\Scratch 2', target=makepath(programfiles32,'Scratch 2','Scratch 2.exe'), arguments='', wDir=makepath(programfiles32,'Scratch 2')) create_programs_menu_shortcut(u'Programs\Programmation\Scratch 2', target=makepath(programfiles32,'Scratch 2','Scratch 2.exe'), arguments='', wDir=makepath(programfiles32,'Scratch 2'))
De ce que j'ai compris le caractère U permet de gérer correctement le caractère \ *programfiles32 *ou *programfiles *doit être utilisé alternativement pour les logiciels installés dans les dossier "*Program Files (x86)*" et "*Programmes*"
Est ce que cette proposition vous permet d'utiliser correctement create_programs_menu_shortcut ?
Joël LATIEULE - 06.38.02.33.27 / TICE
Collège Victor Hugo - 0110021n 5 boulevard Marcel Sembat, 11100 Narbonne 04.68.90.24.00
Le 08/02/2018 à 14:39, Jean-Luc VERON a écrit :
Bonjour,
Je rencontre un problème avec le packet "PhotoFiltre 7". Je veux le déployer sur des postes en WinXP, des postes Win7 et des postes en Win10. Hors l'installation du packet PhotoFiltre est différente selon si l'OS est WinXP ou Win7/10.
Je m'explique :
- la prise en charge du CURENT-USER est bien géré sous WinXP mais mal
géré sous Win7/10
- la prise en charge du ALLUSERS (Public) est mal géré sous Win7/10
- la gestion du Menu Démarrer du CURENT-USER est bien géré sous WinXP
mais ne fonctionne pas sous Win7/10
- la gestion des Programmes du Menu Démarrer pour ALLUSERS (Public) ne
fonctionne pas correctement sous Win7/10 : la fonction "create_programs_menu_shortcut" qui permet de créer un raccourci dans le Menu Démarrer pour ALLUSERS pointe en réalité au mauvais endroit "C:\ProgramData\Microsoft\Windows\Start Menu" alors qu'il doit pointer sur le vrai dossier => "C:\ProgramData\Microsoft\Windows\Start Menu\Programs"
Tous cela afin d'avoir des gestions de déploiement homogène.
Je suis entrain de recréer un nouveau packet PhotoFiltre, mais je rencontre un problème lors de la création du raccourci dans les Programmes du Menu Démarrer pour ALLUSERS, avec la fonction "create_programs_menu_shortcut"
Actuellement : "create_programs_menu_shortcut" = "C:\ProgramData\Microsoft\Windows\Start Menu"
Comment faire pour que "create_programs_menu_shortcut" =>> "C:\ProgramData\Microsoft\Windows\Start Menu\Programs" ???????????????
Dois-je passer par la fonction "makepath" ou puis-je faire : create_programs_menu_shortcut('\Programs\PhotoFiltre 7', os.path.join(programfiles32, 'PhotoFiltre 7', 'PhotoFiltre7.exe')) : en rajoutant " \Programs\"
Cordialement
*Jean-Luc VERON* Site de Poitiers Bassin de Melle Pôle Éducation Citoyenneté - Direction de l'Éducation Service Lycée Numérique
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Garanti sans virus. www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt