Summary
error Val0001 The file [1] with a target of [2] appears to have been removed from the setup, but does not appear in the RemoveFile table. This file will not be removed from the target machine when an upgrade is run unless the RemoveFile table has been authored.Symptoms
When performing Upgrading and Patching Validation, the following error may occur:
"error Val0001 The file [1] with a target of [2] appears to have been removed from the setup, but does not appear in the RemoveFile table. This file will not be removed from the target machine when an upgrade is run unless the RemoveFile table has been authored. "
"error Val0001: An unhandled exception occurred running this validator. Please contact your support personnel."
Cause
Note: This validator does not apply to major upgrades because the "uninstall and then reinstall" nature of major upgrades does not lend itself to this type of consideration.
Resolution
If the file was unintentionally removed, this validation error can be resolved by re-adding the file specified in the error message. When re-adding this file, make sure it is included exactly as it was included in the previous version of this setup. For example, the component code, accessible from the Components view within the IDE, must be identical to the component code from the previous version of this setup.
After adding this file back into the latest version of the setup, rebuild the project to resolve this validation error.
Author the RemoveFile Table to remove this file during uninstallation
To remove this file when the upgrade is run, enter instructions into the RemoveFile table. When the upgrade is run, these RemoveFile table entries are executed, and the file is deleted.
Using the File Name and File Destination from the previous version setup package, create an entry in the RemoveFile table using the Direct Editor. The file name can contain wildcard characters.
Correct the syntax
- Ensure the value(s) in the DirProperty field are accurate for each entry in the table. The DirProperty field should contain the path to the directory where the file is installed that needs to be removed.
- Ensure the property name in the DirProperty field has the correct case. For example, if a public property that is all capital letters is listed in the DirProperty field with lower case, this error has been known to occur.
Note: When authoring the RemoveFile table, you must specify a component. This component's action state is used to determine if a file matching the RemoveFile signature should be removed or not. Be sure to specify a component that you are certain will reinstall when the upgrade is applied.
Additional Information
If none of the above suggestions resolve the validation error, the Upgrading and Patching Validation can be turned off during the validation process. This can be done by selecting "Tools | Options" from the IDE and clicking the "Validation" tab. Simply uncheck the "Perform Patching & Upgrading Validation" option to turn this off. The validation is merely a precaution, and doesn't necessarily mean problems will occur during the installation of your setup.
Additional information on the RemoveFile table can be found in the MSDN Library topic RemoveFile Table.
This error is also documented in the InstallShield Help Library topic Val0001.
Related Articles
Validator Number Val0006 3Number of Views Validator Number Val0009 3Number of Views Validator Number Val0008 3Number of Views What FlexNet inventory agent and beacon release number corresponds to each product version? 305Number of Views FlexNet Manager for Engineering Applications release numbers and corresponding product versions 49Number 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. | |
Case id: 00001065
Activity: Status change: 2 hours ago