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

ClickOnce deployment

Anyone know how you can initially deploy a clickonce application to say 100
workstations with out each of them having to go to the web site to get the
applicaiton?

What we do now is we deploy our application and updates via group policy in
our AD domain...

what we want to do is have the updates done through the clickonce
application deployment and update system so it checks for new updates when
the user runs the app... but right now it seems like each user has to go to
the published website to install the app initially... this is the bad
part... we need the app to be on the start menu straight out... any way to
do this? We have Active directory, group policy and login scripts at our
disposal... thanks!
Nov 27 '07 #1
2 2252
Yes, this works out-of-the-box, but you need to get the "Publishing
Folder Location" (and optionally Installation Folder URL) correct, as
this gets burnt into the ClickOnce deployment metadata. Example below.

Marc

===

Made new "Windows Forms" project: "ClickOnceTest"; references System,
System.Windows.Forms

Single code file:

static class Program {
static void Main() {
System.Windows.Forms.MessageBox.Show("Version 1");
}
}

Publish to "http://localhost/ClickOnceTest/" with online/offline
enabled

(I've also taken this web-site offline to demonstrate that it isn't
needed at deployment)

Run the ".application" file from a UNC (or copy local [inc. the sub-
folders], whatever) - note that this is the ".application" *outside*
of the versioned sub-folders

Accept install; I get "Version 1" - i.e. it has installed from the
local media and is running version 1.

Run from start-menu; I get "Version 1" - i.e. the local cache is
running version 1.

Now edit out program; to be imaginative, I've changed the message to
"Version 2", and re-published (web-site back on-line)

Now without doing anything special, run the app from the start menu

It tells me that a new version is available; I accept this update, and
get "Version 2".

Run again from start-menu; no extra dialogs, get "Version 2"

So now it has detected the change from the web-site (even though we
installed from a UNC) and updated.
Nov 27 '07 #2
You could look at deploying it with SoftGrid as an alternative

//CY
Nov 27 '07 #3

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

Similar topics

2
by: Mika M | last post by:
Hi! I made ClickOnce deployment for Windows Forms VB 2005 application, and it's working mostly fine. Now I have some question: 1. Is it okay when my application goes into x:\Documents and...
11
by: moondaddy | last post by:
I have a .net 2.0 smarclient app and am trying to deploy it to IIS where users can access it from. I created an application folder in IIS where I'm trying to deployee to. 1) When the...
1
by: moondaddy | last post by:
I need to have multiple deployment profiles for a .net 2.0 winforms project. This is my requirement: 1) Re-use same project for multiple ClickOnce deployment profiles. 2) Each profile will...
2
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
2
by: Alex Bögli | last post by:
Hi I have a rather advanced deployment scenario and wanted to know, if anyone has an idea how to accomplish that with ClickOnce: We are deploying a 3-tier application with a client connecting...
3
by: Ronald S. Cook | last post by:
We have a VS2005 Team setup and are developing a Windows app (smart client). We are in the cattle feeding business and have 10 distinct feedyards across the U.S. When we wish to deploy an update...
2
by: Jamey McElveen | last post by:
Hello, I would like to use ClickOne but we need to stagger our update process. Currently we are shipping cd's when it is time for an update. We stagger the release in waves of 250 each so our...
2
by: =?Utf-8?B?Sm9obiBC?= | last post by:
A windows forms 2.0 ClickOnce deployment fails when both SSL is enabled and "require client certificate" enabled on the IIS deployment web server. Can anyone assist with how to configure this...
2
by: Michael Kalika | last post by:
Hi, We have developed a VSTO 2005 Excel application and we would like to leverage ClickOnce deployment mechanism for distribution of this application. How can we do that? I was digging in MSDN...
3
by: =?Utf-8?B?S2VuIExlbWlldXg=?= | last post by:
My clickonce app fails when the install button on the publish.htm page is clicked. User is prompted with a "Cannot Start Application" dialog. Details provided from the dialog are: PLATFORM...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.