Bonjour,
SumatraPDF stocke son fichier de configuration dans le répertoire : C:\Users\XXX\AppData\Roaming\SumatraPDF\SumatraPDF-settings.txt
Je souhaiterais pouvoir mettre ce fichier personnalisé (pour désactiver les onglets et avoir la barre de menu en haut) dans chaque répertoire de session d'utilisateur au moment de l'installation de SumatraPDF.
Pouvez-vous m'indiquer comment faire ? J'en n'ai pas trouvé... En vous remerciant,
Bonjour,
Avez-vous essayer C:\Users\Default\Public\Roaming\SumatraPDF\SumatraPDF-settings.txt ?
À bientôt
Christophe Pujol I.T. Support ANADIAG S.A.S.
De : WAPT [mailto:wapt-bounces@lists.tranquil.it] De la part de Hugo MOUBÈCHE Envoyé : vendredi 29 juillet 2016 11:03 À : WAPT@lists.tranquil.it Objet : [Wapt] SumatraPDF : mettre un fichier de configuration dans APPDATA
Bonjour,
SumatraPDF stocke son fichier de configuration dans le répertoire : C:\Users\XXX\AppData\Roaming
Je souhaiterais pouvoir mettre ce fichier personnalisé (pour désactiver les onglets et avoir la barre de menu en haut) dans chaque répertoire de session d'utilisateur au moment de l'installation de SumatraPDF. Pouvez-vous m'indiquer comment faire ? J'en n'ai pas trouvé... En vous remerciant, --
Hugo MOUBÈCHE Alternant Systèmes d'Information h.moubeche@normatrans.commailto:h.moubeche@normatrans.com
Merci pour votre réponse. Cela ne fonctionne malheureusement pas. Bien à vous,
Le 29/07/2016 à 14:47, service info a écrit :
Bonjour,
Avez-vous essayer C:\Users\Default\Public\Roaming\SumatraPDF\SumatraPDF-settings.txt ?
À bientôt
*Christophe Pujol*
I.T. Support
*ANADIAG S.A.S.*
*De :*WAPT [mailto:wapt-bounces@lists.tranquil.it] *De la part de* Hugo MOUBÈCHE *Envoyé :* vendredi 29 juillet 2016 11:03 *À :* WAPT@lists.tranquil.it *Objet :* [Wapt] SumatraPDF : mettre un fichier de configuration dans APPDATA
Bonjour,
SumatraPDF stocke son fichier de configuration dans le répertoire : C:\Users\XXX\AppData\Roaming
Je souhaiterais pouvoir mettre ce fichier personnalisé (pour désactiver les onglets et avoir la barre de menu en haut) dans chaque répertoire de session d'utilisateur au moment de l'installation de SumatraPDF.
Pouvez-vous m'indiquer comment faire ? J'en n'ai pas trouvé... En vous remerciant,
--
Hugo MOUBÈCHE Alternant Systèmes d'Information h.moubeche@normatrans.com mailto:h.moubeche@normatrans.com
Bonjour,
j'ai eu le cas dans certains paquets où je devais effectuer une supression ou ajout de dossier ou fichier dans tous les répertoires locaux utilisateurs, je passe pas un fichier VBS que je lance dans le code python avec la commande run et ça fonctionne bien. Le fichier VBS traite tous les sous-répertoires de C:\users et vérifie si l'objet recherché est présent dans les réperoires et si oui il effectue un traitement (copie, suppression...).
Les puristes WAPT et Python n'aiment sûrement pas, mais au final ça fonctionne !
Si besoin d'un exemple dites le moi.
Après, dans votre cas précis, il y a peut-être moyen de faire autrement pour que tous les utilisateur aient le même fichier de configuration sans avoir besoin de le copier dans chaque répertoire utilisateur. Et la limite est : comment faites vous lorsque un nouvelle utilisateur se connecte sur le poste ? Il n'aura pas le fichier de conf personnalisé.
Il y a aussi le "WAPT session" qui sert à faire des configuration au demarrage des sessions utilisateurs, mais je ne l'ai jamais utilisé.
Cdlt.
Sébastien Joussemet Mairie de Challans
Hugo MOUBÈCHE h.moubeche@normatrans.com écrit:
Merci pour votre réponse. Cela ne fonctionne malheureusement pas. Bien à vous,
Le 29/07/2016 à 14:47, service info a écrit :
Bonjour, Avez-vous essayer C:\Users\Default\Public\Roaming\SumatraPDF\SumatraPDF-settings.txt ? À bientôt Christophe Pujol I.T. Support ANADIAG S.A.S.
De : WAPT [[ mailto:wapt-bounces@lists.tranquil.it ]mailto:wapt-bounces@lists.tranquil.it] De la part de Hugo MOUBÈCHE Envoyé : vendredi 29 juillet 2016 11:03 À : [ mailto:WAPT@lists.tranquil.it ]WAPT@lists.tranquil.it Objet : [Wapt] SumatraPDF : mettre un fichier de configuration dans APPDATA
Bonjour, SumatraPDF stocke son fichier de configuration dans le répertoire : C:\Users\XXX\AppData\Roaming Je souhaiterais pouvoir mettre ce fichier personnalisé (pour désactiver les onglets et avoir la barre de menu en haut) dans chaque répertoire de session d'utilisateur au moment de l'installation de SumatraPDF. Pouvez-vous m'indiquer comment faire ? J'en n'ai pas trouvé... En vous remerciant, -- Hugo MOUBÈCHE Alternant Systèmes d'Information [ mailto:h.moubeche@normatrans.com ]h.moubeche@normatrans.com
--
Hugo MOUBÈCHE Alternant Systèmes d'Information [ mailto:h.moubeche@normatrans.com ]h.moubeche@normatrans.com [ http://www.normatrans.com ]www.normatrans.com Bâtiment 1, messagerie 28 rue des Frères Chappe - 14540 GRENTHEVILLE (sortie 15 Vallée sèche) Tél : +33 (0)2.31.35.29.35 Fax : +33 (0)2.31.35.29.40
[Image] [Image] [Image]
Merci pour la réponse.
Il semble que "WAPT Session" puisse être une solution, mais je n'ai pas trouvé comment l'utiliser.
je veux bien un exemple de script vbs :-)
Merci
Le 29/07/2016 à 15:56, informatique a écrit :
Bonjour,
j'ai eu le cas dans certains paquets où je devais effectuer une supression ou ajout de dossier ou fichier dans tous les répertoires locaux utilisateurs, je passe pas un fichier VBS que je lance dans le code python avec la commande run et ça fonctionne bien. Le fichier VBS traite tous les sous-répertoires de C:\users et vérifie si l'objet recherché est présent dans les réperoires et si oui il effectue un traitement (copie, suppression...).
Les puristes WAPT et Python n'aiment sûrement pas, mais au final ça fonctionne !
Si besoin d'un exemple dites le moi.
Après, dans votre cas précis, il y a peut-être moyen de faire autrement pour que tous les utilisateur aient le même fichier de configuration sans avoir besoin de le copier dans chaque répertoire utilisateur. Et la limite est : comment faites vous lorsque un nouvelle utilisateur se connecte sur le poste ? Il n'aura pas le fichier de conf personnalisé.
Il y a aussi le "WAPT session" qui sert à faire des configuration au demarrage des sessions utilisateurs, mais je ne l'ai jamais utilisé.
Cdlt.
Sébastien Joussemet Mairie de Challans
*Hugo MOUBÈCHE <h.moubeche@normatrans.com mailto:h.moubeche@normatrans.com> écrit:* Merci pour votre réponse. Cela ne fonctionne malheureusement pas. Bien à vous,
Le 29/07/2016 à 14:47, service info a écrit :
Bonjour, Avez-vous essayer C:\Users\Default\Public\Roaming\SumatraPDF\SumatraPDF-settings.txt ? À bientôt *Christophe Pujol* I.T. Support *ANADIAG S.A.S.*
*De :* WAPT [mailto:wapt-bounces@lists.tranquil.it] *De la part de* Hugo MOUBÈCHE *Envoyé :* vendredi 29 juillet 2016 11:03 *À :* WAPT@lists.tranquil.it mailto:WAPT@lists.tranquil.it *Objet :* [Wapt] SumatraPDF : mettre un fichier de configuration dans APPDATA
Bonjour, SumatraPDF stocke son fichier de configuration dans le répertoire : C:\Users\XXX\AppData\Roaming Je souhaiterais pouvoir mettre ce fichier personnalisé (pour désactiver les onglets et avoir la barre de menu en haut) dans chaque répertoire de session d'utilisateur au moment de l'installation de SumatraPDF. Pouvez-vous m'indiquer comment faire ? J'en n'ai pas trouvé... En vous remerciant, -- Hugo MOUBÈCHE Alternant Systèmes d'Information h.moubeche@normatrans.com mailto:h.moubeche@normatrans.com
--
Hugo MOUBÈCHE Alternant Systèmes d'Information h.moubeche@normatrans.com mailto:h.moubeche@normatrans.com www.normatrans.com http://www.normatrans.com Bâtiment 1, messagerie 28 rue des Frères Chappe - 14540 GRENTHEVILLE (sortie 15 Vallée sèche) Tél : +33 (0)2.31.35.29.35 Fax : +33 (0)2.31.35.29.40
NormatransObjectif C02 Certifié OEA
sur wapt 1.3.5, on peut faire par exemple ceci :
def uninstall(): ... print(u'Nettoyage, on enlève les raccourcis sur les bureaux...') for desktop_dir in local_desktops(): remove_file(makepath(desktop_dir,'SumatraPDF.lnk'))
Le 29/07/2016 à 16:03, Hugo MOUBÈCHE a écrit :
Merci pour la réponse.
Il semble que "WAPT Session" puisse être une solution, mais je n'ai pas trouvé comment l'utiliser.
je veux bien un exemple de script vbs :-)
Merci
Le 29/07/2016 à 15:56, informatique a écrit :
Bonjour,
j'ai eu le cas dans certains paquets où je devais effectuer une supression ou ajout de dossier ou fichier dans tous les répertoires locaux utilisateurs, je passe pas un fichier VBS que je lance dans le code python avec la commande run et ça fonctionne bien. Le fichier VBS traite tous les sous-répertoires de C:\users et vérifie si l'objet recherché est présent dans les réperoires et si oui il effectue un traitement (copie, suppression...).
Les puristes WAPT et Python n'aiment sûrement pas, mais au final ça fonctionne !
Si besoin d'un exemple dites le moi.
Après, dans votre cas précis, il y a peut-être moyen de faire autrement pour que tous les utilisateur aient le même fichier de configuration sans avoir besoin de le copier dans chaque répertoire utilisateur. Et la limite est : comment faites vous lorsque un nouvelle utilisateur se connecte sur le poste ? Il n'aura pas le fichier de conf personnalisé.
Il y a aussi le "WAPT session" qui sert à faire des configuration au demarrage des sessions utilisateurs, mais je ne l'ai jamais utilisé.
Cdlt.
Sébastien Joussemet Mairie de Challans
*Hugo MOUBÈCHE <h.moubeche@normatrans.com mailto:h.moubeche@normatrans.com> écrit:* Merci pour votre réponse. Cela ne fonctionne malheureusement pas. Bien à vous,
Le 29/07/2016 à 14:47, service info a écrit :
Bonjour, Avez-vous essayer C:\Users\Default\Public\Roaming\SumatraPDF\SumatraPDF-settings.txt ? À bientôt *Christophe Pujol* I.T. Support *ANADIAG S.A.S.*
*De :* WAPT [mailto:wapt-bounces@lists.tranquil.it] *De la part de* Hugo MOUBÈCHE *Envoyé :* vendredi 29 juillet 2016 11:03 *À :* WAPT@lists.tranquil.it mailto:WAPT@lists.tranquil.it *Objet :* [Wapt] SumatraPDF : mettre un fichier de configuration dans APPDATA
Bonjour, SumatraPDF stocke son fichier de configuration dans le répertoire : C:\Users\XXX\AppData\Roaming Je souhaiterais pouvoir mettre ce fichier personnalisé (pour désactiver les onglets et avoir la barre de menu en haut) dans chaque répertoire de session d'utilisateur au moment de l'installation de SumatraPDF. Pouvez-vous m'indiquer comment faire ? J'en n'ai pas trouvé... En vous remerciant, -- Hugo MOUBÈCHE Alternant Systèmes d'Information h.moubeche@normatrans.com mailto:h.moubeche@normatrans.com
--
Hugo MOUBÈCHE Alternant Systèmes d'Information h.moubeche@normatrans.com mailto:h.moubeche@normatrans.com www.normatrans.com http://www.normatrans.com Bâtiment 1, messagerie 28 rue des Frères Chappe - 14540 GRENTHEVILLE (sortie 15 Vallée sèche) Tél : +33 (0)2.31.35.29.35 Fax : +33 (0)2.31.35.29.40
NormatransObjectif C02 Certifié OEA
--
Hugo MOUBÈCHE Alternant Systèmes d'Information h.moubeche@normatrans.com mailto:h.moubeche@normatrans.com www.normatrans.com http://www.normatrans.com Bâtiment 1, messagerie 28 rue des Frères Chappe - 14540 GRENTHEVILLE (sortie 15 Vallée sèche) Tél : +33 (0)2.31.35.29.35 Fax : +33 (0)2.31.35.29.40
[Normatrans] [Objectif C02] [Certifié OEA]
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
mettre le SumatraPDF-settings.txt dans le paquet et ajouter la fonction session_setup dans setup.py comme suit. Le raccourci "Wapt sessionsetup" dans le menu Démarrage des utilisateurs s'occupe de lancer cette fonction une fois pour chaque utilisateur et chaque version de paquet.
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
def install(): install_exe_if_needed('SumatraPDF-3.1.1-install.exe','/s /register',key='SumatraPDF',min_version='3.1.1') * **def session_setup(): mkdirs(makepath(application_data,'SumatraPDF')) filecopyto('SumatraPDF-settings.txt',makepath(application_data,'SumatraPDF'))*
Hubert
Le 29/07/2016 à 11:03, Hugo MOUBÈCHE a écrit :
Bonjour,
SumatraPDF stocke son fichier de configuration dans le répertoire : C:\Users\XXX\AppData\Roaming\SumatraPDF\SumatraPDF-settings.txt
Je souhaiterais pouvoir mettre ce fichier personnalisé (pour désactiver les onglets et avoir la barre de menu en haut) dans chaque répertoire de session d'utilisateur au moment de l'installation de SumatraPDF.
Pouvez-vous m'indiquer comment faire ? J'en n'ai pas trouvé... En vous remerciant, --
Hugo MOUBÈCHE Alternant Systèmes d'Information h.moubeche@normatrans.com mailto:h.moubeche@normatrans.com
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt