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 8: Organizing Files for Your Installation<br />

Including Files and Folders<br />

The Setup Type dialog is not included in the run time of the installation; therefore, end users cannot<br />

selectively install only parts of your product.<br />

Accessing the Setup Type at Run Time<br />

The _IsSetupTypeMin property stores the setup type that the end user selects in the Setup Type dialog.<br />

Task To access the selected setup type during the run time of an installation, do one of the following:<br />

• Use the Windows Installer MsiGetProperty function in a new DLL custom action.<br />

• Use the following VBScript code:<br />

' Get the value of the setup type selected<br />

Dim sSetupType<br />

sSetupType= Session.Property("_IsSetupTypeMin")<br />

' Show it.<br />

MsgBox sSetupType<br />

The _IsSetupTypeMin property contains only the default setup type names—Typical, Minimal, and<br />

Custom. If you rename Minimal in the Setup Types view to MySetupType and the end user selects the<br />

renamed setup type, _IsSetupTypeMin will contain Minimal and not MySetupType.<br />

Including Files and Folders<br />

Your files, the core of your product, are also the core of your installation. When you add a file to your<br />

project, you must select which feature with which it is associated. Features are what end users see when<br />

they run your installation and select the Custom setup type. If the feature is selected for installation, the<br />

feature’s files are installed to the target system.<br />

You can add files to your project in the Files view.<br />

Files Explorer<br />

The Files view contains a file explorer that allows you to drag and drop files from folders on your source<br />

machine to folders on the destination machine. The two left panes in the files explorer contain folders<br />

and the two right panes display the files located within those folders.<br />

Source Computer’s Folders (Top Left)<br />

The Source computer’s folders pane is similar to the left pane in Windows Explorer. This pane contains<br />

folders located either locally or on a network. From here you can navigate to the folder that contains the<br />

files you want to add to your installation.<br />

<strong>InstallShield</strong> <strong>2012</strong> <strong>Express</strong> <strong>Edition</strong> <strong>User</strong> <strong>Guide</strong> ISE-1800-UG01 155

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

Saved successfully!

Ooh no, something went wrong!