PC Review


Reply
Thread Tools Rate Thread

Checking for new versions in a setup project

 
 
HIK
Guest
Posts: n/a
 
      8th Mar 2006
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
 
Reply With Quote
 
 
 
 
Mike
Guest
Posts: n/a
 
      8th Mar 2006
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.

 
Reply With Quote
 
HIK
Guest
Posts: n/a
 
      8th Mar 2006
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.
>

 
Reply With Quote
 
HIK
Guest
Posts: n/a
 
      8th Mar 2006
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.
>

 
Reply With Quote
 
Mike
Guest
Posts: n/a
 
      8th Mar 2006
Try to add a Launch condition from the Launch conditions editor..

 
Reply With Quote
 
Gary Chang[MSFT]
Guest
Posts: n/a
 
      9th Mar 2006
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.
======================================================

 
Reply With Quote
 
HIK
Guest
Posts: n/a
 
      9th Mar 2006
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.
> ======================================================
>

 
Reply With Quote
 
Gary Chang[MSFT]
Guest
Posts: n/a
 
      10th Mar 2006
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.
======================================================

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking serial key with setup project. Diainwater Microsoft Dot NET 0 17th Nov 2008 01:48 AM
Uninstalling old versions - VS 2003 Setup project =?Utf-8?B?UGV0ZQ==?= Microsoft Dot NET 0 8th Nov 2007 01:56 PM
Moving project from VS2003 - VS2005 Crystal reports and setup project Claire Microsoft C# .NET 4 30th Aug 2007 07:36 PM
How to establish a setup project including windows service project(s)? Daniel Xiao Microsoft C# .NET 3 24th Sep 2004 04:01 AM
Command line for checking DLL versions Tim_S Microsoft Windows 2000 CMD Promt 4 6th Oct 2003 01:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:52 AM.