Click here to Skip to main content
15,891,431 members
Articles / .NET
Tip/Trick

InstallShield: Filtering output files

Rate me:
Please Sign up or sign in to vote.
4.67/5 (2 votes)
12 Jul 2013CPOL1 min read 20.3K   1   2
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)


Written By
Software Developer (Senior)
United States United States
I have started software development in 2001 in C++, win32, VC++, COM.
From past couple of years i have moved to Microsoft .net technologies & enjoy working in C#, WCF, WPF ASP.net applications.

Comments and Discussions

 
QuestionInstallAware Pin
MikeJohnston96426-Jun-15 8:55
MikeJohnston96426-Jun-15 8:55 
GeneralMy vote of 5 Pin
Ollipolli31-Jul-13 2:03
Ollipolli31-Jul-13 2:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.