471,086 Members | 853 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,086 software developers and data experts.

Selective copying of file via set-up

Hi

Is there a way to for a set-up project to copy a specific file during
installation only if destination does not already have this file?

Thanks

Regards
May 12 '07 #1
3 989
Why do you want to do this? The reason I ask is that for versioned code
files the standard behavior is that newer versions overwrite older version.
For data files the overwrite rule is more complicated, involving dates, but
nevertheless the standard behavior is to just use the setup project to do
the install, and if the code files on the system are a newer version they
won't get replaced.
--
Phil Wilson
[Microsoft MVP-Windows Installer]

"John" <Jo**@nospam.infovis.co.ukwrote in message
news:eQ**************@TK2MSFTNGP02.phx.gbl...
Hi

Is there a way to for a set-up project to copy a specific file during
installation only if destination does not already have this file?

Thanks

Regards

May 12 '07 #2
Its some configuration setting files that I want to keep after first
install.

Thanks

Regards

"Phil Wilson" <pd*******@nospam.cox.netwrote in message
news:OV**************@TK2MSFTNGP04.phx.gbl...
Why do you want to do this? The reason I ask is that for versioned code
files the standard behavior is that newer versions overwrite older
version. For data files the overwrite rule is more complicated, involving
dates, but nevertheless the standard behavior is to just use the setup
project to do the install, and if the code files on the system are a newer
version they won't get replaced.
--
Phil Wilson
[Microsoft MVP-Windows Installer]

"John" <Jo**@nospam.infovis.co.ukwrote in message
news:eQ**************@TK2MSFTNGP02.phx.gbl...
>Hi

Is there a way to for a set-up project to copy a specific file during
installation only if destination does not already have this file?

Thanks

Regards


May 12 '07 #3
This is a bit more complicated. If you're using RemovePreviousVersions, this
is not an update, this is a remove of the old version (an uninstall)
followed by an install of the version. Is that what you're doing?
--
Phil Wilson
[Microsoft MVP Windows Installer]

"John" <Jo**@nospam.infovis.co.ukwrote in message
news:ex**************@TK2MSFTNGP03.phx.gbl...
Its some configuration setting files that I want to keep after first
install.

Thanks

Regards

"Phil Wilson" <pd*******@nospam.cox.netwrote in message
news:OV**************@TK2MSFTNGP04.phx.gbl...
>Why do you want to do this? The reason I ask is that for versioned code
files the standard behavior is that newer versions overwrite older
version. For data files the overwrite rule is more complicated, involving
dates, but nevertheless the standard behavior is to just use the setup
project to do the install, and if the code files on the system are a
newer version they won't get replaced.
--
Phil Wilson
[Microsoft MVP-Windows Installer]

"John" <Jo**@nospam.infovis.co.ukwrote in message
news:eQ**************@TK2MSFTNGP02.phx.gbl...
>>Hi

Is there a way to for a set-up project to copy a specific file during
installation only if destination does not already have this file?

Thanks

Regards



May 18 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Thomas Lotze | last post: by
16 posts views Thread by NoodNutt | last post: by
1 post views Thread by emilysmith10 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.