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

Create successful ePaper yourself

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

Chapter 10: Customizing Installation Behavior<br />

Using Setup Files<br />

Table 10-2: Return Values of MsiQueryProductState (cont.)<br />

Return Value Description<br />

5 The product is installed for the current user.<br />

Using Setup Files<br />

Setup files (also known as support files) are files that are available on the target system only during your<br />

application’s installation process. Support files are copied to a temporary directory on the target system<br />

when installation begins, and they are deleted when the installation is complete. The support directory<br />

(SUPPORTDIR) is a dynamic file location and might be different on every target system and even on the<br />

same system for different installation instances.<br />

In the Setup Files view, you can add and remove files that you want to be available on the target system<br />

only during installation.<br />

To access a particular setup file during installation, you can query for the value of the support directory<br />

(SUPPORTDIR) and then append the file name to the SUPPORTDIR value to obtain the complete path<br />

of the file.<br />

Adding Setup Files<br />

Task To add setup files to your installation project:<br />

1. In the View List under Define Setup Requirements and Actions, click Setup Files.<br />

2. In the Support Files explorer, click the item that should contain the support file that you are<br />

adding. For example, you can add the setup file to the English (United States) item or an item for a<br />

different language if your project is in a language other than English.<br />

3. Right-click anywhere in the Files pane and then click Insert Files. The Open dialog box opens.<br />

4. Browse to the file that you want to include. To select multiple files, hold down the CTRL key while<br />

clicking files.<br />

5. Click OK.<br />

<strong>InstallShield</strong> adds the file to the Files pane.<br />

Adding a License File<br />

You can add a text file containing a license agreement in the Support Files view (for example,<br />

License.txt).<br />

234 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!