If a file that was added through wildcards is removed from its source location, you will receive a dialog with the following text:
Listed below are files that were added based on a wildcard but are no longer found. To remove these files from the installation, click Yes. To leave a description of these files in the installation so they are re-added when they become available, click No.
If you click No, and then later re-add the file to the source location, the file is not properly added back into the .wsi or .wsm.
Steps to reproduce:
- On the Files page, add files to your installation using wildcards.
- Compile the .wsi.
- Close Windows Installer Editor.
- Delete one of the files from your source location.
- Open the .wsi and go to the Files page. When the Wildcard Deleted Files dialog appears, click No.
- Save the .wsi.
- Close Windows Installer Editor
- Re-add the file to your source location.
- Open the .wsi and go to the Files page. Even though you re-added the file to your source location, the file does not appear on the Files page. However, if you look at Setup Editor > Tables > File table, you will see the entry for your file
- Compile the .wsi. After compiling, you will see both your original file in the Files page as well as a duplicate file in the same directory.
While a .wsi is open, we keep an internal mapping between the features and the components in the feature. When re-adding wildcard files, this mapping is not being updated.
This issue is resolved in Wise Installation Studio 7 SP1, and Wise Package Studio 7 SP3
Workaround: If this situation occurs, after compiling perform the following:
- Open the .wsi/.wsm and save.
- In Setup Editor > Components tab, delete any duplicate file components that were created.
- Save the .wsi.
- Close and reopen. The components are now permanent, are included in our map, and will show up in the Files page.
Wise for Windows Installer 6.2
Wise Installation Studio 7.0
Wise Package Studio 7.x