By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,926 Members | 1,397 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,926 IT Pros & Developers. It's quick & easy.

How to schedule ClickOnce application

P: n/a
Hello Gurus,

Is it possible to schedule a task to run an application deployed using
ClickOnce? The executable changes location with each update.. and if i
were to run the executable directly, it's not considered as a network
deployed application and it's not able to use any of the update
features programatically.. any ideas? workarounds?

thank you,

Dec 5 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Hi,

Add a task in Windows Task Scheduler that runs the shortcut file installed
in the Start menu. If you've configured the ClickOnce installation to not
place a shortcut in the Start menu, you can give the clients one that is
configured properly and they can place it wherever they'd like. To see what
a valid shortcut should look like, install the application with a shortcut
and open it up to take a peek.

--
Dave Sexton

<hg****@gmail.comwrote in message
news:11**********************@80g2000cwy.googlegro ups.com...
Hello Gurus,

Is it possible to schedule a task to run an application deployed using
ClickOnce? The executable changes location with each update.. and if i
were to run the executable directly, it's not considered as a network
deployed application and it's not able to use any of the update
features programatically.. any ideas? workarounds?

thank you,

Dec 5 '06 #2

P: n/a
thank you for the Response Dave..
when creating the schedule, i browsed to the folder that contains the
shortcut created during the installation.. it was in
C:\Documents and Settings\UserName\Start
Menu\Programs\CompanyName\ProgramName

ProgramName is of type 'Application Reference' and when i select to add
it in task scheduler, and the time comes to run it, Fox Pro is opened
instead of my application with some invalid command error message.. if
i type the ProgramName from DOS, my application starts.. i tried
creating a shortcut of ProgramName to add that to the task scheduler,
but that did not work iether. the shortcut created is invalid.. the
problem with ClickOnce app is the shortcuts do not point to the
executable.. this is how it looks like

http://www.url.com/ProgramName.appli...me.application,
Culture=neutral, PublicKeyToken=c515623d4a1d07cb,
processorArchitecture=msil

Dave Sexton wrote:
Hi,

Add a task in Windows Task Scheduler that runs the shortcut file installed
in the Start menu. If you've configured the ClickOnce installation to not
place a shortcut in the Start menu, you can give the clients one that is
configured properly and they can place it wherever they'd like. To see what
a valid shortcut should look like, install the application with a shortcut
and open it up to take a peek.

--
Dave Sexton

<hg****@gmail.comwrote in message
news:11**********************@80g2000cwy.googlegro ups.com...
Hello Gurus,

Is it possible to schedule a task to run an application deployed using
ClickOnce? The executable changes location with each update.. and if i
were to run the executable directly, it's not considered as a network
deployed application and it's not able to use any of the update
features programatically.. any ideas? workarounds?

thank you,
Dec 5 '06 #3

P: n/a
Hi,

It works fine for me (XP SP2). Make sure you browse to the shortcut in the
Schedule Task Wizard by clicking the Browse button.

--
Dave Sexton

<hg****@gmail.comwrote in message
news:11**********************@j44g2000cwa.googlegr oups.com...
thank you for the Response Dave..
when creating the schedule, i browsed to the folder that contains the
shortcut created during the installation.. it was in
C:\Documents and Settings\UserName\Start
Menu\Programs\CompanyName\ProgramName

ProgramName is of type 'Application Reference' and when i select to add
it in task scheduler, and the time comes to run it, Fox Pro is opened
instead of my application with some invalid command error message.. if
i type the ProgramName from DOS, my application starts.. i tried
creating a shortcut of ProgramName to add that to the task scheduler,
but that did not work iether. the shortcut created is invalid.. the
problem with ClickOnce app is the shortcuts do not point to the
executable.. this is how it looks like

http://www.url.com/ProgramName.appli...me.application,
Culture=neutral, PublicKeyToken=c515623d4a1d07cb,
processorArchitecture=msil

Dave Sexton wrote:
>Hi,

Add a task in Windows Task Scheduler that runs the shortcut file
installed
in the Start menu. If you've configured the ClickOnce installation to
not
place a shortcut in the Start menu, you can give the clients one that is
configured properly and they can place it wherever they'd like. To see
what
a valid shortcut should look like, install the application with a
shortcut
and open it up to take a peek.

--
Dave Sexton

<hg****@gmail.comwrote in message
news:11**********************@80g2000cwy.googlegr oups.com...
Hello Gurus,

Is it possible to schedule a task to run an application deployed using
ClickOnce? The executable changes location with each update.. and if i
were to run the executable directly, it's not considered as a network
deployed application and it's not able to use any of the update
features programatically.. any ideas? workarounds?

thank you,

Dec 5 '06 #4

P: n/a
Hi

I think instead of configuring a shortcut, you should browse for the
installed program.

All that sheduled taks does is Run the exe from a location... exe could
be at a network location, in which case credential of the source should
be provided...

Hope this will solve the issue..

Thanks
-Srinivas.
hg****@gmail.com wrote:
Hello Gurus,

Is it possible to schedule a task to run an application deployed using
ClickOnce? The executable changes location with each update.. and if i
were to run the executable directly, it's not considered as a network
deployed application and it's not able to use any of the update
features programatically.. any ideas? workarounds?

thank you,
Dec 5 '06 #5

P: n/a
Hi,

But the OP specifically stated that the "executable changes location with
each update", which I assumed to mean that the deployment manifest location
changes as well, but I could have been wrong.

If the deployment manifest will remain in the same location for subsequent
versions, then pointing to the manifest instead should do the trick.

--
Dave Sexton

"Duggi" <Du***************@gmail.comwrote in message
news:11**********************@f1g2000cwa.googlegro ups.com...
Hi

I think instead of configuring a shortcut, you should browse for the
installed program.

All that sheduled taks does is Run the exe from a location... exe could
be at a network location, in which case credential of the source should
be provided...

Hope this will solve the issue..

Thanks
-Srinivas.
hg****@gmail.com wrote:
>Hello Gurus,

Is it possible to schedule a task to run an application deployed using
ClickOnce? The executable changes location with each update.. and if i
were to run the executable directly, it's not considered as a network
deployed application and it's not able to use any of the update
features programatically.. any ideas? workarounds?

thank you,

Dec 5 '06 #6

P: n/a
Like Dave said, the executables change location with each update, so
executing directly the executable will not work, because after a couple
of upgrades, that executable is no longer exist.. i had a work around
where i change the schedule after each update programatically, but that
is also not helpfull if the schedule runs before the application
updates the location.. ALSO if you execute the executable directy, you
can no longer use the ClickOnce feature to upgrade because the
deployment type is no longer Networked. you have to exectute it using
the url method.. unless there is a way to force it that i am not aware
off..

What is wiered is that i have the same config as Dave and still not
able to schedule.. could it be that you don't have FoxPro installed on
your machine.. i will try it on a separate computer where foxpro is not
installed.

thank you,

On Dec 5, 4:54 am, "Dave Sexton" <dave@jwa[remove.this]online.com>
wrote:
Hi,

But the OP specifically stated that the "executable changes location with
each update", which I assumed to mean that the deployment manifest location
changes as well, but I could have been wrong.

If the deployment manifest will remain in the same location for subsequent
versions, then pointing to the manifest instead should do the trick.

--
Dave Sexton

"Duggi" <DuggiSrinivasa...@gmail.comwrote in messagenews:11**********************@f1g2000cwa.go oglegroups.com...
Hi
I think instead of configuring a shortcut, you should browse for the
installed program.
All that sheduled taks does is Run the exe from a location... exe could
be at a network location, in which case credential of the source should
be provided...
Hope this will solve the issue..
Thanks
-Srinivas.
hgi...@gmail.com wrote:
Hello Gurus,
Is it possible to schedule a task to run an application deployed using
ClickOnce? The executable changes location with each update.. and if i
were to run the executable directly, it's not considered as a network
deployed application and it's not able to use any of the update
features programatically.. any ideas? workarounds?
thank you,- Hide quoted text -- Show quoted text -
Dec 5 '06 #7

P: n/a
yes, FoxPro was the problem, i was able to schedule and run it on a
diffrent machine w/o FoxPro on it and worked.. i will just go with
regular deployment and write my own routine to upgrade.. ClickOnce is
not mature enough just yet...
On Dec 5, 9:28 am, "hgi...@gmail.com" <hgi...@gmail.comwrote:
Like Dave said, the executables change location with each update, so
executing directly the executable will not work, because after a couple
of upgrades, that executable is no longer exist.. i had a work around
where i change the schedule after each update programatically, but that
is also not helpfull if the schedule runs before the application
updates the location.. ALSO if you execute the executable directy, you
can no longer use the ClickOnce feature to upgrade because the
deployment type is no longer Networked. you have to exectute it using
the url method.. unless there is a way to force it that i am not aware
off..

What is wiered is that i have the same config as Dave and still not
able to schedule.. could it be that you don't have FoxPro installed on
your machine.. i will try it on a separate computer where foxpro is not
installed.

thank you,

On Dec 5, 4:54 am, "Dave Sexton" <dave@jwa[remove.this]online.com>
wrote:
Hi,
But the OP specifically stated that the "executable changes location with
each update", which I assumed to mean that the deployment manifest location
changes as well, but I could have been wrong.
If the deployment manifest will remain in the same location for subsequent
versions, then pointing to the manifest instead should do the trick.
--
Dave Sexton
"Duggi" <DuggiSrinivasa...@gmail.comwrote in messagenews:11**********************@f1g2000cwa.go oglegroups.com...
Hi
I think instead of configuring a shortcut, you should browse for the
installed program.
All that sheduled taks does is Run the exe from a location... exe could
be at a network location, in which case credential of the source should
be provided...
Hope this will solve the issue..
Thanks
-Srinivas.
hgi...@gmail.com wrote:
>Hello Gurus,
>Is it possible to schedule a task to run an application deployed using
>ClickOnce? The executable changes location with each update.. and if i
>were to run the executable directly, it's not considered as a network
>deployed application and it's not able to use any of the update
>features programatically.. any ideas? workarounds?
>thank you,- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -
Dec 5 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.