Support
09-23-2002, 02:48 PM
<HTML><HEAD><TITLE>HOWTO: Merge REG Files with the Registry</title></head><BODY><h3>HOWTO: Merge REG Files with the Registry</h3><b>Document ID: IR02004</b><hr>The information in this article applies to:<ul><li>Setup Factory 6.0</li></ul><hr><h3>SUMMARY</h3><p>This article describes how to merge a REG file with the registry using Setup Factory.</p><h3>DISCUSSION</h3><p>In Setup Factory 6.0 you can use an <b>Open Document</b> action to merge a REG file with the registry, however your user will get a confirmation message asking them if they would like to merge your REG file with the registry. As a result it may be preferable to merge your REG file with the registry silently.
<br>
<br>If you would like to merge a REG file with the registry silently, an <b>Execute File</b> action should be used. Use the <b>Execute File</b> action to launch regedit.exe, you will them pass regedit the "/S" command line argument (forcing it to run silently), a space, and then the full path to your REG file.
<br>
<br>Here is an example of what your <b>Execute File</b> action would look like:
<br>
<br><PRE><code><b>File to execute:</b> %WinDir%\regedit.exe (the path to the file regedit.exe)<br><b>Command line argument:</b> /S %AppDir%\myfile.reg (the command line argument and the path to the REG file)</code></pre>
<br></p><h3>MORE INFORMATION</h3><p>See the topic: <b>Command Reference | Actions | Individual Actions | Execute File</b></p><p>KEYWORDS: registry, REG file, regedit</p><hr><FONT SIZE=1>Last reviewed: September 23, 2002
<br>Copyright © 2002 <A HREF=&quot;http://www.indigorose.com&quot; target=&quot;blank&quot;>Indigo Rose Corporation</a>. All rights reserved.
<br></font></body></html>
<br>
<br>If you would like to merge a REG file with the registry silently, an <b>Execute File</b> action should be used. Use the <b>Execute File</b> action to launch regedit.exe, you will them pass regedit the "/S" command line argument (forcing it to run silently), a space, and then the full path to your REG file.
<br>
<br>Here is an example of what your <b>Execute File</b> action would look like:
<br>
<br><PRE><code><b>File to execute:</b> %WinDir%\regedit.exe (the path to the file regedit.exe)<br><b>Command line argument:</b> /S %AppDir%\myfile.reg (the command line argument and the path to the REG file)</code></pre>
<br></p><h3>MORE INFORMATION</h3><p>See the topic: <b>Command Reference | Actions | Individual Actions | Execute File</b></p><p>KEYWORDS: registry, REG file, regedit</p><hr><FONT SIZE=1>Last reviewed: September 23, 2002
<br>Copyright © 2002 <A HREF=&quot;http://www.indigorose.com&quot; target=&quot;blank&quot;>Indigo Rose Corporation</a>. All rights reserved.
<br></font></body></html>