File replacement while deploying .NET windows application

  • Thread starter Youhanna Mounir
  • Start date
Y

Youhanna Mounir

While deploying a .NET Windows application using a .msi package
created using Visual Studio .NET 2002 deployment project, if a file
with the same name exists in the same location where a file in the
installer need to be created, the old file remains and not updated by
the newer one associated with the installer.
I need to make the installer, if it finds a file with the same name,
to replace it with the file included in the installer
 
C

Chamindu R. Munasinghe

Hi,
I think it overwrites files if the version is later that that of the
current file. you can try incrementing the file version

HTH
Chamindu
 
Y

youhanna

Hi,
Thanks for quick reply.
Unfortunately, some of the files included are not dlls. I have photos,
text files, xml documents,...etc.
Those files have no versions. So, I can't increment it.
Any ideas about this case?

Youhanna
 
V

VBen

Have you tried using the installer's events, to delete files in the
destination folder before the installation begins copying files?
I haven't used much the deployment projects, but I've seen there are events
for every dialog...
Hope this helps.
VBen.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,830
Latest member
ZADIva7383

Latest Threads

Top