Support
09-25-2002, 01:02 PM
<HTML><HEAD><TITLE>INFO: How to Set the Default Application Directory</TITLE></HEAD><BODY><h3>INFO: How to Set the Default Application Directory</h3><b>Document ID: IR02009</b><hr>The information in this article applies to:<ul><li>Setup Factory 6.0</li></ul><hr><h3>SUMMARY</h3><p>This article explains how to set the default application directory.</p><h3>DISCUSSION</h3><p>In Setup Factory 6.0 the application directory is the directory where all of your files will be installed by default. The application directory is generally controlled by the built-in variable %AppDir%. So setting the value of %AppDir% sets the application directory.<br><br>By default this variable is set in two different locations:<br><br> <li>The Settings tab of <i>General Design</i> dialog</li><li>The <i>Select Install Folder</i> screen</li><br><br>The <i>General Design</i> dialog sets the default value of %AppDir%. This is the value that %AppDir% will contain for the duration of the installation unless it is overwritten by an action or screen. The value set by the <i>General Design</i> screen is considered the default value for the application directory because it is always set during design-time, and it is the first value that is assigned to %AppDir%. Therefore if an installation had no screens or actions the application directory set on the <i>General Design</i> dialog would remain constant throughout the installation and it would be the path were the files would be installed to.<br><br>By default the <i>Select Install Folder</i> screen also sets the application directory by setting the value of %AppDir%. Which means that the <i>Select Install Folder</i> screen overwrites the default application directory that was set on the <i>General Design</i> dialog.<br><br>The <i>Select Install Folder</i> screen also has a <b>Default install folder</b> field that controls the initial value that will be displayed in the <b>Install Folder</b> field during runtime. This value has no relation to the application directory set on the <i>General Design</i> dialog or the current value of %AppDir%.<br><br>So if you find that the application directory you set on the <i>General Design</i> dialog is not being displayed by default on the <i>Select Install Folder</i> screen during runtime, it is because you have not set the <b>Default install folder</b> on the Custom tab of the <i>Screen Properties: Select Install Folder</i> dialog during design-time.<br><br>Another fact to keep in mind is that, by default, when the <b>Next</b> button is pressed on the <i>Select Install Folder</i> screen during runtime, the current path found in the <b>Install Folder</b> field will be used to set %AppDir%, and therefore the application directory.<br><br><b>Note: </b>%AppDir% is simply a variable and can be set many different ways in Setup Factory, the <i>General Design</i> dialog is the default method, and the <i>Select Install Folder</i> screen the most common way to overwrite this value.<br></p><h3>MORE INFORMATION</h3><p>For more information please see the following topics in the Setup Factory Help file:<br><br><li><b>Command Reference | Screens | Individual Screens | Select Install Folder</b></li><li><b>Command Reference | Design Environment | Dialogs | General Design | General Design tabs | Settings tab</b></li><li><b>Command Reference | Variables | Built-in Variables</b></li></p><p>KEYWORDS: Setup Factory, Application directory, %AppDir%, General Design, Select Install Folder</p><hr><FONT SIZE=1>Last reviewed: September 25, 2002<br>Copyright © 2002 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br></FONT></BODY></HTML>