Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / .NET

InstallShield: Filtering output files

4.67/5 (2 votes)
12 Jul 2013CPOL1 min read 20.8K  
Custom output files in installer.

Introduction

This tip explains how to select custom output files using Installshield Lite on VS 2010 and VS 2012.

Background

Microsoft has introduced a third party software for creating a project installer in Visual studio 2010 along with their own installer. Further, in Visual Studio 2012 they have stopped supporting their installer. Developers have to use InstallShield lite.  

InstallShield Lite is free with limited features and we have to upgrade to the Professional or Enterprise edition for the full scale features. 

Issue  

One of my projects has a COM interop assembly reference. During the installation process it was copying the actual COM library in the install bin folder which was not required. InstallShield help has not provided any information on how to prevent the COM library from being bundled. 

Solution 

Step 1: Using Project Assistant navigate to the Application Files tab as shown in the image below. Make sure that Primary output is selected using Add Project Output.

Image 1

Step 2: From Solution Explorer for the setup project navigate to Step 2 "Specify Application Data" and select the File option. This will show the destination files as shown in the image below. 

Image 2

Step 3: Select one of the destination files and right click. This will bring up the context menu with one of the options as "Dependencies from scan at build...". Select this.

Image 3

Step 4: Selecting the menu item "Dependencies from scan at build" will bring up the Dependencies dialog.

The user can uncheck the libraries that are not required to be part of the installer. 

Image 4

Reference

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)