I'm experiencing two related issues with scheduled task creation and execution in my Advanced Installer project, and I would appreciate any guidance.
Issue 1: Intermittent Installation Error - Scheduled Task Creation
After successfully building my installer, I occasionally encounter an error during installation (see Image 1). The error message states:
"An error was encountered while creating a scheduled task: 'file-security-updater-scheduler.job'. Error description: Görev XML'sinde gerekli bir öğe veya öznitelik eksik."
(Translation: "A required element or attribute is missing in the task XML.")
Key observations:
This error appears inconsistently - sometimes the installation completes successfully, other times it fails
When I rebuild the installer without any changes, the error may or may not appear
The intermittent nature makes it difficult to diagnose
Issue 2: Updater Fails to Execute via Task Scheduler on Some Machines
When the updater feature is enabled, I've observed that on certain computers, the scheduled task is created but fails to execute properly (see Images 2 & 3). The Task Scheduler shows:
Task status: "Çalışıyor" (Running)
Last run result: "İşletmen veya yönetici isteği reddetti. (0x80070E0)"
(Translation: "The operator or administrator has refused the request")
Error code: 0x80070E0 and 0x80071E0
Environment:
Installer created with Advanced Installer
Target OS: Windows (various versions)
Task is scheduled to run daily at 03:00
Questions:
- What could cause the intermittent XML validation error during scheduled task creation?
Is there a specific configuration in Advanced Installer that ensures the task XML is always properly formed?
Why would the scheduled task fail with error 0x80070E0 on some machines but work correctly on others?
Are there any permission or privilege settings I should verify for the scheduled task?
I'm experiencing two related issues with scheduled task creation and execution in my Advanced Installer project, and I would appreciate any guidance.
Issue 1: Intermittent Installation Error - Scheduled Task Creation
After successfully building my installer, I occasionally encounter an error during installation (see Image 1). The error message states:
"An error was encountered while creating a scheduled task: 'file-security-updater-scheduler.job'. Error description: Görev XML'sinde gerekli bir öğe veya öznitelik eksik."
(Translation: "A required element or attribute is missing in the task XML.")
Key observations:
This error appears inconsistently - sometimes the installation completes successfully, other times it fails
When I rebuild the installer without any changes, the error may or may not appear
The intermittent nature makes it difficult to diagnose
Issue 2: Updater Fails to Execute via Task Scheduler on Some Machines
When the updater feature is enabled, I've observed that on certain computers, the scheduled task is created but fails to execute properly (see Images 2 & 3). The Task Scheduler shows:
Task status: "Çalışıyor" (Running)
Last run result: "İşletmen veya yönetici isteği reddetti. (0x80070E0)"
(Translation: "The operator or administrator has refused the request")
Error code: 0x80070E0 and 0x80071E0
Environment:
Installer created with Advanced Installer
Target OS: Windows (various versions)
Task is scheduled to run daily at 03:00
Questions:
What could cause the intermittent XML validation error during scheduled task creation?
Is there a specific configuration in Advanced Installer that ensures the task XML is always properly formed?
Why would the scheduled task fail with error 0x80070E0 on some machines but work correctly on others?
Are there any permission or privilege settings I should verify for the scheduled task?
Any insights or suggestions would be greatly appreciated. Thank you!