Re: ClickOnce local cache with no shortcut in the start menu
- From: Rui <Rui@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 5 Mar 2009 05:40:10 -0800
Miro,
Found a way to start the download and excute the application using the URL.
I use the InPlaceHostingManager class to download the app and start it using
the ActivationContext object return when I get the nanifest using
GetManifestAsync().
the question is : How do I start the local cached version if the URL is down
and I dont have the .appref-ms file because I dont have a shortcut?
Can you help
"Rui" wrote:
Miro,.
Can we have the .appref-ms file without the shortcut on the users start
menu? I want the user to start the applications using my application.
basically, I want to run the http:// .application file to install it for the
first time. But, without the shortucut in the start menu. So the user can
only start the application using my application.
"Miro" wrote:
Still possible
Do you know what the "list" of applications are?
Lets say you create a form of 5 option buttons.
and 2 command buttons... "ok / cancel"
the 5 option boxes are the list of programs...
You click "ok" after a selection is made.
You see if the .appref-ms shortcut exists... run that, ( basically always
the users own shortcut ). That way its local, and the url is not required.
(this is assuming this shortcut / clickonce app is a clickonce app that is
configured to be able to run offline as well as online).
if not, run the http:// .application file to install it for the first time.
If the internet is not available... you can show the option but set the
"enabled" to false.
This check can happen "on load" to see what options are available or not...
but it all comes down to - and im assuming you do - you know the application
list prior to?
Miro
"Rui" <Rui@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:631523E9-B457-4233-94FA-823F06821F82@xxxxxxxxxxxxxxxx
Almost... Thanks Miro.
Here’s the scenario:-
Create an application that gets installed on the user’s desktop and
displays
icons for applications the users has permissions for (ClickOnce
applications).
User clicks on an icon and the code behind executes the .application file
(using the code below):
Dim StringPath2 as string = "http:// somewhere/AnotherApp.application"
Process.start( StringPath2 )
This only appears to work if the url is available. I need it to work
offline
without the shortcut in the start menu.
The firt time the user clicks on the icon it should download the
application
locally and only use the URL for updates.
"Miro" wrote:
I dont see why you would not be able to "run" the .Application file from
another program that would launch the program / install.
Let me see if I follow what you are attempting:
Create a HelloWorld Click Once App.
Point the 1 icon to Helloworld on the users machine. ( the clickonce
install
should do this ).
On Hellworld FormLoad, execute another file on the network ( this file
should be the .Application file of another clickonce app. )
Your other option, is that you can directly hit the exe on the other
applications in clickonce.
With clickonce the start menu shortcuts are under the users profile with
a
file extention .appref-ms
(these files do not show up in windows explorer).
<written in notepad>
Example:
c:\documents and settings\MiroBeero\Start
Menu\programs\software\Company\HelloWorldSample.appref-ms
So you technically could see if that path exists and run it as well.
Dim stringpath as string = "above example"
Process.start(stringpath)
or change the path to the .application file.
Dim StringPath2 as string = "http:// somewhere/AnotherApp.application"
and Process.start( StringPath2 )
Is that what you are looking for?
Miro
"Rui" <Rui@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:912B8684-8573-4AAC-BFB6-D2AB7B92648E@xxxxxxxxxxxxxxxx
Can I create an application that runs/downloads other clickonce
applications?
instead of having the shortcut in the start menu... can I use
ApplicationDeployment to start other ClickOnce applications?
"Miro" wrote:
You can manually code your software to go check for updates after it
is
loaded.
( Not the automatic one ).
It is at this point I would try both URL's.
I remember a chapter about doing a click once check update manually in
this
book:
http://www.amazon.ca/Smart-Client-Deployment-ClickOnce-Applications/dp/0321197690
This article might help you out as well.
http://bloggingabout.net/blogs/dennis/archive/2007/11/05/manual-check-for-updates-with-clickonce.aspx
Miro
"Rui" <Rui@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6FF2A831-7F6F-4211-902E-3AE9CFF5E896@xxxxxxxxxxxxxxxx
Can I install a clickonce application locally without a shortcut in
the
start
menu?
I have an application that allows the user to launch the
TestClient.application file from a local folder, with the codebase
property
pointing to the IIS deployment server (e.g.
http://servername:8081/clickonce/TestClient.application).
I would like ClickOnce to try the remote url first (and check for
updates)
but use the local cache if the remote server is not available.
The local cache gets created when the user runs
TestClient.application
but
the launch fails if the IIS server is down.
- Follow-Ups:
- References:
- ClickOnce local cache with no shortcut in the start menu
- From: Rui
- Re: ClickOnce local cache with no shortcut in the start menu
- From: Miro
- Re: ClickOnce local cache with no shortcut in the start menu
- From: Rui
- Re: ClickOnce local cache with no shortcut in the start menu
- From: Miro
- Re: ClickOnce local cache with no shortcut in the start menu
- From: Rui
- Re: ClickOnce local cache with no shortcut in the start menu
- From: Miro
- Re: ClickOnce local cache with no shortcut in the start menu
- From: Rui
- ClickOnce local cache with no shortcut in the start menu
- Prev by Date: Re: IOException - How to gain file name?
- Next by Date: error 1722
- Previous by thread: Re: ClickOnce local cache with no shortcut in the start menu
- Next by thread: Re: ClickOnce local cache with no shortcut in the start menu
- Index(es):
Loading