Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2003
    Posts
    3

    add a .reg file to the registry when the autoplaystarts

    I want to be able to add a .reg file when it starts and delete the .reg key when the autoplay stops. I also don't want it to say, "do you want to add this to the registry'. Please help

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: add a .reg file to the registry when the autoplaystarts

    Hi, try writing the key(s) manually using REGISTRY actions instead of importing them as a .reg file, that works...

    Corey Milner
    Creative Director, Indigo Rose Software

  3. #3
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

    Re: add a .reg file to the registry when the autoplaystarts

    Corey's right, it's usually better to use the built-in Registry actions. Unless you don't know what the contents of the .reg files are (maybe they're user-supplied tweak files, or Registry tweaks freshly downloaded from the Internet), or need to set a REG_BINARY value or something...in that case, just use the regedit /s command line option.

    Here are all of the command line options that regedit understands:

    <font color=green>regedit.exe [options] [filename]

    filename Import .reg file into the registry
    /s Silent, i.e. hide confirmation box when importing files
    /e Export registry file
    e.g. regedit /e file.reg HKEY_USERS\.DEFAULT
    /L:system Specify the location of the system.dat to use
    /R:user Specify the location of the user.dat to use
    /C Compress [filename] (Windows 98)</font color=green>
    --[[ Indigo Rose Software Developer ]]

  4. #4
    Join Date
    May 2003
    Posts
    130

    Re: add a .reg file to the registry when the autoplaystarts

    and: regedit /backup <path\filename.reg>

    to backup the entire registry [img]/ubbthreads/images/icons/smile.gif[/img] very nice option to offer your users.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts