09.12.2012 Views

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 9: Configuring the Target System<br />

Associating a File Extension with an Application File<br />

Refreshing the Registry View<br />

Task To refresh the registry view:<br />

Press F12.<br />

Associating a File Extension with an Application<br />

File<br />

File associations are registry settings that tell Windows what product to use to open files of a certain<br />

type. For example, Windows typically launches Notepad.exe when a text file (.txt) is opened.<br />

To view and modify registered file types on your system, open Windows Explorer, and on the Tools<br />

menu, click Folder Options. Use the File Types tab of the Folder Options dialog box to see how the file<br />

associations are configured.<br />

Similarly, you can identify the application that is associated with a given file by right-clicking the file in<br />

Windows Explorer and then clicking Properties.<br />

File associations are stored in both HKEY_LOCAL_MACHINE\SOFTWARE\Classes and<br />

HKEY_CURRENT_USER\SOFTWARE\Classes; you can see a merged view of the data under<br />

HKEY_CLASSES_ROOT.<br />

Creating File Associations for Your Installation Project<br />

Best-practice guidelines recommend that you create a file association for every nonhidden type of file<br />

that is created or used by your product. With the File Extensions view in <strong>InstallShield</strong>, you can quickly<br />

and easily create file associations for your installation project. When an end user installs a feature that<br />

contains a file association, the file association is registered on the target machine; an entry is made in the<br />

appropriate part of the registry, and the entry links your file type to your application through the<br />

ProgID. The ProgID, which is sometimes called a file type’s application identifier or tag name, uniquely<br />

identifies your application and ensures that your association is recognized by the operating system.<br />

Creating a File Extension Association<br />

You can create a file association that links a file extension to an executable (.exe) file in your installation<br />

project. Note that the .exe file must be included in your project before you can create the file association.<br />

Note that you should not use a dynamically linked file to create a file association. With dynamically<br />

linked files, the selection defaults to the top file in the dynamically linked folder’s file list, so you cannot<br />

select a specific file.<br />

212 ISE-1800-UG01 <strong>InstallShield</strong> <strong>2012</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!