Sets the default package folder.

Method of

Install object


void setPackageFolder (
   Object folder);


The setPackageFolder method has the following parameter:

An object representing a directory. You create this object by passing a string representing the directory to the getFolder or getComponentFolder method.




The setPackageFolder method to set the default package folder that is saved with the root node. When the package folder is set, it is used as the default for forms of addFile and other methods that have an optional localDirSpec parameter. You should only call this method once, and you should always call it immediately after you call initInstall. If you call setPackageFolder multiple times, the last folder set is the folder that is saved in the Client Version Registry and used as the default for other installations.

Document Tags and Contributors

Contributors to this page: Sheppy, trevorh, Fredchat, Rod Whiteley
Last updated by: Sheppy,