sstrader
Posts: 11
Joined: Mon Dec 04, 2017 1:50 pm

Leaving a scheduled task during uninstall

Is there a way to have the installer create a scheduled task that will not be uninstalled when the application is? I need to add a utility scheduler that remains on the machine, if possible.

thx
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Leaving a scheduled task during uninstall

Hello,

This should be achievable if you follow the approach from "Make updater.exe scheduled task permanent" thread.

Hope this helps.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sstrader
Posts: 11
Joined: Mon Dec 04, 2017 1:50 pm

Re: Leaving a scheduled task during uninstall

Thanks, Daniel. I'm not actually using the updater.exe, but your comment prompted me to find the solution: I wasn't setting persistent properties for the scheduled task values.

It's always a simple mistake that gives you grief. :-/

Thank you for the quick reply!
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Leaving a scheduled task during uninstall

You are always welcome.

I'm glad you solved this out.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sstrader
Posts: 11
Joined: Mon Dec 04, 2017 1:50 pm

Re: Leaving a scheduled task during uninstall

I'm going to hijack my own thread and ask a related question: can a scheduled task be set as configured for Windows10?
scheduled-task-windows-10.png
scheduled-task-windows-10.png (21.15 KiB) Viewed 5455 times
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Leaving a scheduled task during uninstall

Hello,

Unfortunately currently this is not possible. We have this improvement on our TODO list and hopefully it will be available in the future.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sstrader
Posts: 11
Joined: Mon Dec 04, 2017 1:50 pm

Re: Leaving a scheduled task during uninstall

OK, thanks. And one final (!) thing: can the "Schedule" values be customized by the user? That is: can the person running the installer specify the start time of the task? The time and possibly OS may need to be configured per-install and not altered on re-install. At this point, it might just be better to have the user manually create the task, but a configurable schedule time may help.

Thanks,
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Leaving a scheduled task during uninstall

Unfortunately this is not possible either, but as a workaround you can try to develop your own custom action to create the scheduled task or just to update the one configured into "Scheduled Task" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sstrader
Posts: 11
Joined: Mon Dec 04, 2017 1:50 pm

Re: Leaving a scheduled task during uninstall

Thanks Daniel, that makes sense. And I promise that this is the end of the thread!
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Leaving a scheduled task during uninstall

You are always welcome anytime.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Leaving a scheduled task during uninstall

Hello,

This improvement has been added in Advanced Installer 17.3, released on July 29th, 2020.


Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”