Page 1 sur 1

[R] Impossible d’écrire dans HKLM du registre Win 10 64 bits

Posté : ven. 18 nov. 2016 21:00
par Boulanza
Bonjour,
Impossible d’écrire dans HKEY_LOCAL_MACHINE du registre Win 10 64 bits. Par contre je peux écrire ce code dans HKEY_CURRENT_USER.
J'ai fait un petit code en AutoIt qui me sert à lance une application au démarrage de Windows 10 64 Bits. Pour cela j’utilise le code suivant compilé/exécuter en 32 bits exécuté sur Windows 10 64 bits :
#RequireAdmin
$Reg=RegRead("HKEY_LOCAL_MACHINE \Software\Microsoft\Windows\CurrentVersion\Run","Appli")
If ($Reg="") then RegWrite("HKEY_LOCAL_MACHINE \Software\Microsoft\Windows\CurrentVersion\Run","test","REG_SZ","c:\Mon application.exe")
J’ai cherché sur Google une explication à ce problème mais sans succès. Pourriez-vous m'aider svp à résoudre ce problème.
Cordialement.

Re: [..] Impossible d’écrire dans HKLM du registre Win 10 64 bits

Posté : sam. 19 nov. 2016 11:34
par jguinch
Dans ton code, Il y a un espace après HKEY_LOCAL_MACHINE, il faut le supprimer.
Sinon, tu peux essayer avec HKEY_LOCAL_MACHINE64

Re: [R] Impossible d’écrire dans HKLM du registre Win 10 64 bits

Posté : sam. 19 nov. 2016 13:27
par Boulanza
Bonjour,
Excellant, ça marche avec HKEY_LOCAL_MACHINE64.
Merci infiniment.
Cordialement.