How can I add a registry string to the registry through my software installer?

September 15th, 2009 | by admin |

The startup registry key is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\
CurrentVersion\Run. How can I add my software string to this key using an installer so that it will startup automatically when the customer boots up his system?
As I will not be there to do it for them, the installer needs to do it automatically.

Can’t you include a BAT file in your software installer? With a BAT file it would be easy:

; copy from next line down exactly!

Windows registry editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Mi...
CurrentVersion\Run]
"Your_Key_Name"="Your_Key_Value"

; stop copying

This in a BAT file will create the key name/value in the registry. Have fun. Try it on you own pc.

  1. 2 Responses to “How can I add a registry string to the registry through my software installer?”

  2. By robertmitchell100200300400 on Nov 18, 2009 | Reply

    go to start, then run, then type in: regedit
    References :

  3. By Jeffrey C on Nov 18, 2009 | Reply

    Can’t you include a BAT file in your software installer? With a BAT file it would be easy:

    ; copy from next line down exactly!

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Mi...
    CurrentVersion\Run]
    "Your_Key_Name"="Your_Key_Value"

    ; stop copying

    This in a BAT file will create the key name/value in the registry. Have fun. Try it on you own pc.
    References :

Post a Comment