473,736 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9096
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.c omwrote in message
news:11******** **************@ 80g2000cwy.goog legroups.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\UserNa me\Start
Menu\Programs\C ompanyName\Prog ramName

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= c515623d4a1d07c b,
processorArchit ecture=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.c omwrote in message
news:11******** **************@ 80g2000cwy.goog legroups.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.c omwrote in message
news:11******** **************@ j44g2000cwa.goo glegroups.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\UserNa me\Start
Menu\Programs\C ompanyName\Prog ramName

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= c515623d4a1d07c b,
processorArchit ecture=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.goo glegroups.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.co m 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.comwr ote in message
news:11******** **************@ f1g2000cwa.goog legroups.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.co m 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.comwr ote in messagenews:11* *************** ******@f1g2000c wa.googlegroups .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.co m 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.c om" <hgi...@gmail.c omwrote:
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.comwr ote in messagenews:11* *************** ******@f1g2000c wa.googlegroups .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.co m 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
3181
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 simple embedded dll, but then i lose the trust prompt that ClickOnce offers. Any ideas? Mark
5
5248
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, which scares me!) but to be installed on the start menu, it seems I don't have permission to call CheckForUpdate()! I understand that if I'm not a full trust app, I can't read the filesystem etc., but not being able to update myself seems a bit...
3
4549
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 'ClickOnce_1_0_0_3.application' from… Warning: Could not download 'ClickOnce_1_0_0_3/ClickOnce.exe.config.deploy' from… Warning: Could not download 'ClickOnce_1_0_0_3/ClickOnce.exe.deploy' from…
11
14668
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 application folder was set to 'Allow scripts only', I get an error: Failed to connect to 'http://192.168.0.5/TransAct/' with the following error:
1
8779
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 is, that on my develloper machine, my app.config sqlconnection is pointing to my (local) database and I have several settings like "Debug=True", but when I deploy (using ClickOnce), I need to use an
2
2740
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 to web services, which then connect to a database. The tiers are all on different nodes and we have around 1000 client users. We currently deploy the web services with Wise and adjust the database (cluster) manually. The clients should be...
5
5783
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 downloads and launches successfuly, however if a second user logs on to terminal services and attempts to launch the app then the "Verifying applications. This may take a few moments" message does appear briefly and then disappears but no...
1
1936
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 through much of the docs trying to figure out how to customize my app's install if possible. In my deployment scenario users will be downloading the app from my web site in WYSIWYG fashion but I'm stuck on the following issues: 1) I need to prompt...
3
5320
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 it ? If so, all the files will be duplicated for every user ? in wich folder ? If not, where will reside the application on the server ? how to make a shortcut for the main "executable" for all the users pointing to that ?
0
8965
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8786
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9466
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9255
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9202
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6050
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4823
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3278
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.