Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / November 2006

Tip: Looking for answers? Try searching our database.

Force install of new version within ClickOnce

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dick - 13 Nov 2006 14:56 GMT
Within ClickOnce deployment, is it possible to prevent the prompt that tells
the user there is a new version and asks them whether they wish to install
it? i.e. is it possible to always force the installation of a new version?
Patrice - 13 Nov 2006 15:30 GMT
What is the whole scenario ? In 2.0 I told that the application is only
available online and it gets automatically updated from the web site if
needed.

Never tried but else check
http://msdn2.microsoft.com/en-us/library/s22azw1e.aspx and in particular the
"Making Updates Required" section (basically you tell the update should be
checked before the application starts and then specify the new updated
version as the minimum version required to force the update. I suppose the
UI is suppressed as the upgrade should be now mandatory)...

Good luck.

Signature

Patrice

> Within ClickOnce deployment, is it possible to prevent the prompt that
> tells
> the user there is a new version and asks them whether they wish to install
> it? i.e. is it possible to always force the installation of a new version?
Linda Liu [MSFT] - 14 Nov 2006 03:00 GMT
Hi Dick,

I agree with Patrice. When a user runs the application on a client and a
new version is now available, we could force the new version to be
installed by specifying a minimum required version for the application
before the new version is published .

To do this, right-click the project in the Solution Explorer and choose
Properties from the short cut menu. In the Project Designer, switch to
Publish tab and then click the Updates button. In the Application Updates
window, select the checkbox before the option "Sepcify a minimum required
version for this application" and then input the new version that is
currently going to be published in the below textboxes. Press OK.

Alternatively, we could modify the deployment manifest directly(i.e.
appName.application file in the publish folder
"c:\Inetpub\wwwroot\appName"). Open the deployment manifest file with
Notepad. Navigate to the <deployment> element and add
minimumRequiredVersion attribute into this element. The following is a
sample.

<deployment install="true" mapFileExtensions="true"
minimumRequiredVersion="1.0.0.3">

Hope this helps.
If you have anything unclear, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.