473,772 Members | 2,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Installing Question

I have a package built in C#.Net. I have the deployment package all set.
However, I have a file that needs to be installed in the project but I don't
want it be overwritten by an older version of the file if a user updates it
before another user runs the install.

i.e.. Customer 1 installs to a network drive k
Customer 1 updates file X.xml
Customer 2 also installs to a network drive k (same network)
Customer 2 needs the updates that Customer 1 made to X.xml.
Install must be smart enough not to overwrite an existing file that has a
date newer than the one in the install. How do I set this up?

Any Help would be appreciated.

John
Nov 15 '05 #1
3 1668
I'm pretty sure that is the default behavior of Windows Installer. See:

http://msdn.microsoft.com/library/de...us/msi/setup/r
eplacing_existi ng_files.asp

And look for Unversioned Files... The behaivor IS different for versioned
files. But a .XML is unversioned.

---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "John" <no************ @insight.rr.com >
Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
Subject: Installing Question
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <xQ************ ***********@twi ster.columbus.r r.com>
Date: Tue, 04 Nov 2003 19:10:21 GMT
NNTP-Posting-Host: 24.208.139.114
X-Complaints-To: ab***@rr.com
X-Trace: twister.columbu s.rr.com 1067973021 24.208.139.114 (Tue, 04 Nov 2003 14:10:21 EST)NNTP-Posting-Date: Tue, 04 Nov 2003 14:10:21 EST
Organization : Road Runner High Speed Online -- Columbus
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!el nk-pas-nf1!newsfeed.e
arthlink.net!cy clone.socal.rr. com!cyclone2.kc .rr.com!news2.k c.rr.com!twiste r
..columbus.rr.c om.POSTED!not-for-mailXref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1966 87
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp

I have a package built in C#.Net. I have the deployment package all set.
However, I have a file that needs to be installed in the project but I don'twant it be overwritten by an older version of the file if a user updates it
before another user runs the install.

i.e.. Customer 1 installs to a network drive k
Customer 1 updates file X.xml
Customer 2 also installs to a network drive k (same network)
Customer 2 needs the updates that Customer 1 made to X.xml.
Install must be smart enough not to overwrite an existing file that has a
date newer than the one in the install. How do I set this up?

Any Help would be appreciated.

John


Nov 15 '05 #2
Is there a way to script this behavior to not update a file that has a newer
date than the one in the assembly? (ie, the user updated the file from a
previous install of the same file.)

Thanks.

"David Guyer [MS]" <da****@online. microsoft.com> wrote in message
news:U6******** ******@cpmsftng xa06.phx.gbl...
I'm pretty sure that is the default behavior of Windows Installer. See:

http://msdn.microsoft.com/library/de...us/msi/setup/r eplacing_existi ng_files.asp

And look for Unversioned Files... The behaivor IS different for versioned
files. But a .XML is unversioned.

---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights. --------------------
From: "John" <no************ @insight.rr.com >
Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
Subject: Installing Question
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <xQ************ ***********@twi ster.columbus.r r.com>
Date: Tue, 04 Nov 2003 19:10:21 GMT
NNTP-Posting-Host: 24.208.139.114
X-Complaints-To: ab***@rr.com
X-Trace: twister.columbu s.rr.com 1067973021 24.208.139.114 (Tue, 04 Nov 2003 14:10:21 EST)
NNTP-Posting-Date: Tue, 04 Nov 2003 14:10:21 EST
Organization : Road Runner High Speed Online -- Columbus
Path:

cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!el nk-pas-nf1!newsfeed.e arthlink.net!cy clone.socal.rr. com!cyclone2.kc .rr.com!news2.k c.rr.com!twiste r columbus.rr.com .POSTED!not-for-mail
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1966 87X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp

I have a package built in C#.Net. I have the deployment package all set.
However, I have a file that needs to be installed in the project but I

don't
want it be overwritten by an older version of the file if a user updates itbefore another user runs the install.

i.e.. Customer 1 installs to a network drive k
Customer 1 updates file X.xml
Customer 2 also installs to a network drive k (same network)
Customer 2 needs the updates that Customer 1 made to X.xml.
Install must be smart enough not to overwrite an existing file that has adate newer than the one in the install. How do I set this up?

Any Help would be appreciated.

John

Nov 15 '05 #3
Turns out, that is the behavior for non-Versioned files, if I remember
correctly. If its a versioned file, like a binary, then it uses the rules
in that link below, and will usually replace it if its a newer version in
the new installer.

---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "John" <cp*********@in sight.rr.com>
Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
References: <xQ************ ***********@twi ster.columbus.r r.com> <U6************ **@cpmsftngxa06 .phx.gbl>Subject: Re: Installing Question
Lines: 74
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <fM************ ***********@twi ster.columbus.r r.com>
Date: Fri, 07 Nov 2003 17:38:19 GMT
NNTP-Posting-Host: 24.208.139.114
X-Complaints-To: ab***@rr.com
X-Trace: twister.columbu s.rr.com 1068226699 24.208.139.114 (Fri, 07 Nov 2003 12:38:19 EST)NNTP-Posting-Date: Fri, 07 Nov 2003 12:38:19 EST
Organization : Road Runner High Speed Online -- Columbus
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!el nk-pas-nf1!newsfeed.e
arthlink.net!cy clone.socal.rr. com!cyclone2.kc .rr.com!news2.k c.rr.com!twiste r
..columbus.rr.c om.POSTED!not-for-mailXref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1974 75
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp

Is there a way to script this behavior to not update a file that has a newerdate than the one in the assembly? (ie, the user updated the file from a
previous install of the same file.)

Thanks.

"David Guyer [MS]" <da****@online. microsoft.com> wrote in message
news:U6******* *******@cpmsftn gxa06.phx.gbl.. .
I'm pretty sure that is the default behavior of Windows Installer. See:

http://msdn.microsoft.com/library/de...-us/msi/setup/

r
eplacing_existi ng_files.asp

And look for Unversioned Files... The behaivor IS different for versioned
files. But a .XML is unversioned.

---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no

rights.
--------------------
>From: "John" <no************ @insight.rr.com >
>Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
>Subject: Installing Question
>Lines: 17
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <xQ************ ***********@twi ster.columbus.r r.com>
>Date: Tue, 04 Nov 2003 19:10:21 GMT
>NNTP-Posting-Host: 24.208.139.114
>X-Complaints-To: ab***@rr.com
>X-Trace: twister.columbu s.rr.com 1067973021 24.208.139.114 (Tue, 04 Nov

2003 14:10:21 EST)
>NNTP-Posting-Date: Tue, 04 Nov 2003 14:10:21 EST
>Organization : Road Runner High Speed Online -- Columbus
>Path:

cpmsftngxa06.p hx.gbl!TK2MSFTN GP08.phx.gbl!ne wsfeed00.sul.t-online.de!t-onli

n

e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!el nk-pas-nf1!newsfeed.

e

arthlink.net!c yclone.socal.rr .com!cyclone2.k c.rr.com!news2. kc.rr.com!twist e

r
columbus.rr.com .POSTED!not-for-mail
>Xref: cpmsftngxa06.ph x.gbl

microsoft.publ ic.dotnet.langu ages.csharp:196 687 >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
>
>I have a package built in C#.Net. I have the deployment package all set. >However, I have a file that needs to be installed in the project but I

don't
>want it be overwritten by an older version of the file if a user updatesit >before another user runs the install.
>
>i.e.. Customer 1 installs to a network drive k
> Customer 1 updates file X.xml
> Customer 2 also installs to a network drive k (same network)
> Customer 2 needs the updates that Customer 1 made to X.xml.
> Install must be smart enough not to overwrite an existing file that
hasa >date newer than the one in the install. How do I set this up?
>
>Any Help would be appreciated.
>
>John
>
>
>



Nov 15 '05 #4

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

Similar topics

1
3759
by: leo | last post by:
I am trying to installing phpbb 2 on Windows XP to host a very lightly used BB, with the main objective of trying to install the phpBB, web server and such. I am using Windows because I don't have a spare machine to install Linux. I am using these components: Apache 2.0.50 php 5.0.1
5
1685
by: aa | last post by:
Does anybody have an experience of installing and running PHP alongside with ASP on wk2/IIS5 ?
5
2722
by: Gerald Hernandez | last post by:
One of my development PC's died, and I need to have legacy VS and VS.Net installed at the same time. On the now dead PC, I had VS6 installed prior to installing VS.Net. This worked just fine. On my working PC, I already have VS.Net installed, but not VS6. My question, will installing the older VS6 with VS.Net already installed give me problems with VS.Net. Or should I first remove the VS.Net, install VS6, then re-install VS.Net? Gerald
10
4377
by: Ed Stevens | last post by:
A tale of woe, and a question . . . Last week my boss said to me "we've installed DB2 Connect on this Solaris box. Make it work." Now, I've barely seen DB2 Connect on Windows, having fumbled thru one install and config, with a lot of handholding from IBM Support. I'm comfortable in unix but have never dealt with DB2 Connect there. (my main job is as an Oracle DBA, and most of my db's are on Solaris or AIX) I've found the install...
2
1381
by: Ralph2 | last post by:
Hello Some time ago with the help of this group I made an amateurish database that catalogs all of our shop drawings. Works really well ( I think) but management, in its infinite wisdom, wants a "professional" database. So, they have contracted out a local programmer and his first "beta" will not run.. He coded the *.mde in Access 2002 (in spite of being informed that we have A97). Now he wants to run an installer that will allow us to...
5
1632
by: Sagaert Johan | last post by:
hi I have the following problem: I have a C# application that uses an activeX . I installed the application and the NET 1.1 Runtimes on a clean pc When running the application i discover that the activeX events do not fire. I installed VS NET 2003 on that machine.(in an attempt to start debuggging) Now the activeX events fire again (application works as expected ).
11
5781
by: tshad | last post by:
I have a small Windows Service program that just has a timer on it and it built fine. I try to install it using InstallUtil and I get the following message: System.ComponentModel.Win32Exception: The account name is invalid or does not exist, or the password is invalid for the account name specified I am in the same folder my program is in (MyService.exe). I assume it has to do with Logon Credentials.
6
1887
by: CoL | last post by:
I am installing gcc 2.95.3 version as required by our product. current compiler 2.96 used for building --installing After ./configure make bootstrap gives below error ../parse.y:379.10-15: type redeclaration for interface_type_list ../parse.y:388.10-15: type redeclaration for class_member_declaration ../parse.y:401.10-15: type redeclaration for unary_expression_not_plus_minus make: *** Error 1
17
12071
by: merrily | last post by:
Read in one forum the question someone asked after successfully (sort of) installing Picture It 2000 on new computer with Vista. Will this person or any other help me accomplish this install on Vista, please. I tried installing Picture It and it seemed to do so. I got no error messages but it sure took a long time. Then when I tried to open the program it said "access denied" adding that I needed 30 meg of disk space (implying I didn't)...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10103
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9911
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8934
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.