Avoiding Windows Task Scheduler task creation - 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!

mabs
Posts: 27
Joined: Tue May 08, 2012 10:04 am

Avoiding Windows Task Scheduler task creation

Hi, people.

I have an AI 9.2 project which once executed, sometimes creates an entry into the \Software\Windows\Current Version\Run registry entry to finish the installation when the computer reboots. This is acceptable.

But sometimes, AI creates a task in the Windows Task Scheduler to do the same action.

Can I avoid this? How?

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

Re: Avoiding Windows Task Scheduler task creation

Hello,
But sometimes, AI creates a task in the Windows Task Scheduler to do the same action. Can I avoid this? How?
For example on Windows 7 OS the scheduled task gets created to perform an elevated reboot. Unfortunately I'm unaware how to disable the behavior.

I'm going to send an e-mail to the developer responsible for this part of the project so he can share some insight. He's currently on vacation but I'll get back to you on this thread after I get an answer.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mabs
Posts: 27
Joined: Tue May 08, 2012 10:04 am

Re: Avoiding Windows Task Scheduler task creation

Ok, thanks a lot.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Avoiding Windows Task Scheduler task creation

Hello,

I discussed the issue with our development team and unfortunately this is the only way to perform an elevated reboot. There's no reason to disable the mechanism because it would mean to suppress the elevated reboot functionality.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mabs
Posts: 27
Joined: Tue May 08, 2012 10:04 am

Re: Avoiding Windows Task Scheduler task creation

Hello.

Thanks a lot for your fast response.

My application installs a lot of files, executes other EXE programs as prerrequisites, installs some font files, registers some ActiveX DLL and EXE files and also registers some .NET components.

The problem I found is when my application is installed, and by my bussiness rules I detected that an automatic repair operation is needed, due to the installation of another application older than the installed application, and which forces the installation and registry of an older ActiveX component in another directory, for example. This is because we are in a complex migration proces affecting eleven applications, and some of them can be not updated from a lot of time and have an old installation strategies and some old components.

Then, sometimes (and only sometimes) a registry entry or a scheduled task is created, but I don't know why! Yes, I can see the LOG file, but I can't find which file or operation produces this behavior, resulting I don't know when and why this occurs.

As I'm (very) sure all files are correctly installed, I whish the application installation don't resumes when the PC is rebooted. It is easiest for me to tell the customer to manually repair if he/she has a registry problem.

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

Re: Avoiding Windows Task Scheduler task creation

Hello,

Can you please send us the project file (.AIP) so we can see your settings? Also, after reboot, how does the installation resume (maintenance, etc.)?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”