View Full Version : add a .reg file to the registry when the autoplaystarts
turbomaxxx
09-01-2003, 10:14 PM
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
Corey
09-01-2003, 11:18 PM
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 (http://www.indigorose.com)
Lorne
09-02-2003, 09:57 AM
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>
element78
09-02-2003, 09:31 PM
and: regedit /backup <path\filename.reg>
to backup the entire registry /ubbthreads/images/icons/smile.gif very nice option to offer your users.
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.