Home All Groups Group Topic Archive Search About

Questions about clickOnce

Author
1 May 2007 9:53 AM
Irfan
hi,

I have couple of questions about clickonce again,

I am publishing a Winform appplication using ClickOnce. In the 'Publishing
Location' text box I input the directory name
(C:\CLICKONCE\Test2\). In the 'Installation URL' what shall i input. Why do
i need to input a URL when it is
simple Winform Application.


Question2:
When I publish a new  version, The client should be prompted about the new
version and it should run that instead of old one.
It doesnt do it in my case, even though 'Application Should check for
updates' is ON.


Thanks in Advance

irfan

Author
1 May 2007 10:37 AM
Rory Becker
> I am publishing a Winform appplication using ClickOnce. In the
> 'Publishing
> Location' text box I input the directory name
> (C:\CLICKONCE\Test2\). In the 'Installation URL' what shall i input.
> Why do
> i need to input a URL when it is
> simple Winform Application.

Click once is all about deployment through a web interface. If you don't
specify a web location to deploy to then it doesn't work.

Note that a local web server is also a valid "web location"

> Question2:
> When I publish a new  version, The client should be prompted about the
> new
> version and it should run that instead of old one.
> It doesnt do it in my case, even though 'Application Should check for
> updates' is ON.

If you're not deploying to a web location then you're likely directly launching
the exe.
This is not the way click once is designed to work.

Once working properly, the user visit's your web page once and clicks a link
which triggers the download and installation of the program
This causes a special shortcut to be added to the startmenu which triggers
special behavior which checks each time loaded to make sure the latest version
is present before loading.

This is a very rough outline of the process, but as you can see, the web
aspect is important to the process.

--
Rory
Author
1 May 2007 2:38 PM
Rad [Visual C# MVP]
On Tue, 1 May 2007 10:37:07 +0000 (UTC), Rory Becker wrote:

Show quote
>> I am publishing a Winform appplication using ClickOnce. In the
>> 'Publishing
>> Location' text box I input the directory name
>> (C:\CLICKONCE\Test2\). In the 'Installation URL' what shall i input.
>> Why do
>> i need to input a URL when it is
>> simple Winform Application.
>
> Click once is all about deployment through a web interface. If you don't
> specify a web location to deploy to then it doesn't work.
>
> Note that a local web server is also a valid "web location"
>
>> Question2:
>> When I publish a new  version, The client should be prompted about the
>> new
>> version and it should run that instead of old one.
>> It doesnt do it in my case, even though 'Application Should check for
>> updates' is ON.
>
> If you're not deploying to a web location then you're likely directly launching
> the exe.
> This is not the way click once is designed to work.
>
> Once working properly, the user visit's your web page once and clicks a link
> which triggers the download and installation of the program
> This causes a special shortcut to be added to the startmenu which triggers
> special behavior which checks each time loaded to make sure the latest version
> is present before loading.
>
> This is a very rough outline of the process, but as you can see, the web
> aspect is important to the process.

Not 100% true -- you can also deploy click once from a folder share. It
does not have to be a web location
Author
1 May 2007 4:22 PM
Irfan
thanks for the replies, though i am still struggling as i am not able to
achieve the update aspect:


I created a  project, My Publish Location is C://ClickOnceTest and my
InstallationLocation is http://localhost/.
Everything works fine as long as I test it on my computer. But I am not able
to inderstand what files do i need
to send to the client to install it to their computer, assuming their is no
Internet Connection at his end.

Irfan







Show quote
"Rad [Visual C# MVP]" <nospam@nospam.com> wrote in message
news:jqh5jgxsqf05.dlg@thinkersroom.com...
> On Tue, 1 May 2007 10:37:07 +0000 (UTC), Rory Becker wrote:
>
>>> I am publishing a Winform appplication using ClickOnce. In the
>>> 'Publishing
>>> Location' text box I input the directory name
>>> (C:\CLICKONCE\Test2\). In the 'Installation URL' what shall i input.
>>> Why do
>>> i need to input a URL when it is
>>> simple Winform Application.
>>
>> Click once is all about deployment through a web interface. If you don't
>> specify a web location to deploy to then it doesn't work.
>>
>> Note that a local web server is also a valid "web location"
>>
>>> Question2:
>>> When I publish a new  version, The client should be prompted about the
>>> new
>>> version and it should run that instead of old one.
>>> It doesnt do it in my case, even though 'Application Should check for
>>> updates' is ON.
>>
>> If you're not deploying to a web location then you're likely directly
>> launching
>> the exe.
>> This is not the way click once is designed to work.
>>
>> Once working properly, the user visit's your web page once and clicks a
>> link
>> which triggers the download and installation of the program
>> This causes a special shortcut to be added to the startmenu which
>> triggers
>> special behavior which checks each time loaded to make sure the latest
>> version
>> is present before loading.
>>
>> This is a very rough outline of the process, but as you can see, the web
>> aspect is important to the process.
>
> Not 100% true -- you can also deploy click once from a folder share. It
> does not have to be a web location
> --
> Bits.Bytes
> http://bytes.thinkersroom.com
Author
1 May 2007 4:49 PM
Rory Becker
> thanks for the replies, though i am still struggling as i am not able
> to achieve the update aspect:
>
> I created a  project, My Publish Location is C://ClickOnceTest and my
> InstallationLocation is http://localhost/.
> Everything works fine as long as I test it on my computer. But I am
> not able
> to inderstand what files do i need
> to send to the client to install it to their computer, assuming their
> is no
> Internet Connection at his end.

Sorry Infran.. whilst I was a little incomplete in my answer before, I think
you'll find that click once is not a replacement for all installer technology
and is intended to be a http / UNC deployment tech.

This basically means that whomever has your program needs to have a connection
to the location that you publich the app to.

This means Internet, Intranet or LAN/WAN

It sounds like what you need is a CD installation.

--
Rory
Author
1 May 2007 5:23 PM
Rory Becker
> This basically means that whomever has your program needs to have a
> connection to the location that you publich the app to.

I should say here that this connection does not always have to be available.
It is mearely the means by which said user would perform their update.

However (I think) you can insist that the program check every time.

--
Rory
Author
2 May 2007 8:35 AM
Irfan
Many thanks Rory for the info,

Once last thing, How can i add additional files during the deployment, ie,
Excel Database

irfan



Show quote
"Rory Becker" <RoryBecker@newsgroup.nospam> wrote in message
news:b0ac48a0aa268c95a350357b780@msnews.microsoft.com...
>> This basically means that whomever has your program needs to have a
>> connection to the location that you publich the app to.
>
> I should say here that this connection does not always have to be
> available. It is mearely the means by which said user would perform their
> update.
>
> However (I think) you can insist that the program check every time.
>
> --
> Rory
>
>
Author
2 May 2007 3:28 PM
RobinS
They have to be imbedded in VisualStudio in order to include them in the
deployment.   Check out Brian Noyes' book about ClickOnce deployment; he
has an entire chapter about this very thing. Too long to tell you how to do
it in a posting.

Robin S.
---------------------------
Show quote
"Irfan" <ir***@asc-ltd.co.uk> wrote in message
news:u3I0lTJjHHA.392@TK2MSFTNGP06.phx.gbl...
> Many thanks Rory for the info,
>
> Once last thing, How can i add additional files during the deployment,
> ie, Excel Database
>
> irfan
>
>
>
> "Rory Becker" <RoryBecker@newsgroup.nospam> wrote in message
> news:b0ac48a0aa268c95a350357b780@msnews.microsoft.com...
>>> This basically means that whomever has your program needs to have a
>>> connection to the location that you publich the app to.
>>
>> I should say here that this connection does not always have to be
>> available. It is mearely the means by which said user would perform
>> their update.
>>
>> However (I think) you can insist that the program check every time.
>>
>> --
>> Rory
>>
>>
>
>
Author
3 May 2007 8:46 AM
Irfan
thanks for the right direction


Show quote
"RobinS" <RobinS@NoSpam.yah.none> wrote in message
news:6oWdnfvkZJKXM6XbnZ2dnUVZ_oipnZ2d@comcast.com...
> They have to be imbedded in VisualStudio in order to include them in the
> deployment.   Check out Brian Noyes' book about ClickOnce deployment; he
> has an entire chapter about this very thing. Too long to tell you how to
> do it in a posting.
>
> Robin S.
> ---------------------------
> "Irfan" <ir***@asc-ltd.co.uk> wrote in message
> news:u3I0lTJjHHA.392@TK2MSFTNGP06.phx.gbl...
>> Many thanks Rory for the info,
>>
>> Once last thing, How can i add additional files during the deployment,
>> ie, Excel Database
>>
>> irfan
>>
>>
>>
>> "Rory Becker" <RoryBecker@newsgroup.nospam> wrote in message
>> news:b0ac48a0aa268c95a350357b780@msnews.microsoft.com...
>>>> This basically means that whomever has your program needs to have a
>>>> connection to the location that you publich the app to.
>>>
>>> I should say here that this connection does not always have to be
>>> available. It is mearely the means by which said user would perform
>>> their update.
>>>
>>> However (I think) you can insist that the program check every time.
>>>
>>> --
>>> Rory
>>>
>>>
>>
>>
>
>

AddThis Social Bookmark Button