Summary
Steps on how to add files to a Component in a Basic MSI Project.
Synopsis
You can add a group of files to a component only if they satisfy all of the following criteria:
- All files have the same destination folder.
- All files should be installed with the same conditions (including operating system and language).
Create new components organized around your files? installation needs and component properties. You should also be aware of Setup Best Practices when adding files to a component. Setup Best Practices helps you to write clean installations and distribute reusable components effectively.
**All of the files in a component must share the same component settings.
Discussion
Methods for Adding Files to Components
The way in which you add files to a component varies slightly depending on how you create your component. The sections below discuss how to associate files with components based on the way in which the component was created.
Creating a New Component in InstallShield
When you create a component by right-clicking in the Setup Design view (for installation projects) or the Components view, first select the component's Files item to view its file list.
Use one of the following methods to associate files with this component:
- Drag and drop files from Windows Explorer onto the file list.
- Right-click in the file list and click Add. In the resulting dialog box, browse to select as many files as you want to add from that folder. Click Open.
Creating a New Component Using the Component Wizard
If you use the Component Wizard to create a component, you can add files to the component in the Files panel.
Use one of the following methods to associate files with this component:
- Drag and drop files from Windows Explorer onto the file list.
- Right-click in the file list and click Add. In the resulting dialog box, browse to select as many files as you want to add from that folder. Click Open.
InstallShield creates links to your application's files. These links are used to locate the files when you build a release of your installation. If any of these links becomes invalid, File Not Found appears next to the file.
All of the above methods for adding files link the files statically, which means that the file links do not change if new files are added to or removed from the source folder. For an alternative to static linking, see Adding Dynamic File Links to Components.
Additional Information
Related Articles
Registering Windows Script Components (.wsc) Files in InstallShield 8Number of Views Adding Large Number of Files cause InstallShield to Stop Responding 11Number of Views Working with Shared Files and Core Components 4Number of Views How Components Created by Dynamically Linked Files Are Shared by Different Projects 7Number of Views Adding Prerequisite Files That Contains Subfolders 4Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago