473,480 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Deployment Condition Statement for checking File Version?

Don
I've added a Setup and Deployment project to my Visual Studio 2005 Windows
Application solution and have several OCX and DLL files that will be
installed. But I can't seem to find any examples in the Help and
Walk-Throughs that show the syntax for the Condition Statement I need to set
in File Installation Properties to keep the Installer from overwriting
existing files unless the Date/Time and Version are older. I'd appreciate
any examples or links to examples. Thanks!
Oct 3 '06 #1
3 4194
Hi Don,
>But I can't seem to find any examples in the Help and
Walk-Throughs that show the syntax for the Condition Statement
I need to set in File Installation Properties to keep the Installer from
overwriting existing files unless the Date/Time and Version are older
1. Add a File Search item, click main menu View | Editors | Launch
Conditions, then select 'Add File Search' on the 'Search Target Machine'
node.

2. In the new added File Search's item Properties sheet, specify the
filename, file folder, date and version properties of the target file you
want to check in the target machine. Please also customize the 'Property'
name of that File search item, for example CHECKDLL1. (CHECKDLL2,
CHECKDLL3, CHECKOCX...)

3. Open the Properties sheet of the corresponding files in your setup
project (Right click the target file node in the Solution explorer, the
press ALT+Enter), specify the following in its 'Condition' field:
NOT CHECKDLL1
I hope the above information helps, if you have any questions or concerns,
please do not hesitate to let me know. I am standing by to help you.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Oct 4 '06 #2
Don
Hi Gary,
the Condition Statement
I need to set in File Installation Properties to keep the Installer from
overwriting existing files unless the Date/Time and Version are older

1. Add a File Search item, click main menu View | Editors | Launch
Conditions, then select 'Add File Search' on the 'Search Target Machine'
node.
It was only after I posted my original question that I discovered the
Windows Installer File Versoning rules at the following page in the MSDN
Library:

http://msdn.microsoft.com/library/de...ning_rules.asp

Can I just let the default rules take care of whether a file gets
overwritten, or do I still need to create a 'Search Target Machine' Launch
Condition for each DLL and OCX file?

Thanks,
Don

Oct 4 '06 #3
Hi Don,
>Can I just let the default rules take care of whether a file gets
overwritten, ...
No Problem, just can let the default file versioning rules works for you.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 5 '06 #4

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

Similar topics

2
4125
by: Darwin Fisk | last post by:
I have an app that is deployed that uses .config file settings. I have an update of that app that I am installing using a setup and deployment project. The basic setup process works fine. Now I...
2
8254
by: Kendal Goodrich | last post by:
In the setup project I am trying to create, I am wanting to search to see if DirectX 8 is installed on the local machine. I figured the best way to determine would be a registry key search, so I...
1
4462
by: Jo | last post by:
I am having a real problem with the Launch conditions in VS .NET and can only come to the conclusion that it is a bug. It states quite emphatically in the MSDN that Launch Conditions WILL be...
2
1668
by: Scanner2001 | last post by:
This may not be the best group to post to, so if there are any suggestions as to a different group, please let me know. Here is what we are doing, we have a couple of dlls that are shared (i.e....
4
3496
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
1
1496
by: Marty Cruise | last post by:
My application is run within an intranet environment and is installed on client machines. Each time the application is executed, it checks to see if a newer version is availble. If there is, it...
6
3649
by: Juggler | last post by:
Hi all I've written a program in VB.NET that allows the user to build quotes for installing shower enclosures. As part of the program, I've included a blank Access database. I've provided them...
3
1367
by: Jeff G | last post by:
When I build the deployment project for an application everything works. However, the two files instmsia.exe and instmsiw.exe do not appear with the setup files. I may be installing this on...
13
9670
by: Matt F | last post by:
I have a deployment project that I'm setting up. I need to perform a different custom action based on whether this is a first time install or an update. Does anyone have any idea if it's possible...
0
7034
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,...
0
7076
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...
1
6732
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
6886
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...
1
4768
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...
0
4472
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2990
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1294
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 ...
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.