PDA

View Full Version : automaticaly import a *.reg file in the Registry


ElBarto
06-28-2002, 01:37 AM
Hi,

i have a regfile called "example.reg". In this regfile a several registry keys stored. Now I've tried to start with an "Action" to import the whole "example.reg" into the registry. But everything i tried, an error occures!
(Execute (%SrcDir%\Folde\example.reg))

Of course i can set the keys manually within an action, and this works fine, but this "example.reg" file has so much keys that this will be to complex and is too much work.
Has anyone an solution to this problem?

Thx

El *germany*

HayoOellrich
06-28-2002, 07:13 AM
Hi !

Of course you should be able to load complete .reg-files.

I did it the following way:

Execute action.

"File to execute":
%WinDir%\regedit.exe

"Command line args":
/S %AppDir%\example.reg

(if you copied "example.reg" to %AppDir%; "/S" stands for "silent").

Hayo

Tim Tester
06-28-2002, 09:25 PM
I use the file-search functions to automatically locate & run all .reg files in the destination install directory. That way, the install program does not need to know the names or number of such files.

TT