473,394 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 896
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike Connor | last post by:
I am having trouble getting Conditional Folder creation & File insertion to work using VS .Net in a Deployment Project for a C# app. I am displaying a generic Textbox Dialog under the User...
0
by: Mike Connor | last post by:
I am having trouble getting Conditional Folder creation & File insertion to work using VS .Net in a Deployment Project for a C# app. I am displaying a generic Textbox Dialog under the User...
1
by: emilysmith10 | last post by:
I am creating a new database by copying a template .mdb file. This template has assigned permissions for each of it's objects. I know that just by copying the file, I lose these permissions. Is...
0
by: arindams | last post by:
I've a form where an webrowser contains a html file. I want to copy a selective portion of the html content and paste that content in an excel 2007 file where it will be pasted as a normal text (not...
3
by: KittyKit | last post by:
Hello there I've a website that allows a user to create and download a document. I first save the file in the server and then let the user download it. This works just fine. But when multiple...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.