Summary
The Default Windows Installer file-transfer behavior for installation and uninstallation can be modified by different techniques.Synopsis
Some of the techniques that exist for modifying the default Windows Installer (MSI) file-transfer behavior for installation and uninstallation are the following:- Using the Never Overwrite component setting.
- Changing the REINSTALLMODE property.
- Specifying companion-file relationships.
- Using the Permanent component setting.
- Using the RemoveFile table to delete files created by your application.
Discussion
If you use InstallShield to build software installations, you can modify the Never Overwrite setting in the Components view or the Setup Design view of the InstallShield environment. If you set the Never Overwrite component property to Yes, Windows Installer will skip installing the component if its key file is already present on the target system. If the component?s key file is not present on the target system, Windows Installer will follow the normal file-overwrite behavior.You can use the REINSTALLMODE property to modify the default file-overwrite behavior. The REINSTALLMODE property contains a string made of a collection of letters indicating how files should be overwritten. The default value is ?omus?, where o indicates that older files should be overwritten with new files, m and u indicate that machine and user registry data should be reinstalled, and s indicates that shortcuts should be reinstalled.
To modify file-overwrite behavior, you can replace the o in the REINSTALLMODE value with another letter indicating the desired behavior. Some of the possible values are e, to overwrite a file with an older or equal version, or a, to overwrite existing files without checking their version information.
NOTE: The REINSTALLMODE value cannot be limited to a component or feature, but instead applies to all features that will be installed.
To modify the value of REINSTALLMODE, you typically set the value at the command line when deploying the installation. Because REINSTALLMODE is a public property, you can modify its value at the command line as follows:
msiexec /i product.msi REINSTALLMODE=amus REINSTALL=ALL(The REINSTALL property contains either a comma-separated list of features to reinstall, or the special value ALL to reinstall every feature already installed on the system.)
Another technique for adjusting file-overwrite behavior is to use companion files, which associate one file?s overwrite behavior to another file?s behavior. At run time, if the ?parent? of the companion file relationship is installed, the ?child? will be installed without regard for its version relationship with an existing file. To set up a companion file relationship, for the child?s Version data, enter the File-table key of the parent file. By default, the File-table key of a file is displayed in the rightmost (Key) column of the properties in a component?s file list.
To enter the parent file?s File-table key in the child?s version information, you can use the file?s Properties panel, available when you right-click the file icon and select Properties. In the Properties panel, select the ?Override system version? check box, and then enter the desired Key in the version field.
Equivalently, you can enter the desired key in the Version field of the File-table record using the Direct Editor view.
Another aspect of file-transfer behavior is the product?s uninstaller. If you set the Permanent property to Yes for a component, the component?s data will not be removed when the component is uninstalled. By default, when a product is uninstalled, any data installed by the installation will be removed.
By default, a product?s uninstallation will remove only files installed by the original installation. Files created by an application after the installation is complete will not be removed automatically. If you want to remove files created by your application, you can add records to the RemoveFile table of your project. The RemoveFile table is where you specify extra files to be removed when a given component is installed or removed.
Additional Information
For additional information regarding the REINSTALLMODE property, please refer to the MSDN article REINSTALLMODE.For additional information regarding removing files that were created by your product using the RemoveFile table, please refer to the following HelpNet article:
http://helpnet.flexerasoftware.com/installshield23helplib/installshield23helplib.htm#helplibrary/FAQUninstallFiles.htm
Was this helpful?
Related Articles
Modify Uninstall Behavior of a Previous Version During a Major Upgrade 6Number of Views Security group behavior for nodes with IP persistence in Ocean 6Number of Views Creating and Modifying Environment Variables 12Number of Views Modifying application evidence from source 'Flexera' 18Number of Views Modifying Text In Installshield's 'Preparing To Install...' Dialog 10Number of Views
Revenera Assistant
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
1
2
3
4
5
Add Additional feedback ( Optional )
0/240
English
English
Language changed successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
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. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Revenera Assistant
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago