- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to don't copy a file if the file already exists?
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
How to don't copy a file if the file already exists?
How to don't copy a file if the file already exists in Installscript (FeatureTransferData( MEDIA ))
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @nhatmi ,
try changing the "Overwrite" to "Never" against each component in the components view.
Overwrite |
InstallScript, InstallScript Object |
This setting indicates the installation’s behavior when it encounters an existing file with the same name as the one being installed; you can selectively replace each file in a component based on its version number or modification date. To change the behavior, click the ellipsis button (...) in this setting. The Overwrite dialog box opens, enabling you to specify the appropriate run-time behavior. Tip: If the component consists of files—such as data and configuration files—that end users may have updated, consider selecting the Never Overwrite option. Files that are associated with a component that has the Never Overwrite option selected for the Overwrite setting are logged for uninstallation; that is, even if such a file is not copied to the target system, because a file with the same name already exists there, that file is removed when the application is uninstalled. To prevent an already existing file from being uninstalled, select Yes for the Shared setting of the file’s component. |
https://helpnet.flexerasoftware.com/installshield25helplib/helplibrary/ComponentSettings.htm?