Error while creating scheduled task - 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!

valiot
Posts: 80
Joined: Tue Dec 04, 2012 1:41 am

Error while creating scheduled task

My installer is a 32bit installer. Not sure if this matters. I'm installing a scheduled task as part of my install.
Recently a user received this error message while installing on a 64bit system:
original.gif
original.gif (25.06 KiB) Viewed 8244 times
Any idea what I'm doing wrong?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error while creating scheduled task

Hello,

I'm not sure why this happens. Can you attach a sample project which reproduces the behavior or a step by step test case scenario so we can try to reproduce and investigate this? Also, can you please tell us what is your target machine software configuration (i.e. Windows version, service pack, Windows Installer version, OS language)?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
valiot
Posts: 80
Joined: Tue Dec 04, 2012 1:41 am

Re: Error while creating scheduled task

This happened on: Win7 64. My app is 32bit app. This also happened on Win8 Pro x64. English OS in both cases.
I'll attach my aip file offline through email support.

This was on a customer machine so it's hard to get more info. I cannot reproduce it myself, but the customer can reproduce it on both system types indicated above.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Error while creating scheduled task

Hi,

We did some digging and were able to reproduce the problem. This happens because of the API used by Windows Installer to create the scheduled task. You can change that API from "Task" tab when editing the task in Advanced Installer,
just select "Windows Vista, Windows 7" for the task.

If you want the task to also be created on older OS-es you need to add a new identical task in the list, and for both of your tasks you need to set the "Install Condition" field so only one gets installed. The following article explains how to create your OS dependent condition.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
valiot
Posts: 80
Joined: Tue Dec 04, 2012 1:41 am

Re: Error while creating scheduled task

Hmm, I tried this configuration but it didn't solve the problem. This is related to the task scheduled for the updater if that makes a difference.
valiot
Posts: 80
Joined: Tue Dec 04, 2012 1:41 am

Re: Error while creating scheduled task

Also, I'm trying to reproduce this issue on a virgin Win8 machine but cannot. So I don't see how this error is happening. Is it related to the Windows Installer version?
valiot
Posts: 80
Joined: Tue Dec 04, 2012 1:41 am

Re: Error while creating scheduled task

Also for OS version check. If I want to run the task only on vista and greater systems should I use the following? VersionNT >= 600
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error while creating scheduled task

Hello,
Hmm, I tried this configuration but it didn't solve the problem. This is related to the task scheduled for the updater if that makes a difference.
We've tested the scenario, but we are not able to reproduce the behavior using a task configured for "Windows Vista, Windows 7". Did you reproduce the related behavior using a task configured for "Windows Vista, Windows 7"? If so, can you isolate this in a sample project and send it us so we can investigate?
Also for OS version check. If I want to run the task only on vista and greater systems should I use the following? VersionNT >= 600
Yes, if you want to install it only on vista and greater OSs you should use this condition:
  • VersionNT >= 600
All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”