This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Subscribe
- 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
‎Jun 07, 2010
02:58 PM
Replace only existing files
Hey
I am working on adding a component to my installer. The only thing is, I only want to replace a file if it exists. If not, I'd like to skip it.
In other words, I have a batch file now that does a replaceemnt using xcopy /u . I want to get rid of the batch and do it in my installer.
Has anyone tryed to do this? Any ideas?
Thanks!
I am working on adding a component to my installer. The only thing is, I only want to replace a file if it exists. If not, I'd like to skip it.
In other words, I have a batch file now that does a replaceemnt using xcopy /u . I want to get rid of the batch and do it in my installer.
Has anyone tryed to do this? Any ideas?
Thanks!
(2) Replies
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 07, 2010
09:40 PM
You can use InstallScript API XCopyFile instead of batch.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 08, 2010
07:30 AM
Thanks alot!
I will try that today!
I will try that today!