473,398 Members | 2,165 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,398 software developers and data experts.

Setup doesn't copy files if the same files exist

Hi all
I guess it is not the right group for this problem, but I can't find a
Newsgroup about Setup projects.

Visual studio 2005 SP1

My Setup project (.vdproj) is very simple. The project's output (msi
package) contain one EXE and three DLLs (created in C#) that should be
copied to an existing folder, where an older version already exist. The
installer should replace these files with the new ones.

The existing files are NOT write-protected.

If I run the Setup when the old files exist in the target folder, they are
NOT replaced. If the old files are removed, the new ones are installed
properly.

Any solution?

TIA

Boaz Ben-Porat
Milestone System
Denmark
Jun 27 '07 #1
6 5764
Could the files you're trying to replace be currently in use?

--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
"Boaz Ben-Porat" wrote:
Hi all
I guess it is not the right group for this problem, but I can't find a
Newsgroup about Setup projects.

Visual studio 2005 SP1

My Setup project (.vdproj) is very simple. The project's output (msi
package) contain one EXE and three DLLs (created in C#) that should be
copied to an existing folder, where an older version already exist. The
installer should replace these files with the new ones.

The existing files are NOT write-protected.

If I run the Setup when the old files exist in the target folder, they are
NOT replaced. If the old files are removed, the new ones are installed
properly.

Any solution?

TIA

Boaz Ben-Porat
Milestone System
Denmark
Jun 27 '07 #2
"Boaz Ben-Porat" <bb*@milestone.dkwrote in message
news:uC**************@TK2MSFTNGP03.phx.gbl...
Hi all
I guess it is not the right group for this problem, but I can't find a
Newsgroup about Setup projects.

Visual studio 2005 SP1

My Setup project (.vdproj) is very simple. The project's output (msi
package) contain one EXE and three DLLs (created in C#) that should be
copied to an existing folder, where an older version already exist. The
installer should replace these files with the new ones.

The existing files are NOT write-protected.

If I run the Setup when the old files exist in the target folder, they are
NOT replaced. If the old files are removed, the new ones are installed
properly.

Any solution?
MSI uses file versioning to determine if it needs to copy a file. If the
existing file has a version that is equal to or greater than than the file
in the MSI, the file is NOT copied.

Jun 27 '07 #3
Hi Peter

The answer is No. The files are not in use.

Boaz Ben-Porat
"Peter Ritchie [C# MVP]" <PR****@newsgroups.nospamskrev i en meddelelse
news:3F**********************************@microsof t.com...
Could the files you're trying to replace be currently in use?

--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
"Boaz Ben-Porat" wrote:
>Hi all
I guess it is not the right group for this problem, but I can't find a
Newsgroup about Setup projects.

Visual studio 2005 SP1

My Setup project (.vdproj) is very simple. The project's output (msi
package) contain one EXE and three DLLs (created in C#) that should be
copied to an existing folder, where an older version already exist. The
installer should replace these files with the new ones.

The existing files are NOT write-protected.

If I run the Setup when the old files exist in the target folder, they
are
NOT replaced. If the old files are removed, the new ones are installed
properly.

Any solution?

TIA

Boaz Ben-Porat
Milestone System
Denmark

Jun 27 '07 #4
Hi John.

I can't see my last reply to this mail, so I swnd it again.

Is there any way to force overwriting regardless of file version (some
switch or property in the installer) ?

TIA

Boaz Ben-Porat
"John Vottero" <JV******@mvpsi.comskrev i en meddelelse
news:CC**********************************@microsof t.com...
"Boaz Ben-Porat" <bb*@milestone.dkwrote in message
news:uC**************@TK2MSFTNGP03.phx.gbl...
>Hi all
I guess it is not the right group for this problem, but I can't find a
Newsgroup about Setup projects.

Visual studio 2005 SP1

My Setup project (.vdproj) is very simple. The project's output (msi
package) contain one EXE and three DLLs (created in C#) that should be
copied to an existing folder, where an older version already exist. The
installer should replace these files with the new ones.

The existing files are NOT write-protected.

If I run the Setup when the old files exist in the target folder, they
are NOT replaced. If the old files are removed, the new ones are
installed properly.

Any solution?

MSI uses file versioning to determine if it needs to copy a file. If the
existing file has a version that is equal to or greater than than the file
in the MSI, the file is NOT copied.

Jun 27 '07 #5
I can't see my last reply to this mail, so I swnd it again.
>
Is there any way to force overwriting regardless of file version (some
switch or property in the installer) ?
I once did a lot of MSI work and although my memory of the subject has grown
fuzzy, I strongly recommend against this. There are a lot of carefully
crafted rules surrounding MSI versioning and it's not a good idea to play
around with them. It's complicated business with trap doors you don't want
to fall into. You should read up on the subject and version your files
accordingly. Let MSI take care of updating your files according to the usual
rules of file replacement.
Jun 27 '07 #6
"Boaz Ben-Porat" <be******@tdcadsl.dkwrote in message
news:eq**************@TK2MSFTNGP02.phx.gbl...
Hi John.

I can't see my last reply to this mail, so I swnd it again.

Is there any way to force overwriting regardless of file version (some
switch or property in the installer) ?
No, not that I know of.

Jun 27 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: D & J G | last post by:
Hi all I appear to have lost my setup wizard. Is there anywhere that I can download this function (upgrade?) or will I have to re-install the whole of VB6? TIA Don
1
by: Wilson Ricardo Passos Oliveira | last post by:
Hi fellows, I have two simple questions regarding the Framework's deploy and the Setup and Deploy Projects: 1. As I've read in another posts and newsgroups (and as I can imagine), VS.NET...
0
by: vidya | last post by:
Hi, I built an installer for my application. When i ran it for testing the build, I found that it doesn't copy the dll files if they already exist in the destination folder. The copy doesn't...
149
by: Christopher Benson-Manica | last post by:
(Followups set to comp.std.c. Apologies if the crosspost is unwelcome.) strchr() is to strrchr() as strstr() is to strrstr(), but strrstr() isn't part of the standard. Why not? --...
0
by: Oz | last post by:
Hi We in our company build asp.net and MS SQL Server apps for deployment on clients' machines. We have created an Installer class (DBInstaller) which runs several scripts to build a database,...
4
by: Howard Kaikow | last post by:
When I build a setup project, the dependency in the setup project is tied to the version in which it was built. Is there a way to build a setup project that can be used in both versions of the...
3
by: =?Utf-8?B?WmlhbmdpIEpvbmVz?= | last post by:
Hi, I m using VS .NET 2003 to create a website. Using the setup package I create a setup as well. But this setup has files with actual code in it & not pre-compiled DLLs. Please let me know...
0
by: Robin Becker | last post by:
I'm getting this error whilst building simplejson-1.7.3 with "setup.py install" on a win32 platform. ........ creating build\bdist.win32\egg\EGG-INFO removing...
1
by: Blau | last post by:
While trying to learn from some sample projects i'm running into a problem. The setup that I have is One Solution with two projects. (usually a library that is being developed along side an...
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?
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.