TaskCreation.CreateOrUpdate does not work on XP

Oct 5, 2012 at 3:21 PM

I am facing a problem while editing tasks on a XP machine.

While editing a task, i register it using the flag TaskCreation.CreateOrUpdate but after the update find that always a new task gets created (because after updating the task the last run time of the task is displayed as 'Never' in windows task scheduler.)

This flag works properly on Vista and Windows 7.

Any help would be appreciated.

Thanks.

 

Coordinator
Oct 5, 2012 at 4:51 PM

Under V1 of the library (XP and earlier), the CreateOrUpdate flag get interpretted by the library as a pure Save of a file that will not fail if the task already existed. What you're seeing is typical behavior of the V1 library. I don't know of a way to change the results of the LastRunTime property.