Bonsoir
Ci dessous le setup.py :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le fichier BDR :
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français"
le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première
Si je fusionne manuellement, aucun problème
d'avance merci pour vos lumières
Olivier
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
Bonsoir,
essayer avec la méthode registry_setstring() pour ajouter les clé de registre,
j'ai eu un soucis similaire et registry_setstring() a solutionner mon pb
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist...
le pb vient de windows car les gens sous update_engines sont egalement bloqué dans la creation/modification des clé de registre sous compte system.
Le 30/05/2016 à 20:51, Olivier CATY a écrit :
Bonsoir
Ci dessous le setup.py :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le fichier BDR :
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français"
le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première
Si je fusionne manuellement, aucun problème
d'avance merci pour vos lumières
Olivier
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection"
Essayer :
def install(): print('installing annajudic-charlygraalv5') *with disable_file_system_redirection():* run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le 30/05/2016 à 20:51, Olivier CATY a écrit :
Bonsoir
Ci dessous le setup.py :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le fichier BDR :
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français"
le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première
Si je fusionne manuellement, aucun problème
d'avance merci pour vos lumières
Olivier
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonsoir
merci sa marche très bien avec ces arguments
maintenant je cherche a supprimer les cles lors de la déinstallation
voici le code mai sa ne fonctionne pas
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
def uninstall():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
encore une fois j'ai pas compris la syntaxe
merci
Le 31 mai 2016 à 11:00, Hubert TOUVET htouvet@tranquil.it a écrit :
Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection"
Essayer :
def install(): print('installing annajudic-charlygraalv5') *with disable_file_system_redirection():* run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le 30/05/2016 à 20:51, Olivier CATY a écrit :
Bonsoir
Ci dessous le setup.py :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le fichier BDR :
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français"
le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première
Si je fusionne manuellement, aucun problème
d'avance merci pour vos lumières
Olivier
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Logiquement même chose pour uninstall :
def uninstall(): with disable_file_system_redirection(): registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
Simon https://blog.lesfourmisduweb.org
Le 31/05/2016 19:16, Olivier CATY a écrit :
Bonsoir
merci sa marche très bien avec ces arguments
maintenant je cherche a supprimer les cles lors de la déinstallation
voici le code mai sa ne fonctionne pas
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
def uninstall(): registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
encore une fois j'ai pas compris la syntaxe
merci
Le 31 mai 2016 à 11:00, Hubert TOUVET <htouvet@tranquil.it mailto:htouvet@tranquil.it> a écrit :
Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection" Essayer : def install(): print('installing annajudic-charlygraalv5') *with disable_file_system_redirection():* run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Le 30/05/2016 à 20:51, Olivier CATY a écrit :
Bonsoir Ci dessous le setup.py : # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Le fichier BDR : Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français" le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première Si je fusionne manuellement, aucun problème d'avance merci pour vos lumières Olivier -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonjour
cela ne fonctionne pas, la fonction de suppression des clé de registre ne fonctionnent pas.
mais j'ai un autre problème
Lors du deploiement via la console wapt le soft s'install mais lors de l’exécution il m'indique fichier manquant.
Alors que lorsque j'exécute wapt-get install, j'ai aucun problème
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Merci à tous pour votre aide
Le 1 juin 2016 à 01:56, Fonteneau Simon blog@lesfourmisduweb.org a écrit :
Logiquement même chose pour uninstall :
def uninstall(): with disable_file_system_redirection():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
Simon https://blog.lesfourmisduweb.org
Le 31/05/2016 19:16, Olivier CATY a écrit :
Bonsoir
merci sa marche très bien avec ces arguments
maintenant je cherche a supprimer les cles lors de la déinstallation
voici le code mai sa ne fonctionne pas
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
def uninstall():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
encore une fois j'ai pas compris la syntaxe
merci
Le 31 mai 2016 à 11:00, Hubert TOUVET htouvet@tranquil.it a écrit :
Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection"
Essayer :
def install(): print('installing annajudic-charlygraalv5') *with disable_file_system_redirection():* run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le 30/05/2016 à 20:51, Olivier CATY a écrit :
Bonsoir
Ci dessous le setup.py :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le fichier BDR :
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français"
le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première
Si je fusionne manuellement, aucun problème
d'avance merci pour vos lumières
Olivier
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonsoir
j'ai trouver d'ou viens le problème de l'install via la console.
J'ai besoin d'inscrire d'autre cle registre dans HKEY-CURRENT_USERS
J'ai donc rajouter mes cle dans mon .reg
Le problème est que la fonction with disable_file_system_redirection(): cela ne fonctionnent pas
Je vais essayer de revoir tous mon code avec la première réponse Phil markhan
Si vous avez une autre idée
Le 2 juin 2016 à 14:35, Olivier CATY emmir.zone15@squale21.fr a écrit :
Bonjour
cela ne fonctionne pas, la fonction de suppression des clé de registre ne fonctionnent pas.
mais j'ai un autre problème
Lors du deploiement via la console wapt le soft s'install mais lors de l’exécution il m'indique fichier manquant.
Alors que lorsque j'exécute wapt-get install, j'ai aucun problème
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Merci à tous pour votre aide
Le 1 juin 2016 à 01:56, Fonteneau Simon blog@lesfourmisduweb.org a écrit :
Logiquement même chose pour uninstall :
def uninstall(): with disable_file_system_redirection():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
Simon https://blog.lesfourmisduweb.org
Le 31/05/2016 19:16, Olivier CATY a écrit :
Bonsoir
merci sa marche très bien avec ces arguments
maintenant je cherche a supprimer les cles lors de la déinstallation
voici le code mai sa ne fonctionne pas
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
def uninstall():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
encore une fois j'ai pas compris la syntaxe
merci
Le 31 mai 2016 à 11:00, Hubert TOUVET htouvet@tranquil.it a écrit :
Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection"
Essayer :
def install(): print('installing annajudic-charlygraalv5') *with disable_file_system_redirection():* run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le 30/05/2016 à 20:51, Olivier CATY a écrit :
Bonsoir
Ci dessous le setup.py :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le fichier BDR :
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français"
le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première
Si je fusionne manuellement, aucun problème
d'avance merci pour vos lumières
Olivier
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
voila ce que j'ai fait :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
def session_setup(): with disable_file_system_redirection(): run(r'regedit.exe /s soft.reg')
Seulement le contenu du soft.reg ne sont pas toutes inscrites dans la base de registre
je commence a me dire que cela va finir a la main l'histoire
Le 6 juin 2016 à 19:56, Olivier CATY emmir.zone15@squale21.fr a écrit :
Bonsoir
j'ai trouver d'ou viens le problème de l'install via la console.
J'ai besoin d'inscrire d'autre cle registre dans HKEY-CURRENT_USERS
J'ai donc rajouter mes cle dans mon .reg
Le problème est que la fonction with disable_file_system_redirection(): cela ne fonctionnent pas
Je vais essayer de revoir tous mon code avec la première réponse Phil markhan
Si vous avez une autre idée
Le 2 juin 2016 à 14:35, Olivier CATY emmir.zone15@squale21.fr a écrit :
Bonjour
cela ne fonctionne pas, la fonction de suppression des clé de registre ne fonctionnent pas.
mais j'ai un autre problème
Lors du deploiement via la console wapt le soft s'install mais lors de l’exécution il m'indique fichier manquant.
Alors que lorsque j'exécute wapt-get install, j'ai aucun problème
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Merci à tous pour votre aide
Le 1 juin 2016 à 01:56, Fonteneau Simon blog@lesfourmisduweb.org a écrit :
Logiquement même chose pour uninstall :
def uninstall(): with disable_file_system_redirection():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
Simon https://blog.lesfourmisduweb.org
Le 31/05/2016 19:16, Olivier CATY a écrit :
Bonsoir
merci sa marche très bien avec ces arguments
maintenant je cherche a supprimer les cles lors de la déinstallation
voici le code mai sa ne fonctionne pas
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
def uninstall():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
encore une fois j'ai pas compris la syntaxe
merci
Le 31 mai 2016 à 11:00, Hubert TOUVET htouvet@tranquil.it a écrit :
Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection"
Essayer :
def install(): print('installing annajudic-charlygraalv5') *with disable_file_system_redirection():* run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le 30/05/2016 à 20:51, Olivier CATY a écrit :
Bonsoir
Ci dessous le setup.py :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le fichier BDR :
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français"
le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première
Si je fusionne manuellement, aucun problème
d'avance merci pour vos lumières
Olivier
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
bonjour
je reprend a zéro
comment ajouter des cles dans HKEY_CURRENT_USER vu que si j'ai bien compris avec le compte system cela n'est pas possible, ou fusionner un .reg ?
si vous pouviez me proposer un code.
d'avance je vous remercie
Olivier
Le 6 juin 2016 à 21:30, Olivier CATY emmir.zone15@squale21.fr a écrit :
voila ce que j'ai fait :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
def session_setup(): with disable_file_system_redirection(): run(r'regedit.exe /s soft.reg')
Seulement le contenu du soft.reg ne sont pas toutes inscrites dans la base de registre
je commence a me dire que cela va finir a la main l'histoire
Le 6 juin 2016 à 19:56, Olivier CATY emmir.zone15@squale21.fr a écrit :
Bonsoir
j'ai trouver d'ou viens le problème de l'install via la console.
J'ai besoin d'inscrire d'autre cle registre dans HKEY-CURRENT_USERS
J'ai donc rajouter mes cle dans mon .reg
Le problème est que la fonction with disable_file_system_redirection(): cela ne fonctionnent pas
Je vais essayer de revoir tous mon code avec la première réponse Phil markhan
Si vous avez une autre idée
Le 2 juin 2016 à 14:35, Olivier CATY emmir.zone15@squale21.fr a écrit :
Bonjour
cela ne fonctionne pas, la fonction de suppression des clé de registre ne fonctionnent pas.
mais j'ai un autre problème
Lors du deploiement via la console wapt le soft s'install mais lors de l’exécution il m'indique fichier manquant.
Alors que lorsque j'exécute wapt-get install, j'ai aucun problème
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Merci à tous pour votre aide
Le 1 juin 2016 à 01:56, Fonteneau Simon blog@lesfourmisduweb.org a écrit :
Logiquement même chose pour uninstall :
def uninstall(): with disable_file_system_redirection():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
Simon https://blog.lesfourmisduweb.org
Le 31/05/2016 19:16, Olivier CATY a écrit :
Bonsoir
merci sa marche très bien avec ces arguments
maintenant je cherche a supprimer les cles lors de la déinstallation
voici le code mai sa ne fonctionne pas
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
def uninstall():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
encore une fois j'ai pas compris la syntaxe
merci
Le 31 mai 2016 à 11:00, Hubert TOUVET htouvet@tranquil.it a écrit :
Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection"
Essayer :
def install(): print('installing annajudic-charlygraalv5') *with disable_file_system_redirection():* run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le 30/05/2016 à 20:51, Olivier CATY a écrit :
Bonsoir
Ci dessous le setup.py :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le fichier BDR :
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français"
le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première
Si je fusionne manuellement, aucun problème
d'avance merci pour vos lumières
Olivier
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
Bonsoir,
essayer avec la méthode registry_setstring() pour ajouter les clé de registre,
j'ai eu un soucis similaire et registry_setstring() a solutionner mon pb
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist...
le pb vient de windows car les gens sous update_engines sont egalement bloqué dans la creation/modification des clé de registre sous compte system.
Le 07/06/2016 à 16:39, Olivier CATY a écrit :
bonjour
je reprend a zéro
comment ajouter des cles dans HKEY_CURRENT_USER vu que si j'ai bien compris avec le compte system cela n'est pas possible, ou fusionner un .reg ?
si vous pouviez me proposer un code.
d'avance je vous remercie
Olivier
Le 6 juin 2016 à 21:30, Olivier CATY <emmir.zone15@squale21.fr mailto:emmir.zone15@squale21.fr> a écrit :
voila ce que j'ai fait : # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') def session_setup(): with disable_file_system_redirection(): run(r'regedit.exe /s soft.reg') Seulement le contenu du soft.reg ne sont pas toutes inscrites dans la base de registre je commence a me dire que cela va finir a la main l'histoire Le 6 juin 2016 à 19:56, Olivier CATY <emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>> a écrit : Bonsoir j'ai trouver d'ou viens le problème de l'install via la console. J'ai besoin d'inscrire d'autre cle registre dans HKEY-CURRENT_USERS J'ai donc rajouter mes cle dans mon .reg Le problème est que la fonction with disable_file_system_redirection(): cela ne fonctionnent pas Je vais essayer de revoir tous mon code avec la première réponse Phil markhan Si vous avez une autre idée Le 2 juin 2016 à 14:35, Olivier CATY <emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>> a écrit : Bonjour cela ne fonctionne pas, la fonction de suppression des clé de registre ne fonctionnent pas. mais j'ai un autre problème Lors du deploiement via la console wapt le soft s'install mais lors de l’exécution il m'indique fichier manquant. Alors que lorsque j'exécute wapt-get install, j'ai aucun problème # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Merci à tous pour votre aide Le 1 juin 2016 à 01:56, Fonteneau Simon <blog@lesfourmisduweb.org <mailto:blog@lesfourmisduweb.org>> a écrit : Logiquement même chose pour uninstall : def uninstall(): with disable_file_system_redirection(): registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\\Charlyrobot','CharlyGraal V5') Simonhttps://blog.lesfourmisduweb.org Le 31/05/2016 19:16, Olivier CATY a écrit :
Bonsoir merci sa marche très bien avec ces arguments maintenant je cherche a supprimer les cles lors de la déinstallation voici le code mai sa ne fonctionne pas # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') def uninstall(): registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\\Charlyrobot','CharlyGraal V5') encore une fois j'ai pas compris la syntaxe merci Le 31 mai 2016 à 11:00, Hubert TOUVET <htouvet@tranquil.it <mailto:htouvet@tranquil.it>> a écrit : Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection" Essayer : def install(): print('installing annajudic-charlygraalv5') *with disable_file_system_redirection():* run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Le 30/05/2016 à 20:51, Olivier CATY a écrit :
Bonsoir Ci dessous le setup.py : # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Le fichier BDR : Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français" le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première Si je fusionne manuellement, aucun problème d'avance merci pour vos lumières Olivier -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonjour
J'ai plusieurs clé a fusionner
les premières j'éxécute ceci, voici mon fichier reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Français"
with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg')
cela est fonctionnelle pour l'install
J'ai besoin de fusionner d'autre clé dont voici le contenu du fichier reg :
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Charlyrobot] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Dessin] "Aff_Regles"=dword:00000001 "CouleurDeFond"=dword:00ffffff "CouleurDesRegles"=dword:00ffff00 "CouleurEcran"=dword:0080ffff "AffVueLaterale"=dword:00000000 "Aff_Vue"=dword:00000001 "Epaisseur_trait"=dword:00000000 "CouleurDeFondEcran"=dword:0080ffff [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export\FNT] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\putFNT.exe" "Filtre"="Polices de caractères Cao (.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Polices" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes\Charly Standard] "Default"="" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\BOT] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getGRB.exe" "Filtre"="Fichiers de gravure Gerber (*.bot)|*.bot|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DRL] "Filtre"="Fichiers de perçage Excellon (*.drl)|*.drl|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getEXL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DXF] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getDXF.exe" "Filtre"="Fichiers d'exchange AutoCAD (*.dxf)|*.dxf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EMF] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getEMF.exe" "Filtre"="Métafichiers améliorés (*.emf)|*.emf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EXL] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getEXL.exe" "Filtre"="Fichiers de perçage Excellon (*.exl)|*.exl|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FAO] "Filtre"="Fichiers Graal Fao (*.fao)|*.fao|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getFao.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FNT] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getFNT.exe" "Filtre"="Polices de caractères Cao (*.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\GRB] "Filtre"="Fichiers de gravure Gerber (*.grb)|*.grb|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getGRB.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\IGS] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\GETIGS.exe" "Filtre"="Fichier iges (*.igs)|*.igs|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\PLT] "Filtre"="Fichier traceur HPGL (*.plt)|*.plt|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getPLT.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\STL] "Filtre"="Fichier stéréolithographie (*.stl)|*.stl|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getSTL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\WMF] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getWMF.exe" "Filtre"="Métafichiers Windows (*.wmf)|*.wmf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Impression] "Echelle"=dword:00000064 "Ajustee"=dword:00000000 "FacteurDEpaisseur"=dword:00000001 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Outils et materiaux] "Materiaux_Courant"="Plastique tendre" "MatPath"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Outils et matériaux\Charly_mat.MAG" "OutPath"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Outils et matériaux\Outil_CRA.MAG" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Path] "UsinageDir"="C:\Users\Administrateur\Documents\CharlyGraal V5\Usinages" "CFAODir"="C:\Users\Administrateur\Documents\CharlyGraal V5\CFAO" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences\Avances] "UseMesh3"=dword:00000001 "RetractRatio"="10.0" "MaillageOriente"=dword:00000000 "RetractMode"=dword:00000000 "RetractZlnc"="5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Selection] "Type"=dword:00000001 "Mode"=dword:00000000 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Settings] "Version"="Micron" "Produit"="CharlyGraalV5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\UsinagePlanCAO] "FichierUsiPlanCao"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Outils et matériaux\UPC.upc" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\Machine] "ModeleInstalle"=dword:00000000 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\ParamCNR1] "DeltaVBondsMinMn"=dword:000001c2 "PrecisionCNR1"=dword:0000000a "VSurCapteur"="400" "Vmax"="3000" "Ss_speed"="0" "TMinCN"=dword:00000014 "VitStartStop"=dword:00000190 "Accmax"="120000" "VmaxZ"="3000" "VPOM"="700" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Settings] "Produit"="CharlyGraalV5"
j'ai essayer la même méthode
regedit.exe /s monfichier.reg
mais cela ne fonctionnement pas
Pourriez vous me donnée la syntax avec la fonction registry_setstring()
au moins une clé
Je vous parle pas de la suppression des clé et des valeurs c'est encore un casse tête
merci pour votre aide
Le 8 juin 2016 à 22:12, Phil markham markham89@hotmail.com a écrit :
Bonsoir,
essayer avec la méthode registry_setstring() pour ajouter les clé de registre,
j'ai eu un soucis similaire et registry_setstring() a solutionner mon pb
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist...
le pb vient de windows car les gens sous update_engines sont egalement bloqué dans la creation/modification des clé de registre sous compte system.
Le 07/06/2016 à 16:39, Olivier CATY a écrit :
bonjour
je reprend a zéro
comment ajouter des cles dans HKEY_CURRENT_USER vu que si j'ai bien compris avec le compte system cela n'est pas possible, ou fusionner un .reg ?
si vous pouviez me proposer un code.
d'avance je vous remercie
Olivier
Le 6 juin 2016 à 21:30, Olivier CATY emmir.zone15@squale21.fr a écrit :
voila ce que j'ai fait :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
def session_setup(): with disable_file_system_redirection(): run(r'regedit.exe /s soft.reg')
Seulement le contenu du soft.reg ne sont pas toutes inscrites dans la base de registre
je commence a me dire que cela va finir a la main l'histoire
Le 6 juin 2016 à 19:56, Olivier CATY < emmir.zone15@squale21.fr emmir.zone15@squale21.fr> a écrit :
Bonsoir
j'ai trouver d'ou viens le problème de l'install via la console.
J'ai besoin d'inscrire d'autre cle registre dans HKEY-CURRENT_USERS
J'ai donc rajouter mes cle dans mon .reg
Le problème est que la fonction with disable_file_system_redirection(): cela ne fonctionnent pas
Je vais essayer de revoir tous mon code avec la première réponse Phil markhan
Si vous avez une autre idée
Le 2 juin 2016 à 14:35, Olivier CATY < emmir.zone15@squale21.fr emmir.zone15@squale21.fr> a écrit :
Bonjour
cela ne fonctionne pas, la fonction de suppression des clé de registre ne fonctionnent pas.
mais j'ai un autre problème
Lors du deploiement via la console wapt le soft s'install mais lors de l’exécution il m'indique fichier manquant.
Alors que lorsque j'exécute wapt-get install, j'ai aucun problème
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Merci à tous pour votre aide
Le 1 juin 2016 à 01:56, Fonteneau Simon < blog@lesfourmisduweb.org blog@lesfourmisduweb.org> a écrit :
Logiquement même chose pour uninstall :
def uninstall(): with disable_file_system_redirection():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
Simon https://blog.lesfourmisduweb.org
Le 31/05/2016 19:16, Olivier CATY a écrit :
Bonsoir
merci sa marche très bien avec ces arguments
maintenant je cherche a supprimer les cles lors de la déinstallation
voici le code mai sa ne fonctionne pas
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
def uninstall():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
encore une fois j'ai pas compris la syntaxe
merci
Le 31 mai 2016 à 11:00, Hubert TOUVET < htouvet@tranquil.it htouvet@tranquil.it> a écrit :
Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection"
Essayer :
def install(): print('installing annajudic-charlygraalv5') *with disable_file_system_redirection():* run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le 30/05/2016 à 20:51, Olivier CATY a écrit :
Bonsoir
Ci dessous le setup.py :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le fichier BDR :
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français"
le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première
Si je fusionne manuellement, aucun problème
d'avance merci pour vos lumières
Olivier
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.itWAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonjour,
- Créer une REG_SZ [1] : registry_setstring(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot\CharlyGraal V5', 'Serial', 'malicence')
- Créer une REG_DWORD [2] : registry_set(HKEY_CURRENT_USER, r'Software\Charlyrobot\Graal\Gcfao\Dessin', r'Aff_Regles', 1, REG_DWORD)
- Supprimer une clé [3] : registry_deletekey(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot', r'CharlyGraal V5')
- Supprimer une valeur [4] : registry_delete(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot\CharlyGraal V5', r'Aff_Regles')
Par contre, pour tout ce qui touche à HKEY_CURRENT_USER, je vous conseille de mettre le code dans une fonction session_setup() [5] sinon ça risque de ne pas fonctionner pour l'utilisateur courant.
[1] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [2] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [3] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [4] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [5] Voir la réponse d'Hubert sur ce thread : http://lists.tranquil.it/pipermail/wapt/2015-September/001293.html
Cordialement, Bastien
Le 09/06/2016 à 07:46, Olivier CATY a écrit :
Bonjour
J'ai plusieurs clé a fusionner
les premières j'éxécute ceci, voici mon fichier reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Français"
with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg')
cela est fonctionnelle pour l'install
J'ai besoin de fusionner d'autre clé dont voici le contenu du fichier reg :
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Charlyrobot] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Dessin] "Aff_Regles"=dword:00000001 "CouleurDeFond"=dword:00ffffff "CouleurDesRegles"=dword:00ffff00 "CouleurEcran"=dword:0080ffff "AffVueLaterale"=dword:00000000 "Aff_Vue"=dword:00000001 "Epaisseur_trait"=dword:00000000 "CouleurDeFondEcran"=dword:0080ffff [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export\FNT] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\putFNT.exe" "Filtre"="Polices de caractères Cao (.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Polices" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes\Charly Standard] "Default"="" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\BOT] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getGRB.exe" "Filtre"="Fichiers de gravure Gerber (*.bot)|*.bot|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DRL] "Filtre"="Fichiers de perçage Excellon (*.drl)|*.drl|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getEXL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DXF] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getDXF.exe" "Filtre"="Fichiers d'exchange AutoCAD (*.dxf)|*.dxf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EMF] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getEMF.exe" "Filtre"="Métafichiers améliorés (*.emf)|*.emf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EXL] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getEXL.exe" "Filtre"="Fichiers de perçage Excellon (*.exl)|*.exl|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FAO] "Filtre"="Fichiers Graal Fao (*.fao)|*.fao|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getFao.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FNT] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getFNT.exe" "Filtre"="Polices de caractères Cao (*.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\GRB] "Filtre"="Fichiers de gravure Gerber (*.grb)|*.grb|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getGRB.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\IGS] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\GETIGS.exe" "Filtre"="Fichier iges (*.igs)|*.igs|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\PLT] "Filtre"="Fichier traceur HPGL (*.plt)|*.plt|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getPLT.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\STL] "Filtre"="Fichier stéréolithographie (*.stl)|*.stl|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getSTL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\WMF] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getWMF.exe" "Filtre"="Métafichiers Windows (*.wmf)|*.wmf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Impression] "Echelle"=dword:00000064 "Ajustee"=dword:00000000 "FacteurDEpaisseur"=dword:00000001 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Outils et materiaux] "Materiaux_Courant"="Plastique tendre" "MatPath"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Outils et matériaux\Charly_mat.MAG" "OutPath"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Outils et matériaux\Outil_CRA.MAG" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Path] "UsinageDir"="C:\Users\Administrateur\Documents\CharlyGraal V5\Usinages" "CFAODir"="C:\Users\Administrateur\Documents\CharlyGraal V5\CFAO" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences\Avances] "UseMesh3"=dword:00000001 "RetractRatio"="10.0" "MaillageOriente"=dword:00000000 "RetractMode"=dword:00000000 "RetractZlnc"="5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Selection] "Type"=dword:00000001 "Mode"=dword:00000000 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Settings] "Version"="Micron" "Produit"="CharlyGraalV5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\UsinagePlanCAO] "FichierUsiPlanCao"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Outils et matériaux\UPC.upc" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\Machine] "ModeleInstalle"=dword:00000000 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\ParamCNR1] "DeltaVBondsMinMn"=dword:000001c2 "PrecisionCNR1"=dword:0000000a "VSurCapteur"="400" "Vmax"="3000" "Ss_speed"="0" "TMinCN"=dword:00000014 "VitStartStop"=dword:00000190 "Accmax"="120000" "VmaxZ"="3000" "VPOM"="700" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Settings] "Produit"="CharlyGraalV5"
j'ai essayer la même méthode
regedit.exe /s monfichier.reg
mais cela ne fonctionnement pas
Pourriez vous me donnée la syntax avec la fonction registry_setstring()
au moins une clé
Je vous parle pas de la suppression des clé et des valeurs c'est encore un casse tête
merci pour votre aide
Le 8 juin 2016 à 22:12, Phil markham <markham89@hotmail.com mailto:markham89@hotmail.com> a écrit :
Bonsoir, essayer avec la méthode registry_setstring() pour ajouter les clé de registre, j'ai eu un soucis similaire et registry_setstring() a solutionner mon pb https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=registry_setstring#setuphelpers.registry_setstring le pb vient de windows car les gens sous update_engines sont egalement bloqué dans la creation/modification des clé de registre sous compte system. Le 07/06/2016 à 16:39, Olivier CATY a écrit :
bonjour je reprend a zéro comment ajouter des cles dans HKEY_CURRENT_USER vu que si j'ai bien compris avec le compte system cela n'est pas possible, ou fusionner un .reg ? si vous pouviez me proposer un code. d'avance je vous remercie Olivier Le 6 juin 2016 à 21:30, Olivier CATY <emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>> a écrit : voila ce que j'ai fait : # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') def session_setup(): with disable_file_system_redirection(): run(r'regedit.exe /s soft.reg') Seulement le contenu du soft.reg ne sont pas toutes inscrites dans la base de registre je commence a me dire que cela va finir a la main l'histoire Le 6 juin 2016 à 19:56, Olivier CATY <emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>> a écrit : Bonsoir j'ai trouver d'ou viens le problème de l'install via la console. J'ai besoin d'inscrire d'autre cle registre dans HKEY-CURRENT_USERS J'ai donc rajouter mes cle dans mon .reg Le problème est que la fonction with disable_file_system_redirection(): cela ne fonctionnent pas Je vais essayer de revoir tous mon code avec la première réponse Phil markhan Si vous avez une autre idée Le 2 juin 2016 à 14:35, Olivier CATY <emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>> a écrit : Bonjour cela ne fonctionne pas, la fonction de suppression des clé de registre ne fonctionnent pas. mais j'ai un autre problème Lors du deploiement via la console wapt le soft s'install mais lors de l’exécution il m'indique fichier manquant. Alors que lorsque j'exécute wapt-get install, j'ai aucun problème # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Merci à tous pour votre aide Le 1 juin 2016 à 01:56, Fonteneau Simon <blog@lesfourmisduweb.org <mailto:blog@lesfourmisduweb.org>> a écrit : Logiquement même chose pour uninstall : def uninstall(): with disable_file_system_redirection(): registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\\Charlyrobot','CharlyGraal V5') Simonhttps://blog.lesfourmisduweb.org Le 31/05/2016 19:16, Olivier CATY a écrit :
Bonsoir merci sa marche très bien avec ces arguments maintenant je cherche a supprimer les cles lors de la déinstallation voici le code mai sa ne fonctionne pas # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') def uninstall(): registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\\Charlyrobot','CharlyGraal V5') encore une fois j'ai pas compris la syntaxe merci Le 31 mai 2016 à 11:00, Hubert TOUVET <htouvet@tranquil.it <mailto:htouvet@tranquil.it>> a écrit : Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection" Essayer : def install(): print('installing annajudic-charlygraalv5') *with disable_file_system_redirection():* run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Le 30/05/2016 à 20:51, Olivier CATY a écrit :
Bonsoir Ci dessous le setup.py : # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Le fichier BDR : Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français" le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première Si je fusionne manuellement, aucun problème d'avance merci pour vos lumières Olivier -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonsoir
impeccable voir deuxpeccable, merci pour les exemples, cela fonctionnent presque correctement
eh oui ya un souci, avec le session setup
Est il possible d’exécuter le session setup avec des droits élevés ?
Merci Bastien et tous les autres,
Et merci au développeur wapt
Le 9 juin 2016 à 08:26, Bastien HERMITTE bhermitte@b2pweb.com a écrit :
Bonjour,
- Créer une REG_SZ [1] :
registry_setstring(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot\CharlyGraal V5', 'Serial', 'malicence')
- Créer une REG_DWORD [2] :
registry_set(HKEY_CURRENT_USER, r'Software\Charlyrobot\Graal\Gcfao\Dessin', r'Aff_Regles', 1, REG_DWORD)
- Supprimer une clé [3] :
registry_deletekey(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot', r'CharlyGraal V5')
- Supprimer une valeur [4] :
registry_delete(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot\CharlyGraal V5', r'Aff_Regles')
Par contre, pour tout ce qui touche à HKEY_CURRENT_USER, je vous conseille de mettre le code dans une fonction session_setup() [5] sinon ça risque de ne pas fonctionner pour l'utilisateur courant.
[1] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [2] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [3] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [4] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [5] Voir la réponse d'Hubert sur ce thread : http://lists.tranquil.it/pipermail/wapt/2015-September/001293.html http://lists.tranquil.it/pipermail/wapt/2015-September/001293.html
Cordialement, Bastien
Le 09/06/2016 à 07:46, Olivier CATY a écrit :
Bonjour
J'ai plusieurs clé a fusionner
les premières j'éxécute ceci, voici mon fichier reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Français"
with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg')
cela est fonctionnelle pour l'install
J'ai besoin de fusionner d'autre clé dont voici le contenu du fichier reg :
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Charlyrobot] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Dessin] "Aff_Regles"=dword:00000001 "CouleurDeFond"=dword:00ffffff "CouleurDesRegles"=dword:00ffff00 "CouleurEcran"=dword:0080ffff "AffVueLaterale"=dword:00000000 "Aff_Vue"=dword:00000001 "Epaisseur_trait"=dword:00000000 "CouleurDeFondEcran"=dword:0080ffff [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export\FNT] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\putFNT.exe" "Filtre"="Polices de caractères Cao (.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Polices" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes\Charly Standard] "Default"="" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\BOT] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getGRB.exe" "Filtre"="Fichiers de gravure Gerber (*.bot)|*.bot|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DRL] "Filtre"="Fichiers de perçage Excellon (*.drl)|*.drl|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getEXL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DXF] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getDXF.exe" "Filtre"="Fichiers d'exchange AutoCAD (*.dxf)|*.dxf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EMF] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getEMF.exe" "Filtre"="Métafichiers améliorés (*.emf)|*.emf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EXL] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getEXL.exe" "Filtre"="Fichiers de perçage Excellon (*.exl)|*.exl|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FAO] "Filtre"="Fichiers Graal Fao (*.fao)|*.fao|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getFao.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FNT] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getFNT.exe" "Filtre"="Polices de caractères Cao (*.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\GRB] "Filtre"="Fichiers de gravure Gerber (*.grb)|*.grb|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getGRB.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\IGS] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\GETIGS.exe" "Filtre"="Fichier iges (*.igs)|*.igs|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\PLT] "Filtre"="Fichier traceur HPGL (*.plt)|*.plt|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getPLT.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\STL] "Filtre"="Fichier stéréolithographie (*.stl)|*.stl|" "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getSTL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\WMF] "Path"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\getWMF.exe" "Filtre"="Métafichiers Windows (*.wmf)|*.wmf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Impression] "Echelle"=dword:00000064 "Ajustee"=dword:00000000 "FacteurDEpaisseur"=dword:00000001 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Outils et materiaux] "Materiaux_Courant"="Plastique tendre" "MatPath"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Outils et matériaux\Charly_mat.MAG" "OutPath"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Outils et matériaux\Outil_CRA.MAG" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Path] "UsinageDir"="C:\Users\Administrateur\Documents\CharlyGraal V5\Usinages" "CFAODir"="C:\Users\Administrateur\Documents\CharlyGraal V5\CFAO" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences\Avances] "UseMesh3"=dword:00000001 "RetractRatio"="10.0" "MaillageOriente"=dword:00000000 "RetractMode"=dword:00000000 "RetractZlnc"="5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Selection] "Type"=dword:00000001 "Mode"=dword:00000000 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Settings] "Version"="Micron" "Produit"="CharlyGraalV5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\UsinagePlanCAO] "FichierUsiPlanCao"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Outils et matériaux\UPC.upc" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\Machine] "ModeleInstalle"=dword:00000000
[HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\ParamCNR1] "DeltaVBondsMinMn"=dword:000001c2 "PrecisionCNR1"=dword:0000000a "VSurCapteur"="400" "Vmax"="3000" "Ss_speed"="0" "TMinCN"=dword:00000014 "VitStartStop"=dword:00000190 "Accmax"="120000" "VmaxZ"="3000" "VPOM"="700" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Settings] "Produit"="CharlyGraalV5"
j'ai essayer la même méthode
regedit.exe /s monfichier.reg
mais cela ne fonctionnement pas
Pourriez vous me donnée la syntax avec la fonction registry_setstring()
au moins une clé
Je vous parle pas de la suppression des clé et des valeurs c'est encore un casse tête
merci pour votre aide
Le 8 juin 2016 à 22:12, Phil markham markham89@hotmail.com a écrit :
Bonsoir,
essayer avec la méthode registry_setstring() pour ajouter les clé de registre,
j'ai eu un soucis similaire et registry_setstring() a solutionner mon pb
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist...
le pb vient de windows car les gens sous update_engines sont egalement bloqué dans la creation/modification des clé de registre sous compte system.
Le 07/06/2016 à 16:39, Olivier CATY a écrit :
bonjour
je reprend a zéro
comment ajouter des cles dans HKEY_CURRENT_USER vu que si j'ai bien compris avec le compte system cela n'est pas possible, ou fusionner un .reg ?
si vous pouviez me proposer un code.
d'avance je vous remercie
Olivier
Le 6 juin 2016 à 21:30, Olivier CATY < emmir.zone15@squale21.fr emmir.zone15@squale21.fr> a écrit :
voila ce que j'ai fait :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
def session_setup(): with disable_file_system_redirection(): run(r'regedit.exe /s soft.reg')
Seulement le contenu du soft.reg ne sont pas toutes inscrites dans la base de registre
je commence a me dire que cela va finir a la main l'histoire
Le 6 juin 2016 à 19:56, Olivier CATY < emmir.zone15@squale21.fr emmir.zone15@squale21.fr> a écrit :
Bonsoir
j'ai trouver d'ou viens le problème de l'install via la console.
J'ai besoin d'inscrire d'autre cle registre dans HKEY-CURRENT_USERS
J'ai donc rajouter mes cle dans mon .reg
Le problème est que la fonction with disable_file_system_redirection(): cela ne fonctionnent pas
Je vais essayer de revoir tous mon code avec la première réponse Phil markhan
Si vous avez une autre idée
Le 2 juin 2016 à 14:35, Olivier CATY < emmir.zone15@squale21.fr emmir.zone15@squale21.fr> a écrit :
Bonjour
cela ne fonctionne pas, la fonction de suppression des clé de registre ne fonctionnent pas.
mais j'ai un autre problème
Lors du deploiement via la console wapt le soft s'install mais lors de l’exécution il m'indique fichier manquant.
Alors que lorsque j'exécute wapt-get install, j'ai aucun problème
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Merci à tous pour votre aide
Le 1 juin 2016 à 01:56, Fonteneau Simon < blog@lesfourmisduweb.org blog@lesfourmisduweb.org> a écrit :
Logiquement même chose pour uninstall :
def uninstall(): with disable_file_system_redirection():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
Simon https://blog.lesfourmisduweb.org
Le 31/05/2016 19:16, Olivier CATY a écrit :
Bonsoir
merci sa marche très bien avec ces arguments
maintenant je cherche a supprimer les cles lors de la déinstallation
voici le code mai sa ne fonctionne pas
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"]
def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
def uninstall():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
encore une fois j'ai pas compris la syntaxe
merci
Le 31 mai 2016 à 11:00, Hubert TOUVET < htouvet@tranquil.it htouvet@tranquil.it> a écrit :
> Peut-être le problème est lié au fait que wapt tourne en 32 bits, > donc windows intercepte les appels aux fichiers et manipule les chemins de > façon transparente. > Pour désactiver cela, on peut utiliser le context handler > "disable_file_system_redirection" > > Essayer : > > def install(): > print('installing annajudic-charlygraalv5') > *with disable_file_system_redirection():* > run(r'regedit.exe /s serialcharly5.reg') > run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') > > > > Le 30/05/2016 à 20:51, Olivier CATY a écrit : > > Bonsoir > > Ci dessous le setup.py : > > # -*- coding: utf-8 -*- > from setuphelpers import * > > uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] > > def install(): > print('installing annajudic-charlygraalv5') > run(r'regedit.exe /s serialcharly5.reg') > run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') > > > Le fichier BDR : > > Windows Registry Editor Version 5.00 > [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] > "Serial"="numerodeserie" > "Settings"="Trois" > "Langue"="Francais" > [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] > "Serial"="numerodeserie" > "Settings"="Trois" > "Langue"="Français" > > > le souci est que les trois dernière clé sont bien inscrite dans la > base de registre, mais pas les trois première > > Si je fusionne manuellement, aucun problème > > > d'avance merci pour vos lumières > > Olivier > > -- > > > > > > > > 17, boulevard de la Trémouille > > CS 23502 - 21035 DIJON CEDEX > > *Olivier CATY* > Direction des lycées et de la formation initiale > > Service maintenance informatique des lycées > > Agent de l’équipe mobile de maintenance informatique régionale > > > > > _______________________________________________ > WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt > > > > _______________________________________________ > WAPT mailing list > WAPT@lists.tranquil.itWAPT@lists.tranquil.it > http://lists.tranquil.it/listinfo/wapt > http://lists.tranquil.it/listinfo/wapt > >
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.itWAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonjour Olivier,
impeccable voir deuxpeccable, merci pour les exemples, cela fonctionnent presque correctement
eh oui ya un souci, avec le session setup
Est il possible d’exécuter le session setup avec des droits élevés ?
l'idée derrière la fonction def session_setup() est d'exécuter des actions dans le contexte de l'utilisateur, ce qui permet notamment de configurer sa base de registre HKU, de modifier son bureau, etc.
Si il y a des actions à effectuer avec des droits privilégiées, elles devraient être exécutées au préalable dans la fonction def install().
Quel serait votre usage qui nécessiterait d'exécuter le session_setup() avec des droits élevés?
Cordialement,
Denis
Merci Bastien et tous les autres,
Et merci au développeur wapt
Le 9 juin 2016 à 08:26, Bastien HERMITTE <bhermitte@b2pweb.com mailto:bhermitte@b2pweb.com> a écrit :
Bonjour, - Créer une REG_SZ [1] : registry_setstring(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot\CharlyGraal V5', 'Serial', 'malicence') - Créer une REG_DWORD [2] : registry_set(HKEY_CURRENT_USER, r'Software\Charlyrobot\Graal\Gcfao\Dessin', r'Aff_Regles', 1, REG_DWORD) - Supprimer une clé [3] : registry_deletekey(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot', r'CharlyGraal V5') - Supprimer une valeur [4] : registry_delete(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot\CharlyGraal V5', r'Aff_Regles') Par contre, pour tout ce qui touche à HKEY_CURRENT_USER, je vous conseille de mettre le code dans une fonction session_setup() [5] sinon ça risque de ne pas fonctionner pour l'utilisateur courant. [1] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=registry#setuphelpers.registry_setstring [2] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=registry#setuphelpers.registry_set [3] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=registry#setuphelpers.registry_deletekey [4] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=registry#setuphelpers.registry_delete [5] Voir la réponse d'Hubert sur ce thread : <http://lists.tranquil.it/pipermail/wapt/2015-September/001293.html>http://lists.tranquil.it/pipermail/wapt/2015-September/001293.html Cordialement, Bastien Le 09/06/2016 à 07:46, Olivier CATY a écrit :
Bonjour J'ai plusieurs clé a fusionner les premières j'éxécute ceci, voici mon fichier reg Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Français" with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') cela est fonctionnelle pour l'install J'ai besoin de fusionner d'autre clé dont voici le contenu du fichier reg : Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Charlyrobot] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Dessin] "Aff_Regles"=dword:00000001 "CouleurDeFond"=dword:00ffffff "CouleurDesRegles"=dword:00ffff00 "CouleurEcran"=dword:0080ffff "AffVueLaterale"=dword:00000000 "Aff_Vue"=dword:00000001 "Epaisseur_trait"=dword:00000000 "CouleurDeFondEcran"=dword:0080ffff [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export\FNT] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\putFNT.exe" "Filtre"="Polices de caractères Cao (.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Polices" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes\Charly Standard] "Default"="" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\BOT] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getGRB.exe" "Filtre"="Fichiers de gravure Gerber (*.bot)|*.bot|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DRL] "Filtre"="Fichiers de perçage Excellon (*.drl)|*.drl|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getEXL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DXF] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getDXF.exe" "Filtre"="Fichiers d'exchange AutoCAD (*.dxf)|*.dxf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EMF] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getEMF.exe" "Filtre"="Métafichiers améliorés (*.emf)|*.emf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EXL] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getEXL.exe" "Filtre"="Fichiers de perçage Excellon (*.exl)|*.exl|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FAO] "Filtre"="Fichiers Graal Fao (*.fao)|*.fao|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getFao.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FNT] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getFNT.exe" "Filtre"="Polices de caractères Cao (*.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\GRB] "Filtre"="Fichiers de gravure Gerber (*.grb)|*.grb|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getGRB.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\IGS] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\GETIGS.exe" "Filtre"="Fichier iges (*.igs)|*.igs|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\PLT] "Filtre"="Fichier traceur HPGL (*.plt)|*.plt|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getPLT.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\STL] "Filtre"="Fichier stéréolithographie (*.stl)|*.stl|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getSTL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\WMF] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getWMF.exe" "Filtre"="Métafichiers Windows (*.wmf)|*.wmf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Impression] "Echelle"=dword:00000064 "Ajustee"=dword:00000000 "FacteurDEpaisseur"=dword:00000001 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Outils et materiaux] "Materiaux_Courant"="Plastique tendre" "MatPath"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Outils et matériaux\\Charly_mat.MAG" "OutPath"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Outils et matériaux\\Outil_CRA.MAG" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Path] "UsinageDir"="C:\\Users\\Administrateur\\Documents\\CharlyGraal V5\\Usinages" "CFAODir"="C:\\Users\\Administrateur\\Documents\\CharlyGraal V5\\CFAO" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences\Avances] "UseMesh3"=dword:00000001 "RetractRatio"="10.0" "MaillageOriente"=dword:00000000 "RetractMode"=dword:00000000 "RetractZlnc"="5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Selection] "Type"=dword:00000001 "Mode"=dword:00000000 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Settings] "Version"="Micron" "Produit"="CharlyGraalV5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\UsinagePlanCAO] "FichierUsiPlanCao"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Outils et matériaux\\UPC.upc" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\Machine] "ModeleInstalle"=dword:00000000 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\ParamCNR1] "DeltaVBondsMinMn"=dword:000001c2 "PrecisionCNR1"=dword:0000000a "VSurCapteur"="400" "Vmax"="3000" "Ss_speed"="0" "TMinCN"=dword:00000014 "VitStartStop"=dword:00000190 "Accmax"="120000" "VmaxZ"="3000" "VPOM"="700" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Settings] "Produit"="CharlyGraalV5" j'ai essayer la même méthode regedit.exe /s monfichier.reg mais cela ne fonctionnement pas Pourriez vous me donnée la syntax avec la fonction registry_setstring() au moins une clé Je vous parle pas de la suppression des clé et des valeurs c'est encore un casse tête merci pour votre aide Le 8 juin 2016 à 22:12, Phil markham <markham89@hotmail.com <mailto:markham89@hotmail.com>> a écrit : Bonsoir, essayer avec la méthode registry_setstring() pour ajouter les clé de registre, j'ai eu un soucis similaire et registry_setstring() a solutionner mon pb https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=registry_setstring#setuphelpers.registry_setstring le pb vient de windows car les gens sous update_engines sont egalement bloqué dans la creation/modification des clé de registre sous compte system. Le 07/06/2016 à 16:39, Olivier CATY a écrit :
bonjour je reprend a zéro comment ajouter des cles dans HKEY_CURRENT_USER vu que si j'ai bien compris avec le compte system cela n'est pas possible, ou fusionner un .reg ? si vous pouviez me proposer un code. d'avance je vous remercie Olivier Le 6 juin 2016 à 21:30, Olivier CATY <<mailto:emmir.zone15@squale21.fr>emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>> a écrit : voila ce que j'ai fait : # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') def session_setup(): with disable_file_system_redirection(): run(r'regedit.exe /s soft.reg') Seulement le contenu du soft.reg ne sont pas toutes inscrites dans la base de registre je commence a me dire que cela va finir a la main l'histoire Le 6 juin 2016 à 19:56, Olivier CATY <<mailto:emmir.zone15@squale21.fr>emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>> a écrit : Bonsoir j'ai trouver d'ou viens le problème de l'install via la console. J'ai besoin d'inscrire d'autre cle registre dans HKEY-CURRENT_USERS J'ai donc rajouter mes cle dans mon .reg Le problème est que la fonction with disable_file_system_redirection(): cela ne fonctionnent pas Je vais essayer de revoir tous mon code avec la première réponse Phil markhan Si vous avez une autre idée Le 2 juin 2016 à 14:35, Olivier CATY <<mailto:emmir.zone15@squale21.fr>emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>> a écrit : Bonjour cela ne fonctionne pas, la fonction de suppression des clé de registre ne fonctionnent pas. mais j'ai un autre problème Lors du deploiement via la console wapt le soft s'install mais lors de l’exécution il m'indique fichier manquant. Alors que lorsque j'exécute wapt-get install, j'ai aucun problème # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Merci à tous pour votre aide Le 1 juin 2016 à 01:56, Fonteneau Simon <<mailto:blog@lesfourmisduweb.org>blog@lesfourmisduweb.org <mailto:blog@lesfourmisduweb.org>> a écrit : Logiquement même chose pour uninstall : def uninstall(): with disable_file_system_redirection(): registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\\Charlyrobot','CharlyGraal V5') Simonhttps://blog.lesfourmisduweb.org Le 31/05/2016 19:16, Olivier CATY a écrit :
Bonsoir merci sa marche très bien avec ces arguments maintenant je cherche a supprimer les cles lors de la déinstallation voici le code mai sa ne fonctionne pas # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') def uninstall(): registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\\Charlyrobot','CharlyGraal V5') encore une fois j'ai pas compris la syntaxe merci Le 31 mai 2016 à 11:00, Hubert TOUVET <<mailto:htouvet@tranquil.it>htouvet@tranquil.it <mailto:htouvet@tranquil.it>> a écrit : Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection" Essayer : def install(): print('installing annajudic-charlygraalv5') *with disable_file_system_redirection():* run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Le 30/05/2016 à 20:51, Olivier CATY a écrit :
Bonsoir Ci dessous le setup.py : # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Le fichier BDR : Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français" le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première Si je fusionne manuellement, aucun problème d'avance merci pour vos lumières Olivier -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list <mailto:WAPT@lists.tranquil.it>WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> <http://lists.tranquil.it/listinfo/wapt>http://lists.tranquil.it/listinfo/wapt -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list <mailto:WAPT@lists.tranquil.it>WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> <http://lists.tranquil.it/listinfo/wapt>http://lists.tranquil.it/listinfo/wapt -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille____
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale____
Service maintenance informatique des lycées____
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonjour
on avance, j'ai resolu le problème de l'accès a la base de registre (gpo qui refuse l'execution de regedit.exe)
deux autres problèmes :
1 ) lors du session setup, les clé de registre commence a ce créer, puis s'arrete sans creer aucune valeur REG_DWORD ou REG_GZ
2) Dans les clé REG_GZ
registry_setstring(HKEY_CURRENT_USER, r'Software\Charlyrobot\Graal\Gcfao\Import\EMF', 'Filtre','Métafichiers améliores (*.emf)|*.emf|')
résultat dans la base registre :
Métafichiers améliores (*.emf)|*.emf|
pas simple ce soft a wapetiser
d'avance merci
Le 10 juin 2016 à 10:30, Denis Cardon denis.cardon@tranquil-it-systems.fr a écrit :
Bonjour Olivier,
impeccable voir deuxpeccable, merci pour les exemples, cela fonctionnent
presque correctement
eh oui ya un souci, avec le session setup
Est il possible d’exécuter le session setup avec des droits élevés ?
l'idée derrière la fonction def session_setup() est d'exécuter des actions dans le contexte de l'utilisateur, ce qui permet notamment de configurer sa base de registre HKU, de modifier son bureau, etc.
Si il y a des actions à effectuer avec des droits privilégiées, elles devraient être exécutées au préalable dans la fonction def install().
Quel serait votre usage qui nécessiterait d'exécuter le session_setup() avec des droits élevés?
Cordialement,
Denis
Merci Bastien et tous les autres,
Et merci au développeur wapt
Le 9 juin 2016 à 08:26, Bastien HERMITTE <bhermitte@b2pweb.com mailto:bhermitte@b2pweb.com> a écrit :
Bonjour, - Créer une REG_SZ [1] : registry_setstring(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot\CharlyGraal V5', 'Serial', 'malicence') - Créer une REG_DWORD [2] : registry_set(HKEY_CURRENT_USER, r'Software\Charlyrobot\Graal\Gcfao\Dessin', r'Aff_Regles', 1,
REG_DWORD)
- Supprimer une clé [3] : registry_deletekey(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot', r'CharlyGraal V5') - Supprimer une valeur [4] : registry_delete(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot\CharlyGraal V5', r'Aff_Regles') Par contre, pour tout ce qui touche à HKEY_CURRENT_USER, je vous conseille de mettre le code dans une fonction session_setup() [5] sinon ça risque de ne pas fonctionner pour l'utilisateur courant. [1]
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [2]
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [3]
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [4]
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [5] Voir la réponse d'Hubert sur ce thread : http://lists.tranquil.it/pipermail/wapt/2015-September/001293.html http://lists.tranquil.it/pipermail/wapt/2015-September/001293.html
Cordialement, Bastien Le 09/06/2016 à 07:46, Olivier CATY a écrit :
Bonjour J'ai plusieurs clé a fusionner les premières j'éxécute ceci, voici mon fichier reg Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Français" with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') cela est fonctionnelle pour l'install J'ai besoin de fusionner d'autre clé dont voici le contenu du fichier reg : Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Charlyrobot] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Dessin] "Aff_Regles"=dword:00000001 "CouleurDeFond"=dword:00ffffff "CouleurDesRegles"=dword:00ffff00 "CouleurEcran"=dword:0080ffff "AffVueLaterale"=dword:00000000 "Aff_Vue"=dword:00000001 "Epaisseur_trait"=dword:00000000 "CouleurDeFondEcran"=dword:0080ffff [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export\FNT] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\putFNT.exe" "Filtre"="Polices de caractères Cao (.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Polices" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes\Charly Standard] "Default"="" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\BOT] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getGRB.exe" "Filtre"="Fichiers de gravure Gerber (*.bot)|*.bot|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DRL] "Filtre"="Fichiers de perçage Excellon (*.drl)|*.drl|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getEXL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DXF] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getDXF.exe" "Filtre"="Fichiers d'exchange AutoCAD (*.dxf)|*.dxf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EMF] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getEMF.exe" "Filtre"="Métafichiers améliorés (*.emf)|*.emf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EXL] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getEXL.exe" "Filtre"="Fichiers de perçage Excellon (*.exl)|*.exl|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FAO] "Filtre"="Fichiers Graal Fao (*.fao)|*.fao|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getFao.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FNT] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getFNT.exe" "Filtre"="Polices de caractères Cao (*.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\GRB] "Filtre"="Fichiers de gravure Gerber (*.grb)|*.grb|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getGRB.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\IGS] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\GETIGS.exe" "Filtre"="Fichier iges (*.igs)|*.igs|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\PLT] "Filtre"="Fichier traceur HPGL (*.plt)|*.plt|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getPLT.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\STL] "Filtre"="Fichier stéréolithographie (*.stl)|*.stl|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getSTL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\WMF] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getWMF.exe" "Filtre"="Métafichiers Windows (*.wmf)|*.wmf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Impression] "Echelle"=dword:00000064 "Ajustee"=dword:00000000 "FacteurDEpaisseur"=dword:00000001 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Outils et materiaux] "Materiaux_Courant"="Plastique tendre" "MatPath"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Outils et matériaux\\Charly_mat.MAG" "OutPath"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Outils et matériaux\\Outil_CRA.MAG" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Path] "UsinageDir"="C:\\Users\\Administrateur\\Documents\\CharlyGraal V5\\Usinages" "CFAODir"="C:\\Users\\Administrateur\\Documents\\CharlyGraal
V5\CFAO" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences]
[HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences\Avances] "UseMesh3"=dword:00000001 "RetractRatio"="10.0" "MaillageOriente"=dword:00000000 "RetractMode"=dword:00000000 "RetractZlnc"="5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Selection] "Type"=dword:00000001 "Mode"=dword:00000000 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Settings] "Version"="Micron" "Produit"="CharlyGraalV5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\UsinagePlanCAO] "FichierUsiPlanCao"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Outils et matériaux\UPC.upc" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences]
[HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\Machine] "ModeleInstalle"=dword:00000000
[HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\ParamCNR1] "DeltaVBondsMinMn"=dword:000001c2 "PrecisionCNR1"=dword:0000000a "VSurCapteur"="400" "Vmax"="3000" "Ss_speed"="0" "TMinCN"=dword:00000014 "VitStartStop"=dword:00000190 "Accmax"="120000" "VmaxZ"="3000" "VPOM"="700" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Settings] "Produit"="CharlyGraalV5"
j'ai essayer la même méthode regedit.exe /s monfichier.reg mais cela ne fonctionnement pas Pourriez vous me donnée la syntax avec la fonction registry_setstring() au moins une clé Je vous parle pas de la suppression des clé et des valeurs c'est encore un casse tête merci pour votre aide Le 8 juin 2016 à 22:12, Phil markham <markham89@hotmail.com <mailto:markham89@hotmail.com>> a écrit : Bonsoir, essayer avec la méthode registry_setstring() pour ajouter les clé de registre, j'ai eu un soucis similaire et registry_setstring() a solutionner mon pb
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist...
le pb vient de windows car les gens sous update_engines sont egalement bloqué dans la creation/modification des clé de registre sous compte system. Le 07/06/2016 à 16:39, Olivier CATY a écrit :
bonjour je reprend a zéro comment ajouter des cles dans HKEY_CURRENT_USER vu que si j'ai bien compris avec le compte system cela n'est pas possible, ou fusionner un .reg ? si vous pouviez me proposer un code. d'avance je vous remercie Olivier Le 6 juin 2016 à 21:30, Olivier CATY <<mailto:emmir.zone15@squale21.fr>emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>> a écrit : voila ce que j'ai fait : # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') def session_setup(): with disable_file_system_redirection(): run(r'regedit.exe /s soft.reg') Seulement le contenu du soft.reg ne sont pas toutes inscrites dans la base de registre je commence a me dire que cela va finir a la main l'histoire Le 6 juin 2016 à 19:56, Olivier CATY <<mailto:emmir.zone15@squale21.fr>emmir.zone15@squale21.fr
mailto:emmir.zone15@squale21.fr> a écrit :
Bonsoir j'ai trouver d'ou viens le problème de l'install via la console. J'ai besoin d'inscrire d'autre cle registre dans HKEY-CURRENT_USERS J'ai donc rajouter mes cle dans mon .reg Le problème est que la fonction with disable_file_system_redirection(): cela ne fonctionnent pas Je vais essayer de revoir tous mon code avec la première réponse Phil markhan Si vous avez une autre idée Le 2 juin 2016 à 14:35, Olivier CATY <<mailto:emmir.zone15@squale21.fr>
emmir.zone15@squale21.fr mailto:emmir.zone15@squale21.fr> a écrit :
Bonjour cela ne fonctionne pas, la fonction de suppression des clé de registre ne fonctionnent pas. mais j'ai un autre problème Lors du deploiement via la console wapt le soft s'install mais lors de l’exécution il m'indique fichier manquant. Alors que lorsque j'exécute wapt-get install, j'ai aucun problème # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart
ALLUSERS=1')
Merci à tous pour votre aide Le 1 juin 2016 à 01:56, Fonteneau Simon <<mailto:blog@lesfourmisduweb.org>
blog@lesfourmisduweb.org mailto:blog@lesfourmisduweb.org> a écrit :
Logiquement même chose pour uninstall : def uninstall(): with disable_file_system_redirection():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
Simonhttps://blog.lesfourmisduweb.org Le 31/05/2016 19:16, Olivier CATY a écrit :
Bonsoir merci sa marche très bien avec ces arguments maintenant je cherche a supprimer les cles lors de la déinstallation voici le code mai sa ne fonctionne pas # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') def uninstall():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
encore une fois j'ai pas compris la syntaxe merci Le 31 mai 2016 à 11:00, Hubert TOUVET <<mailto:htouvet@tranquil.it>
htouvet@tranquil.it mailto:htouvet@tranquil.it> a écrit :
Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection" Essayer : def install(): print('installing annajudic-charlygraalv5') *with disable_file_system_redirection():* run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Le 30/05/2016 à 20:51, Olivier CATY a écrit :
Bonsoir Ci dessous le setup.py : # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing
annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1')
Le fichier BDR : Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français"
le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première Si je fusionne manuellement, aucun
problème
d'avance merci pour vos lumières Olivier -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des
lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
WAPT mailing list <mailto:WAPT@lists.tranquil.it>
WAPT@lists.tranquil.it mailto:WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt http://lists.tranquil.it/listinfo/wapt
-- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation
initiale
Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list <mailto:WAPT@lists.tranquil.it>
WAPT@lists.tranquil.it mailto:WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt http://lists.tranquil.it/listinfo/wapt
-- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille____
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale____
Service maintenance informatique des lycées____
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
-- Denis Cardon Tranquil IT Systems Les Espaces Jules Verne, bâtiment A 12 avenue Jules Verne 44230 Saint Sébastien sur Loire tel : +33 (0) 2.40.97.57.55 http://www.tranquil-it-systems.fr
Bonjour,
Pour les REG_SZ, il faut mettre un 'u' (comme unicode) devant les chaînes de caractères qui comportent des accents : registry_setstring(HKEY_CURRENT_USER, r'Software\Charlyrobot\Graal\Gcfao\Import\EMF', 'Filtre', u'Métafichiers améliores (*.emf)|*.emf|')
Cordialement, Bastien
Le 14/06/2016 à 13:39, Olivier CATY a écrit :
Bonjour
on avance, j'ai resolu le problème de l'accès a la base de registre (gpo qui refuse l'execution de regedit.exe)
deux autres problèmes :
1 ) lors du session setup, les clé de registre commence a ce créer, puis s'arrete sans creer aucune valeur REG_DWORD ou REG_GZ
- Dans les clé REG_GZ
registry_setstring(HKEY_CURRENT_USER, r'Software\Charlyrobot\Graal\Gcfao\Import\EMF', 'Filtre','Métafichiers améliores (*.emf)|*.emf|')
résultat dans la base registre :
Métafichiers améliores (*.emf)|*.emf|
pas simple ce soft a wapetiser
d'avance merci
Le 10 juin 2016 à 10:30, Denis Cardon <denis.cardon@tranquil-it-systems.fr mailto:denis.cardon@tranquil-it-systems.fr> a écrit :
Bonjour Olivier, impeccable voir deuxpeccable, merci pour les exemples, cela fonctionnent presque correctement eh oui ya un souci, avec le session setup Est il possible d’exécuter le session setup avec des droits élevés ? l'idée derrière la fonction def session_setup() est d'exécuter des actions dans le contexte de l'utilisateur, ce qui permet notamment de configurer sa base de registre HKU, de modifier son bureau, etc. Si il y a des actions à effectuer avec des droits privilégiées, elles devraient être exécutées au préalable dans la fonction def install(). Quel serait votre usage qui nécessiterait d'exécuter le session_setup() avec des droits élevés? Cordialement, Denis Merci Bastien et tous les autres, Et merci au développeur wapt Le 9 juin 2016 à 08:26, Bastien HERMITTE <bhermitte@b2pweb.com <mailto:bhermitte@b2pweb.com> <mailto:bhermitte@b2pweb.com <mailto:bhermitte@b2pweb.com>>> a écrit : Bonjour, - Créer une REG_SZ [1] : registry_setstring(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot\CharlyGraal V5', 'Serial', 'malicence') - Créer une REG_DWORD [2] : registry_set(HKEY_CURRENT_USER, r'Software\Charlyrobot\Graal\Gcfao\Dessin', r'Aff_Regles', 1, REG_DWORD) - Supprimer une clé [3] : registry_deletekey(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot', r'CharlyGraal V5') - Supprimer une valeur [4] : registry_delete(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot\CharlyGraal V5', r'Aff_Regles') Par contre, pour tout ce qui touche à HKEY_CURRENT_USER, je vous conseille de mettre le code dans une fonction session_setup() [5] sinon ça risque de ne pas fonctionner pour l'utilisateur courant. [1] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=registry#setuphelpers.registry_setstring [2] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=registry#setuphelpers.registry_set [3] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=registry#setuphelpers.registry_deletekey [4] https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=registry#setuphelpers.registry_delete [5] Voir la réponse d'Hubert sur ce thread : <http://lists.tranquil.it/pipermail/wapt/2015-September/001293.html>http://lists.tranquil.it/pipermail/wapt/2015-September/001293.html Cordialement, Bastien Le 09/06/2016 à 07:46, Olivier CATY a écrit : Bonjour J'ai plusieurs clé a fusionner les premières j'éxécute ceci, voici mon fichier reg Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Français" with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') cela est fonctionnelle pour l'install J'ai besoin de fusionner d'autre clé dont voici le contenu du fichier reg : Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Charlyrobot] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Dessin] "Aff_Regles"=dword:00000001 "CouleurDeFond"=dword:00ffffff "CouleurDesRegles"=dword:00ffff00 "CouleurEcran"=dword:0080ffff "AffVueLaterale"=dword:00000000 "Aff_Vue"=dword:00000001 "Epaisseur_trait"=dword:00000000 "CouleurDeFondEcran"=dword:0080ffff [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export\FNT] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\putFNT.exe" "Filtre"="Polices de caractères Cao (.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Polices" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes\Charly Standard] "Default"="" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\BOT] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getGRB.exe" "Filtre"="Fichiers de gravure Gerber (*.bot)|*.bot|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DRL] "Filtre"="Fichiers de perçage Excellon (*.drl)|*.drl|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getEXL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DXF] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getDXF.exe" "Filtre"="Fichiers d'exchange AutoCAD (*.dxf)|*.dxf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EMF] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getEMF.exe" "Filtre"="Métafichiers améliorés (*.emf)|*.emf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EXL] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getEXL.exe" "Filtre"="Fichiers de perçage Excellon (*.exl)|*.exl|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FAO] "Filtre"="Fichiers Graal Fao (*.fao)|*.fao|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getFao.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FNT] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getFNT.exe" "Filtre"="Polices de caractères Cao (*.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\GRB] "Filtre"="Fichiers de gravure Gerber (*.grb)|*.grb|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getGRB.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\IGS] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\GETIGS.exe" "Filtre"="Fichier iges (*.igs)|*.igs|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\PLT] "Filtre"="Fichier traceur HPGL (*.plt)|*.plt|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getPLT.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\STL] "Filtre"="Fichier stéréolithographie (*.stl)|*.stl|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getSTL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\WMF] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getWMF.exe" "Filtre"="Métafichiers Windows (*.wmf)|*.wmf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Impression] "Echelle"=dword:00000064 "Ajustee"=dword:00000000 "FacteurDEpaisseur"=dword:00000001 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Outils et materiaux] "Materiaux_Courant"="Plastique tendre" "MatPath"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Outils et matériaux\\Charly_mat.MAG" "OutPath"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Outils et matériaux\\Outil_CRA.MAG" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Path] "UsinageDir"="C:\\Users\\Administrateur\\Documents\\CharlyGraal V5\\Usinages" "CFAODir"="C:\\Users\\Administrateur\\Documents\\CharlyGraal V5\\CFAO" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences\Avances] "UseMesh3"=dword:00000001 "RetractRatio"="10.0" "MaillageOriente"=dword:00000000 "RetractMode"=dword:00000000 "RetractZlnc"="5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Selection] "Type"=dword:00000001 "Mode"=dword:00000000 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Settings] "Version"="Micron" "Produit"="CharlyGraalV5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\UsinagePlanCAO] "FichierUsiPlanCao"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Outils et matériaux\\UPC.upc" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\Machine] "ModeleInstalle"=dword:00000000 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\ParamCNR1] "DeltaVBondsMinMn"=dword:000001c2 "PrecisionCNR1"=dword:0000000a "VSurCapteur"="400" "Vmax"="3000" "Ss_speed"="0" "TMinCN"=dword:00000014 "VitStartStop"=dword:00000190 "Accmax"="120000" "VmaxZ"="3000" "VPOM"="700" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Settings] "Produit"="CharlyGraalV5" j'ai essayer la même méthode regedit.exe /s monfichier.reg mais cela ne fonctionnement pas Pourriez vous me donnée la syntax avec la fonction registry_setstring() au moins une clé Je vous parle pas de la suppression des clé et des valeurs c'est encore un casse tête merci pour votre aide Le 8 juin 2016 à 22:12, Phil markham <markham89@hotmail.com <mailto:markham89@hotmail.com> <mailto:markham89@hotmail.com <mailto:markham89@hotmail.com>>> a écrit : Bonsoir, essayer avec la méthode registry_setstring() pour ajouter les clé de registre, j'ai eu un soucis similaire et registry_setstring() a solutionner mon pb https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=registry_setstring#setuphelpers.registry_setstring le pb vient de windows car les gens sous update_engines sont egalement bloqué dans la creation/modification des clé de registre sous compte system. Le 07/06/2016 à 16:39, Olivier CATY a écrit : bonjour je reprend a zéro comment ajouter des cles dans HKEY_CURRENT_USER vu que si j'ai bien compris avec le compte system cela n'est pas possible, ou fusionner un .reg ? si vous pouviez me proposer un code. d'avance je vous remercie Olivier Le 6 juin 2016 à 21:30, Olivier CATY <<mailto:emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>>emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr> <mailto:emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>>> a écrit : voila ce que j'ai fait : # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') def session_setup(): with disable_file_system_redirection(): run(r'regedit.exe /s soft.reg') Seulement le contenu du soft.reg ne sont pas toutes inscrites dans la base de registre je commence a me dire que cela va finir a la main l'histoire Le 6 juin 2016 à 19:56, Olivier CATY <<mailto:emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>>emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr> <mailto:emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>>> a écrit : Bonsoir j'ai trouver d'ou viens le problème de l'install via la console. J'ai besoin d'inscrire d'autre cle registre dans HKEY-CURRENT_USERS J'ai donc rajouter mes cle dans mon .reg Le problème est que la fonction with disable_file_system_redirection(): cela ne fonctionnent pas Je vais essayer de revoir tous mon code avec la première réponse Phil markhan Si vous avez une autre idée Le 2 juin 2016 à 14:35, Olivier CATY <<mailto:emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>>emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr> <mailto:emmir.zone15@squale21.fr <mailto:emmir.zone15@squale21.fr>>> a écrit : Bonjour cela ne fonctionne pas, la fonction de suppression des clé de registre ne fonctionnent pas. mais j'ai un autre problème Lors du deploiement via la console wapt le soft s'install mais lors de l’exécution il m'indique fichier manquant. Alors que lorsque j'exécute wapt-get install, j'ai aucun problème # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Merci à tous pour votre aide Le 1 juin 2016 à 01:56, Fonteneau Simon <<mailto:blog@lesfourmisduweb.org <mailto:blog@lesfourmisduweb.org>>blog@lesfourmisduweb.org <mailto:blog@lesfourmisduweb.org> <mailto:blog@lesfourmisduweb.org <mailto:blog@lesfourmisduweb.org>>> a écrit : Logiquement même chose pour uninstall : def uninstall(): with disable_file_system_redirection(): registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\\Charlyrobot','CharlyGraal V5') Simonhttps://blog.lesfourmisduweb.org <http://blog.lesfourmisduweb.org> Le 31/05/2016 19:16, Olivier CATY a écrit : Bonsoir merci sa marche très bien avec ces arguments maintenant je cherche a supprimer les cles lors de la déinstallation voici le code mai sa ne fonctionne pas # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') def uninstall(): registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\\Charlyrobot','CharlyGraal V5') encore une fois j'ai pas compris la syntaxe merci Le 31 mai 2016 à 11:00, Hubert TOUVET <<mailto:htouvet@tranquil.it <mailto:htouvet@tranquil.it>>htouvet@tranquil.it <mailto:htouvet@tranquil.it> <mailto:htouvet@tranquil.it <mailto:htouvet@tranquil.it>>> a écrit : Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection" Essayer : def install(): print('installing annajudic-charlygraalv5') *with disable_file_system_redirection():* run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Le 30/05/2016 à 20:51, Olivier CATY a écrit : Bonsoir Ci dessous le setup.py : # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Le fichier BDR : Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="numerodeserie" "Settings"="Trois" "Langue"="Français" le souci est que les trois dernière clé sont bien inscrite dans la base de registre, mais pas les trois première Si je fusionne manuellement, aucun problème d'avance merci pour vos lumières Olivier -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> <mailto:WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it>> http://lists.tranquil.it/listinfo/wapt _______________________________________________ WAPT mailing list <mailto:WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it>>WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> <mailto:WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it>> <http://lists.tranquil.it/listinfo/wapt>http://lists.tranquil.it/listinfo/wapt -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> <mailto:WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it>> http://lists.tranquil.it/listinfo/wapt _______________________________________________ WAPT mailing list <mailto:WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it>>WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> <mailto:WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it>> <http://lists.tranquil.it/listinfo/wapt>http://lists.tranquil.it/listinfo/wapt -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> <mailto:WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it>> http://lists.tranquil.it/listinfo/wapt _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> <mailto:WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it>> http://lists.tranquil.it/listinfo/wapt -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> <mailto:WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it>> http://lists.tranquil.it/listinfo/wapt _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> <mailto:WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it>> http://lists.tranquil.it/listinfo/wapt -- 17, boulevard de la Trémouille____ CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale____ Service maintenance informatique des lycées____ Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt -- Denis Cardon Tranquil IT Systems Les Espaces Jules Verne, bâtiment A 12 avenue Jules Verne 44230 Saint Sébastien sur Loire tel : +33 (0) 2.40.97.57.55 <tel:%2B33%20%280%29%202.40.97.57.55> http://www.tranquil-it-systems.fr
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
Bonjour
merci c'est parfait
j'arrive a la fin, il me reste une bricole, deux clé de registre que je n'arrive pas a supprimer
Il me faut mettre a jour mon serveur wapt car j'ai pas la variable dans mon pscrypter
je vous fourni le code, si cela peu servir a une autre personne
olivier
Le 14 juin 2016 à 15:22, Bastien HERMITTE bhermitte@b2pweb.com a écrit :
Bonjour,
Pour les REG_SZ, il faut mettre un 'u' (comme unicode) devant les chaînes de caractères qui comportent des accents : registry_setstring(HKEY_CURRENT_USER, r'Software\Charlyrobot\Graal\Gcfao\Import\EMF', 'Filtre', u'Métafichiers améliores (*.emf)|*.emf|')
Cordialement, Bastien
Le 14/06/2016 à 13:39, Olivier CATY a écrit :
Bonjour
on avance, j'ai resolu le problème de l'accès a la base de registre (gpo qui refuse l'execution de regedit.exe)
deux autres problèmes :
1 ) lors du session setup, les clé de registre commence a ce créer, puis s'arrete sans creer aucune valeur REG_DWORD ou REG_GZ
- Dans les clé REG_GZ
registry_setstring(HKEY_CURRENT_USER, r'Software\Charlyrobot\Graal\Gcfao\Import\EMF', 'Filtre','Métafichiers améliores (*.emf)|*.emf|')
résultat dans la base registre :
Métafichiers améliores (*.emf)|*.emf|
pas simple ce soft a wapetiser
d'avance merci
Le 10 juin 2016 à 10:30, Denis Cardon <denis.cardon@tranquil-it-systems.fr
a écrit :
Bonjour Olivier,
impeccable voir deuxpeccable, merci pour les exemples, cela fonctionnent
presque correctement
eh oui ya un souci, avec le session setup
Est il possible d’exécuter le session setup avec des droits élevés ?
l'idée derrière la fonction def session_setup() est d'exécuter des actions dans le contexte de l'utilisateur, ce qui permet notamment de configurer sa base de registre HKU, de modifier son bureau, etc.
Si il y a des actions à effectuer avec des droits privilégiées, elles devraient être exécutées au préalable dans la fonction def install().
Quel serait votre usage qui nécessiterait d'exécuter le session_setup() avec des droits élevés?
Cordialement,
Denis
Merci Bastien et tous les autres,
Et merci au développeur wapt
Le 9 juin 2016 à 08:26, Bastien HERMITTE < bhermitte@b2pweb.com bhermitte@b2pweb.com mailto:bhermitte@b2pweb.com> a écrit :
Bonjour, - Créer une REG_SZ [1] : registry_setstring(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot\CharlyGraal V5', 'Serial', 'malicence') - Créer une REG_DWORD [2] : registry_set(HKEY_CURRENT_USER, r'Software\Charlyrobot\Graal\Gcfao\Dessin', r'Aff_Regles', 1,
REG_DWORD)
- Supprimer une clé [3] : registry_deletekey(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot', r'CharlyGraal V5') - Supprimer une valeur [4] : registry_delete(HKEY_LOCAL_MACHINE, r'SOFTWARE\Charlyrobot\CharlyGraal V5', r'Aff_Regles') Par contre, pour tout ce qui touche à HKEY_CURRENT_USER, je vous conseille de mettre le code dans une fonction session_setup() [5] sinon ça risque de ne pas fonctionner pour l'utilisateur courant. [1]
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [2]
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [3]
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [4]
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist... [5] Voir la réponse d'Hubert sur ce thread : http://lists.tranquil.it/pipermail/wapt/2015-September/001293.html http://lists.tranquil.it/pipermail/wapt/2015-September/001293.html http://lists.tranquil.it/pipermail/wapt/2015-September/001293.html
Cordialement, Bastien Le 09/06/2016 à 07:46, Olivier CATY a écrit :
Bonjour J'ai plusieurs clé a fusionner les premières j'éxécute ceci, voici mon fichier reg Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Francais" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal V5] "Serial"="malicence" "Settings"="Trois" "Langue"="Français" with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') cela est fonctionnelle pour l'install J'ai besoin de fusionner d'autre clé dont voici le contenu du fichier reg : Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Charlyrobot] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Dessin] "Aff_Regles"=dword:00000001 "CouleurDeFond"=dword:00ffffff "CouleurDesRegles"=dword:00ffff00 "CouleurEcran"=dword:0080ffff "AffVueLaterale"=dword:00000000 "Aff_Vue"=dword:00000001 "Epaisseur_trait"=dword:00000000 "CouleurDeFondEcran"=dword:0080ffff [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Export\FNT] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\putFNT.exe" "Filtre"="Polices de caractères Cao (.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Polices" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Fontes\Charly Standard] "Default"="" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\BOT] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getGRB.exe" "Filtre"="Fichiers de gravure Gerber (*.bot)|*.bot|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DRL] "Filtre"="Fichiers de perçage Excellon (*.drl)|*.drl|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getEXL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\DXF] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getDXF.exe" "Filtre"="Fichiers d'exchange AutoCAD (*.dxf)|*.dxf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EMF] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getEMF.exe" "Filtre"="Métafichiers améliorés (*.emf)|*.emf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\EXL] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getEXL.exe" "Filtre"="Fichiers de perçage Excellon (*.exl)|*.exl|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FAO] "Filtre"="Fichiers Graal Fao (*.fao)|*.fao|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getFao.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\FNT] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getFNT.exe" "Filtre"="Polices de caractères Cao (*.fnt)|*.fnt|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\GRB] "Filtre"="Fichiers de gravure Gerber (*.grb)|*.grb|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getGRB.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\IGS] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\GETIGS.exe" "Filtre"="Fichier iges (*.igs)|*.igs|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\PLT] "Filtre"="Fichier traceur HPGL (*.plt)|*.plt|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getPLT.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\STL] "Filtre"="Fichier stéréolithographie (*.stl)|*.stl|" "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getSTL.exe" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Import\WMF] "Path"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\getWMF.exe" "Filtre"="Métafichiers Windows (*.wmf)|*.wmf|" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Impression] "Echelle"=dword:00000064 "Ajustee"=dword:00000000 "FacteurDEpaisseur"=dword:00000001 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Outils et materiaux] "Materiaux_Courant"="Plastique tendre" "MatPath"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Outils et matériaux\\Charly_mat.MAG" "OutPath"="C:\\Program Files (x86)\\Charlyrobot\\CharlyGraal V5\\CFao\\Outils et matériaux\\Outil_CRA.MAG" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Path] "UsinageDir"="C:\\Users\\Administrateur\\Documents\\CharlyGraal V5\\Usinages" "CFAODir"="C:\\Users\\Administrateur\\Documents\\CharlyGraal
V5\CFAO" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences]
[HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Preferences\Avances] "UseMesh3"=dword:00000001 "RetractRatio"="10.0" "MaillageOriente"=dword:00000000 "RetractMode"=dword:00000000 "RetractZlnc"="5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Selection] "Type"=dword:00000001 "Mode"=dword:00000000 [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\Settings] "Version"="Micron" "Produit"="CharlyGraalV5" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gcfao\UsinagePlanCAO] "FichierUsiPlanCao"="C:\Program Files (x86)\Charlyrobot\CharlyGraal V5\CFao\Outils et matériaux\UPC.upc" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote] [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences]
[HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\Machine] "ModeleInstalle"=dword:00000000
[HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Preferences\ParamCNR1] "DeltaVBondsMinMn"=dword:000001c2 "PrecisionCNR1"=dword:0000000a "VSurCapteur"="400" "Vmax"="3000" "Ss_speed"="0" "TMinCN"=dword:00000014 "VitStartStop"=dword:00000190 "Accmax"="120000" "VmaxZ"="3000" "VPOM"="700" [HKEY_CURRENT_USER\Software\Charlyrobot\Graal\Gpilote\Settings] "Produit"="CharlyGraalV5"
j'ai essayer la même méthode regedit.exe /s monfichier.reg mais cela ne fonctionnement pas Pourriez vous me donnée la syntax avec la fonction registry_setstring() au moins une clé Je vous parle pas de la suppression des clé et des valeurs c'est encore un casse tête merci pour votre aide Le 8 juin 2016 à 22:12, Phil markham < <markham89@hotmail.com>
markham89@hotmail.com mailto:markham89@hotmail.com> a écrit :
Bonsoir, essayer avec la méthode registry_setstring() pour ajouter les clé de registre, j'ai eu un soucis similaire et registry_setstring() a solutionner mon pb
https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html?highlight=regist...
le pb vient de windows car les gens sous update_engines sont egalement bloqué dans la creation/modification des clé de registre sous compte system. Le 07/06/2016 à 16:39, Olivier CATY a écrit :
bonjour je reprend a zéro comment ajouter des cles dans HKEY_CURRENT_USER vu que si j'ai bien compris avec le compte system cela n'est pas possible, ou fusionner un .reg ? si vous pouviez me proposer un code. d'avance je vous remercie Olivier Le 6 juin 2016 à 21:30, Olivier CATY <<mailto:emmir.zone15@squale21.fr> <emmir.zone15@squale21.fr>
emmir.zone15@squale21.fr mailto:emmir.zone15@squale21.fr> a écrit :
voila ce que j'ai fait : # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') def session_setup(): with disable_file_system_redirection(): run(r'regedit.exe /s soft.reg') Seulement le contenu du soft.reg ne sont pas toutes inscrites dans la base de registre je commence a me dire que cela va finir a la main
l'histoire
Le 6 juin 2016 à 19:56, Olivier CATY <<mailto:emmir.zone15@squale21.fr>
emmir.zone15@squale21.fremmir.zone15@squale21.fr mailto: emmir.zone15@squale21.fr> a écrit :
Bonsoir j'ai trouver d'ou viens le problème de l'install via la console. J'ai besoin d'inscrire d'autre cle registre dans HKEY-CURRENT_USERS J'ai donc rajouter mes cle dans mon .reg Le problème est que la fonction with disable_file_system_redirection(): cela ne fonctionnent pas Je vais essayer de revoir tous mon code avec la première réponse Phil markhan Si vous avez une autre idée Le 2 juin 2016 à 14:35, Olivier CATY <<mailto: <emmir.zone15@squale21.fr>
emmir.zone15@squale21.fr> emmir.zone15@squale21.fr emmir.zone15@squale21.fr mailto:emmir.zone15@squale21.fr> a écrit :
Bonjour cela ne fonctionne pas, la fonction de suppression des clé de registre ne fonctionnent
pas.
mais j'ai un autre problème Lors du deploiement via la console wapt le soft s'install mais lors de l’exécution il m'indique fichier manquant. Alors que lorsque j'exécute wapt-get install, j'ai aucun problème # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart
ALLUSERS=1')
Merci à tous pour votre aide Le 1 juin 2016 à 01:56, Fonteneau Simon <<mailto: <blog@lesfourmisduweb.org>
blog@lesfourmisduweb.org> blog@lesfourmisduweb.org blog@lesfourmisduweb.org <mailto: blog@lesfourmisduweb.org blog@lesfourmisduweb.org>> a écrit :
Logiquement même chose pour uninstall : def uninstall(): with disable_file_system_redirection():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
Simonhttps://blog.lesfourmisduweb.org Le 31/05/2016 19:16, Olivier CATY a écrit :
Bonsoir merci sa marche très bien avec ces arguments maintenant je cherche a supprimer les cles lors de la déinstallation voici le code mai sa ne fonctionne pas # -*- coding: utf-8 -*- from setuphelpers import * uninstallkey = ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] def install(): print('installing annajudic-charlygraalv5') with disable_file_system_redirection(): run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') def uninstall():
registry_delete_key(HKEY_LOCAL_MACHINE,'SOFTWARE\Charlyrobot','CharlyGraal V5')
encore une fois j'ai pas compris la syntaxe merci Le 31 mai 2016 à 11:00, Hubert TOUVET <<mailto: <htouvet@tranquil.it>
htouvet@tranquil.it> htouvet@tranquil.ithtouvet@tranquil.it <mailto: htouvet@tranquil.it htouvet@tranquil.it>> a écrit :
Peut-être le problème est lié au fait que wapt tourne en 32 bits, donc windows intercepte les appels aux fichiers et manipule les chemins de façon
transparente. Pour désactiver cela, on peut utiliser le context handler "disable_file_system_redirection"
Essayer : def install(): print('installing
annajudic-charlygraalv5') *with disable_file_system_redirection():*
run(r'regedit.exe /s serialcharly5.reg') run(r'"CharlygraalV5.msi" /qn /norestart ALLUSERS=1') Le 30/05/2016 à 20:51, Olivier CATY a écrit :
> Bonsoir > > Ci dessous le setup.py : > > # -*- coding: utf-8 -*- > from setuphelpers import * > > uninstallkey = > > ["{43062EA1-4947-4FB6-BD91-EDC35F6DB3AD}"] > > def install(): > print('installing > annajudic-charlygraalv5') > run(r'regedit.exe /s serialcharly5.reg') > run(r'"CharlygraalV5.msi" /qn > /norestart ALLUSERS=1') > > > Le fichier BDR : > > Windows Registry Editor Version 5.00 > > [HKEY_LOCAL_MACHINE\SOFTWARE\Charlyrobot\CharlyGraal > V5] > "Serial"="numerodeserie" > "Settings"="Trois" > "Langue"="Francais" > > [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Charlyrobot\CharlyGraal > V5] > "Serial"="numerodeserie" > "Settings"="Trois" > "Langue"="Français" > > > le souci est que les trois dernière clé > sont bien inscrite dans la base de > registre, mais pas les trois première > > Si je fusionne manuellement, aucun > problème > > > d'avance merci pour vos lumières > > Olivier > > -- > > 17, boulevard de la Trémouille > > CS 23502 - 21035 DIJON CEDEX > > > > *Olivier CATY* > Direction des lycées et de la formation > initiale > > Service maintenance informatique des > lycées > > Agent de l’équipe mobile de maintenance > informatique régionale > > > > > _______________________________________________ > WAPT mailing list > WAPT@lists.tranquil.it > WAPT@lists.tranquil.it > <mailto: WAPT@lists.tranquil.it > WAPT@lists.tranquil.it> > http://lists.tranquil.it/listinfo/wapt > http://lists.tranquil.it/listinfo/wapt >
WAPT mailing list <mailto: <WAPT@lists.tranquil.it>
WAPT@lists.tranquil.it> WAPT@lists.tranquil.it WAPT@lists.tranquil.it <mailto: WAPT@lists.tranquil.it WAPT@lists.tranquil.it> < http://lists.tranquil.it/listinfo/wapt http://lists.tranquil.it/listinfo/wapt%3E http://lists.tranquil.it/listinfo/wapt http://lists.tranquil.it/listinfo/wapt
-- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation
initiale
Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing list WAPT@lists.tranquil.it <mailto: <WAPT@lists.tranquil.it>
WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list <mailto: <WAPT@lists.tranquil.it>
WAPT@lists.tranquil.it> WAPT@lists.tranquil.itWAPT@lists.tranquil.it <mailto: WAPT@lists.tranquil.it WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt http://lists.tranquil.it/listinfo/wapt http://lists.tranquil.it/listinfo/wapt
-- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt -- 17, boulevard de la Trémouille CS 23502 - 21035 DIJON CEDEX *Olivier CATY* Direction des lycées et de la formation initiale Service maintenance informatique des lycées Agent de l’équipe mobile de maintenance informatique régionale _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
--
17, boulevard de la Trémouille____
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale____
Service maintenance informatique des lycées____
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
-- Denis Cardon Tranquil IT Systems Les Espaces Jules Verne, bâtiment A 12 avenue Jules Verne 44230 Saint Sébastien sur Loire tel : +33 (0) 2.40.97.57.55 <%2B33%20%280%29%202.40.97.57.55> http://www.tranquil-it-systems.fr
--
17, boulevard de la Trémouille
CS 23502 - 21035 DIJON CEDEX
*Olivier CATY* Direction des lycées et de la formation initiale
Service maintenance informatique des lycées
Agent de l’équipe mobile de maintenance informatique régionale
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt