jafa
Posts: 51
Joined: Fri Feb 23, 2007 7:13 pm

Access denied creating updater scheduled task

Thu Mar 24, 2011 8:35 am

Hi,

When I enabled the "run updater as a windows scheduled task feature" the installation fails on Windows 7 with the following message:
"An error was encountered while creating a scheduled task: '<name of job>'. Error description: Access is denied."

Windows 7 x64
Advanced Installer version 6.7.1

The user account is set to "[ComputerName]\[LogonUser]"
I get the same error with "[%UserDomain]\[LogonUser]"

Nick

mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Access denied creating updater scheduled task

Thu Mar 24, 2011 10:24 am

Hi Nick,

Can you please send us the .AIP (project) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

themuffinman
Posts: 7
Joined: Mon Feb 03, 2020 2:48 am

Re: Access denied creating updater scheduled task

Wed May 19, 2021 9:48 pm

I'm running into this same issue. My installation type is Per User and admin privileges are not requested. Do I need to have admin privileges to create a scheduled task? If so how do you setup updates when you don't have it?

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Access denied creating updater scheduled task

Thu May 20, 2021 7:07 pm

Hello,
Do I need to have admin privileges to create a scheduled task?
In order to create a scheduled task, the user must indeed be an administrator/administrator rights must be provided.

If you want to handle updates without elevation, please refer to the following article:

How to handle updates without elevation

Please note, however, that this option is only available for projects which have the "Per-machine only" installation type, as stated in the article:
This article is only for projects that already have "Per machine only (fails if the user is not administrator)" installation type, set from the Install Parameters.
Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

fede071
Posts: 19
Joined: Tue May 31, 2022 11:04 pm

Re: Access denied creating updater scheduled task

Thu Dec 01, 2022 1:43 pm

Hello,

I have the "Per-machine if user is administrator, per user otherwise" and a scheduled task for the updater. Is there a way to ignore the scheduled task if the user is not an admin without showing the error message "an error was encountered while creating a scheduled task ..."?

Thank you in advance
Federica

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Access denied creating updater scheduled task

Fri Dec 02, 2022 10:11 am

Hello Federica,

In order to achieve this, you can use condition the Scheduled Task creation.

Right click on your scheduled task --> Properties --> Install condition option. Here you can add the AI_DETECTED_ADMIN_USER or AI_DETECTED_PRIVILEGED condition.
admin.png
admin.png (79.24KiB)Viewed 2915 times

Hope this helps! If you have any other questions, please don’t hesitate to contact us.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”