473,395 Members | 1,977 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,395 software developers and data experts.

Checking for new versions in a setup project

HIK
Click once can be set up to pole the setup url if there is a newer
version or not. I have a project which can only be deployed using a
setup project. How can I create the same feature in my setup project,
so the client will automatically check if there is a newer version or not?

haim
Mar 8 '06 #1
7 4118
hai,
After you generate a setup project using the setup project wizard, look
under deployment project properties.
There is an option for "DetectNewerInstalledVersion". Set it to true
for your requirements.
Also set "RemovePreviousVersions" as per your requirement.

Hope this helps.

Mar 8 '06 #2
HIK
Thanks Mike. that was very easy.

Haim

Mike wrote:
hai,
After you generate a setup project using the setup project wizard, look
under deployment project properties.
There is an option for "DetectNewerInstalledVersion". Set it to true
for your requirements.
Also set "RemovePreviousVersions" as per your requirement.

Hope this helps.

Mar 8 '06 #3
HIK
Mike,

That didn't help. The "DetectNewerInstalledVersion" prevents the msi
from overwriting a newer version. But when the application is launched,
it does not check if there is a newer built installed.

Haim
Mike wrote:
hai,
After you generate a setup project using the setup project wizard, look
under deployment project properties.
There is an option for "DetectNewerInstalledVersion". Set it to true
for your requirements.
Also set "RemovePreviousVersions" as per your requirement.

Hope this helps.

Mar 8 '06 #4
Try to add a Launch condition from the Launch conditions editor..

Mar 8 '06 #5
Hi Haim,
How can I create the same feature in my setup project,
so the client will automatically check if there is a newer
version or not?


The ClickOnce project integrates the checking update routine inside its
application code, so the application will check its update automatically
while running.

But the VS2005 setup project is an independent project from the project it
installs. It cannot add the checking update routine to the target project.
And the setup package would not be invoked when its installed application
running. So the setup project could not implement the feature as the
ClickOnce project's. If you want a ClickOnce application's upgrading
feature to your application, you need to implement the checking update
routine manually.

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====

Mar 9 '06 #6
HIK
thank you Gary. Basically that is my question. How do I implent the
checking update routine manually?

Haim

Gary Chang[MSFT] wrote:
Hi Haim,

How can I create the same feature in my setup project,
so the client will automatically check if there is a newer
version or not?

The ClickOnce project integrates the checking update routine inside its
application code, so the application will check its update automatically
while running.

But the VS2005 setup project is an independent project from the project it
installs. It cannot add the checking update routine to the target project.
And the setup package would not be invoked when its installed application
running. So the setup project could not implement the feature as the
ClickOnce project's. If you want a ClickOnce application's upgrading
feature to your application, you need to implement the checking update
routine manually.

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====

Mar 9 '06 #7
Hi Haim,

I am not very clear how do you publish your product. If you put your new
product installation package on the web, your application needs to query
that target product info page or access a corresponding web service to
check whether an product update is available or not.

Then your application may download that new version installation package,
close itself and install the new one.
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====

Mar 10 '06 #8

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

Similar topics

1
by: KWilliams | last post by:
Hello, We are trying to set up replication between different versions of SQL Server (7 & 2000). This is how the 2 servers are now setup: DB1 - External web-server w/SQL Server 7 DB2 -...
4
by: pbj | last post by:
my application was created in vb.net, vs 2003. the setup project was also created in vs 2003. one of my application reviewers reported this: The .Net link that is included in the setup is not the...
4
by: Nick | last post by:
Hi, I have a windows application, wherein the solution consists of 5 projects. When I try to create a setup and deployment project for this solution, I'm somehow unable to add anything in...
0
by: Adam Clauss | last post by:
I have a C++ COM Addin I wrote for Outlook (2002) using VS.Net 2002. Having completed it, I am now looking to create a setup project and install it on another machine. I created a setup project...
4
by: Brett Romero | last post by:
Say I have this setup: public static void SomeMethod() { #if DEBUG .... #endif }
7
by: rustysmith | last post by:
Anyone know how to check the PHP version that a current file is running on? This would be helpful in the instance where you are trying to make a package that can be distributed publicly for use in...
1
by: rohan_from_mars | last post by:
I have a windows service and am also using Enterprise Library June 2005 version. Now i have created Setup and Deployment Project which installs the service. but how do i add EL dlls-...
6
by: andrewbb | last post by:
I want to deploy a service with a windows app and the setup program must conform to the Vista certification requirements. Can that be done with the standard .net setup project? Assuming cost is...
0
by: =?Utf-8?B?UGV0ZQ==?= | last post by:
Hi, Is it possible when installing a .Net app with the All Users option set to true (built in VS 2003 & deployed as MSI file using a standard setup project) to automatically uninstall old...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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,...

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.