Issue with Task running after setup (my trial is ending...) - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

echoDreamz
Posts: 2
Joined: Fri Jan 16, 2009 9:40 pm

Issue with Task running after setup (my trial is ending...)

I created a very very simple setup with 3 files, (1 exe and 2 libraries) and had setup create a user, make it a member of admin group and create a scheduled task based on that user.

Setup completes, task is created correct, everything is right, however when it executes or launches...

"The user account does not have permissions to run this task"

The user has access, its part of the admin group. Now if I delete the task, and recreate it myself manually with the same parameters it works fine.

Now I noticed 2 options not done by default when I manually created the task.

1. Run with highest privileges is checked by installer, but not when I create it.
2. Configure For: is set for 2003, XP and 2000 by the installer, but when I create it, it goes to Server 2008.

What am I missing that is causing this? Does v8 not support Server 2008 scheduled tasks?

Thanks! Hope I can solve this before my trial runs out! (5 days left).
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Issue with Task running after setup (my trial is ending...)

Hello and welcome to the Advanced Installer Forums,
What am I missing that is causing this?
The error occurs because you cannot create an user account and then add a scheduled task based on that user in the same package.
If you add the scheduled task based on an existing user the task will run without any error.
Does v8 not support Server 2008 scheduled tasks?
Yes it does. The "Configure For" option is set to "2003, XP and 2000" because Microsoft changed the scheduled tasks internal mechanism in Windows Vista and Windows Server 2008, so that is a different format.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
echoDreamz
Posts: 2
Joined: Fri Jan 16, 2009 9:40 pm

Re: Issue with Task running after setup (my trial is ending...)

So why offer the option for a scheduled task to use a installer created user if it doesnt work?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Issue with Task running after setup (my trial is ending...)

Hi,
So why offer the option for a scheduled task to use a installer created user if it doesnt work?
It does work, but only under that user account. When running the task from another account it may not work on newer Windows versions. We are aware of this limitation and we will try to avoid it in a future version.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”