Alguna sugerenia con esta situacion? - Forum

Forum Navigation
You need to log in to create posts and topics.

Alguna sugerenia con esta situacion?

Hola gente, a ver si alguien me puede dar una manito.

Necesito ejecutar un archivo de registro (.reg) que contiene las llaves y valores desde dentro de un ejecutable.

He intentado escribirlas una a una pero no me lo escribe tal como me pide el archivo.

basicamente necesito que se agregue al registro de windows esto:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\VB and VBA Program Settings]
[HKEY_CURRENT_USER\Software\VB and VBA Program Settings\wapi]

[HKEY_CURRENT_USER\Software\VB and VBA Program Settings\wapi\api]
"port"="13"

[HKEY_CURRENT_USER\Software\VB and VBA Program Settings\WhatBotPlus]

[HKEY_CURRENT_USER\Software\VB and VBA Program Settings\WhatBotPlus\Filter]
"delay"="4"

[HKEY_CURRENT_USER\Software\VB and VBA Program Settings\WhatBotPlus\license]
"email"="xxxxxxx@hotmail.com"
"code"="WTBxxxxxxx"

[HKEY_CURRENT_USER\Software\VB and VBA Program Settings\WhatBotPlus\SendingConfig]
"Speed"="2"
"MultipleWelcome"="0"
"DelayStart"="1"
"DelayEnd"="2"
"ActivateDialog"="False"
"DialogAfter"="5"
"DialogWait"="1"
"DialoCount"="15"
"ActivateSleep"="True"
"SleepAfter"="20"
"SleepFor"="5"

Pretendo que se agregue en forma silenciosa en lo posible pero en fin cualquier solucion sera bienvenida

MIL GRACIAS

 

Hola @joferar333

Supongo que habrá otras formas de acceder y escribir en el registro de Windows, pero para mí lo más fácil y sencillo es usar un plugin.

Yo personalmente uso más a menudo el primero de los tres que te pongo. Lo uso tanto para editar el registro de Windows como para los típicos archivos .INI

  • npConf de DECSoft (David Esperalta)
  • RAC_nbAutoIt de RAC Soft Solutions (Roman Avalos Castillo)
  • rlFunctions de reynoldiariza

Saludos.

Hello,

You did not mention what product you use.

For VisualNeoWin:

https://winhelp.visualneo.com/Files1.html#REGISTRYWRITE

RegistryWrite "HKEY_CURRENT_USER" "Software\MyPub\UserName" "Joe"

Regards

Hans-Peter

CN_Iceman has reacted to this post.
CN_Iceman