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

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

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

Task To deploy Web services on a target machine:<br />

1. In the View List under Specify Application Data, click Files.<br />

Chapter 11: Configuring Servers<br />

Managing Internet Information Services<br />

2. In the Feature list, select the feature with which you want the Web services associated.<br />

3. In the Destination computer’s folders pane, select the folder (target directory) for installing<br />

files on the target system. Add your files to this folder. You may want this folder to be a new folder<br />

that you create in the folder called [IISROOTFOLDER].<br />

4. In the View List under Configure the Target System, click Internet Information Services.<br />

5. In the Web Sites explorer, select the virtual directory that is associated with the Web service.<br />

6. In the Content Source Path (Local or UNC) setting, click the ellipsis button (...). The Browse<br />

for Directory dialog box opens. Enter the same target directory as the one that contains the new<br />

files that you added in the Files and Folders view.<br />

At installation, files are copied to the target directory folder. In addition, the virtual directory is<br />

configured for that folder on the target system if IIS is present.<br />

Stopping IIS Functionality Through a Custom Action<br />

Stopping IIS through a custom action lets your installation overwrite files that are locked by IIS. If you<br />

are using one of the recent versions of IIS, you can run the following VBScript to unload a Web site,<br />

allowing you to install your .dll files. This means that you do not have to restart IIS, which will drop all of<br />

the Web sites that are running.<br />

For example:<br />

Dim DirObjSet DirObj = GetObject("IIS://LocalHost/W3SVC/1/Root/")DirObj.AppUnloadset dirObj =<br />

nothing"<br />

Adding IISROOTFOLDER Support<br />

IISROOTFOLDER is an <strong>InstallShield</strong> directory variable that is used to determine the root directory of<br />

the Web server on a target system. If you are using IIS functionality in your installation project and you<br />

have added a Web site, then IISROOTFOLDER is automatically added.<br />

Note: All of the files that you add to the IISROOTFOLDER directory in the Files view are installed to the Web server’s root<br />

directory on the target machine. If IIS is not on the target machine, the files are copied to the root folder.<br />

IIS_WEBSITE_NAME Property<br />

The IIS_WEBSITE_NAME property is obsolete. If this property exists from earlier project versions,<br />

the upgrader will handle it automatically. The upgrader will create a Web site and set the site number<br />

field to [IIS_WEBSITE_NAME]. For new Web sites, you can use any property or hard-coded number.<br />

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

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

Saved successfully!

Ooh no, something went wrong!