How to add ClickOnce in Vista TaskScheduler?

This should be a duplicate question, but I can not find the answer. I want to add a task to the Vista Task Scheduler, which launches my installed ClickOnce program. As far as I understand, the .exe application is hidden? Therefore, I tried to enter a shortcut on the desktop as an element that needs to be launched on the "Action" tab. But that does not work. I am getting an error indicating that the shortcut is not a valid win32 application.

Now what?

+5
source share
4 answers
+2

Windows 7 , ...

: "cmd.exe" "/c path_to_prgm.appref-ms". , Vista, XP. cmd , appref-ms, , .

+3

ClickOnce C:\Documents and Settings\*\Local Settings\Apps\2.0\ ( XP. , , Vista ). , , .

, ClickOnce, , , , , , , , ( , ).

If it is regular planning, then you will have problems. If this is one time, then perhaps a search in the application cache may produce results. If you want regular planning, I think you will find that it will be infinitely easier to use a different distribution mechanism.

+2
source

Create a batch file with the following options and plan to run the batch file

"rundll32.exe dfshim.dll, ShOpenVerbShortcut"

0
source

All Articles