|
Hi, Uses: VS.NET 2005; Windows XP Pro; Oracle 91, ODP.NET;
I need my application to be add as a schedule task in Windows XP, however I'm unable to find an application similar to my name, rather it only has a application reference associated with it in the client machine.
How can I add installed application in a schedule task list?
Thanks & Regards,
Hifni Hifni Shahzard Nazeer M. | | _Hifni Tuesday, March 31, 2009 1:29 PM | Microsoft doesn't support the appref-ms files in the startup, so they probably don't support it in the scheduler either. If you want to run the exe file without going through the shortcut, it does not run it as a ClickOnce application, so it won't pick up any updates. What is the point of deploying with ClickOnce at that point?
The ClickOnce application location changes every time it picks up an update. So if you need to know where the exe file is that runs an application, you shouldn't use ClickOnce.
You could do a build, and xcopy the bin folder over to the client machine and run the exe file that way. Or use a setup & deployment package. That seems like a better option for you.
RobinS. GoldMail.com
Ts'i mahnu uterna ot twan ot geifur hingts uto.- Marked As Answer by_Hifni Wednesday, April 01, 2009 1:23 PM
-
| | RobinDotNet Wednesday, April 01, 2009 7:47 AM | Do you mean that you want this to be part of the installation? Or do you just mean in general? This forum is for questions about deploying applications. If you are asking in general, please post back with what language you are using, and I will move your post to the correct forum.
RobinS.
Ts'i mahnu uterna ot twan ot geifur hingts uto. | | RobinDotNet Tuesday, March 31, 2009 5:37 PM | That's not really an install question. You need code that uses the ITaskScheduler interface, such as this: http://www.codeproject.com/KB/system/taskscheduler.aspxThe installed application could do this once it's installed -you haven't said what kind of setup you're using.
Phil Wilson | | PhilWilson Tuesday, March 31, 2009 7:01 PM | Hi all,
Thanks for the replies. In my problem context, the ClickOnce deployment has no issues at all. I can install it on any client computers and its working fine. There is one client computer, which I need this application to run at a particular time. So I need to add it into a schedule. Soto aid with it I used Windows XP's schedule task,(I went to Start Menu > All Program > Accessories > System Tools > Schedule Task) and tried to add a task to this application, but I could not find a proper folder in Program Files neither I could find a proper executable file to assign to it. I able to find only an "Application Reference" (kind of a shortcut)
My question is how can I install all related files (executables...etc) to client rather only having an application reference, so it would be easier to add that executable to the scheduletask list.
This not a question in the language, but in the deployment area. Anyway for your information, I'm using C#.net.
Thanks & Regards,
Hifni Shahzard Nazeer M. | | _Hifni Wednesday, April 01, 2009 5:11 AM | Microsoft doesn't support the appref-ms files in the startup, so they probably don't support it in the scheduler either. If you want to run the exe file without going through the shortcut, it does not run it as a ClickOnce application, so it won't pick up any updates. What is the point of deploying with ClickOnce at that point?
The ClickOnce application location changes every time it picks up an update. So if you need to know where the exe file is that runs an application, you shouldn't use ClickOnce.
You could do a build, and xcopy the bin folder over to the client machine and run the exe file that way. Or use a setup & deployment package. That seems like a better option for you.
RobinS. GoldMail.com
Ts'i mahnu uterna ot twan ot geifur hingts uto.- Marked As Answer by_Hifni Wednesday, April 01, 2009 1:23 PM
-
| | RobinDotNet Wednesday, April 01, 2009 7:47 AM |
|