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

How to schedule ClickOnce application

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
7 9054
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: markoueis | last post by:
Is there any way to embed a ClickOnce Application into the browser? I love the way ClickOnce works, but the problem is I would like it to display the windows form in the browser. I could use a...
5
by: Danny Tuppeny | last post by:
I've been playing around with ClickOnce today, and it's all good stuff. Except, that if I change my application to NOT be full trust (which seems to make very little difference to the user prompt,...
3
by: Asaf | last post by:
Hi, After publishing my test application using ClickOnce with VS.NET 2005 I am getting these warnings: Warning: Could not download 'ClickOnce.application' from… Warning: Could not download...
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: M O J O | last post by:
Hi, I've have searched google, but can't find a solution to my problem. Om my develloper machine, I use one app.config, but when I deploy, I need to deploy another app.config. The reason...
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...
5
by: =?Utf-8?B?R29yZG9uUw==?= | last post by:
I have a windows form application being deployed using ClickOnce on Terminal Services. I am experiencing a problem where by the first user to run up the application is successful and the app...
1
by: Jack | last post by:
Hi there, Apologies if this NG is off-topic but I can't find anything more appropriate (feel free to let me know). I'm looking at ClickOnce as a possible alternative to MSI and have poured...
3
by: =?Utf-8?B?Um9nZXIgVHJhbmNoZXo=?= | last post by:
Hello, I would like to know the best way to install an clickonce in .net 3.5 (we use LINQ 8-D) published application on terminal server 2003 Do I have to install it on EVERY user that will use...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.