09.12.2012 Views

InstallShield 2012 Spring Express Edition User Guide

InstallShield 2012 Spring Express Edition User Guide

InstallShield 2012 Spring Express Edition User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 8: Organizing Files for Your Installation<br />

Including Files and Folders<br />

Using the By-Directory Method<br />

When the by-directory method is used for dynamic link creation, <strong>InstallShield</strong> performs the following<br />

tasks at build time for all of the files that meet the include and exclude filter criteria of your dynamic<br />

link:<br />

• <strong>InstallShield</strong> creates one component for all of the files that are in the root-level dynamically linked<br />

folder, regardless of the file types.<br />

• If the dynamic link includes one or more subfolders, <strong>InstallShield</strong> creates a separate component for<br />

all of the files in each subfolder, regardless of the file types. The first dynamically linked file in a<br />

subfolder’s component is the key file of that component.<br />

This method of dynamic link creation is the traditional method that was available in <strong>InstallShield</strong> before<br />

the best practice method was introduced.<br />

Determining Which Dynamic Link Creation Method to Use<br />

For most dynamic links, the preferred dynamic link creation method is the best practice method. This<br />

method, in combination with the streamlined QuickPatch package functionality, enables you to create<br />

patches according to Windows Installer component rules.<br />

The best practice method is also preferred if it is possible that you may someday upgrade your project to<br />

the Premier or Professional edition of <strong>InstallShield</strong>. These editions let you create minor upgrades and<br />

small updates. For minor upgrades and small updates, the components, key files, and featurecomponent<br />

organization need to be maintained across the earlier and later .msi databases; for patches,<br />

the File table keys also need to be maintained. Since each component name and component code—and<br />

possibly key files—change at each build with the by-directory method of dynamic file linking, issues may<br />

occur. The advantage of the best practice method is that it allows for greater predictability than with the<br />

by-directory method.<br />

Note that if you want to create a patch for an earlier version of your product, and the earlier installation<br />

includes dynamic links that used the by-directory method, you must continue to use the by-directory<br />

method for the same dynamic links. However, if you add new dynamic links in your upgrade project, you<br />

can use the best practice method for those new dynamic links. That is, you can mix both types of<br />

dynamic linking in the same project and create a patch to deliver the upgrade.<br />

Important: Whenever possible, it is better to use the best practice method, instead of the by-directory method, for<br />

creating components for dynamically linked files. Note that with both methods, however, a minor upgrade, a small update,<br />

or a patch may not install correctly if a file that was present in a target image is removed from the dynamic link for the<br />

upgrade or patch.<br />

Note: For information on the rules that Windows Installer uses when determining whether a file included in a package<br />

should overwrite a file that already exists on the target system, see Overwriting Files on the Target Machine.<br />

Specifying Which Dynamic Link Creation Method You Want to Use<br />

The File Linking tab on the Folder Properties dialog box is where you specify which component creation<br />

method you want to use.<br />

162 ISE-1900-UG00 <strong>InstallShield</strong> <strong>2012</strong> <strong>Spring</strong> <strong>Express</strong> <strong>Edition</strong> <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!