a.guelle
Posts: 98
Joined: Tue May 19, 2015 2:23 pm

MSI installer will be started on user logon via task scheduler if an installation has failed [solved]

Dear support,

I recognized the following behaviour. If an installtion was aborted for whatever reason, a task scheduler job triggered at user logon is registered that opens the MSI installer.

Is that a desired behavour and is it changeable?

Best regards,

Angelo
Attachments
2022-10-26_15h37_10.png
2022-10-26_15h37_10.png (8.59 KiB) Viewed 9343 times
2022-10-26_15h35_45.png
2022-10-26_15h35_45.png (11.79 KiB) Viewed 9344 times
Last edited by a.guelle on Mon Feb 19, 2024 11:22 am, edited 1 time in total.
Catalin
Posts: 7512
Joined: Wed Jun 13, 2018 7:49 am

Re: MSI installer will be started on user logon via task scheduler if an installation has failed

Hello Angelo,

This is indeed the expected behavior and I'm afraid it is not changeable.

This is done for scenarios where the setup requires a restart to be done. The scheduled task is created so the setup can resume after the restart.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
a.guelle
Posts: 98
Joined: Tue May 19, 2015 2:23 pm

[solved] Re: MSI installer will be started on user logon via task scheduler if an installation has failed

Hi Catalin,

thank you for the fast response and clarification. I will add that to our user manual.

Best regards,

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

Re: MSI installer will be started on user logon via task scheduler if an installation has failed

You are always welcome, Angelo!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SilentD
Posts: 1
Joined: Wed Sep 04, 2024 5:33 am

Re: MSI installer will be started on user logon via task scheduler if an installation has failed [solved]

The schedule task is run as admin. And the installer run by that task gets stuck for some reason. Normal user can't get rid of it.
I have a new installer that contains the fix to resolve the stuck issue. My question is "can running the new installer as admin delete the scheduled task automatically?"
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSI installer will be started on user logon via task scheduler if an installation has failed [solved]

Hi and welcome to our forums,

I am afraid the only way the new installer can delete the existing scheduled task is to create your own custom action code to remove the related scheduled task.

You can create a small script (BAT, PS1, etc) code to remove the related task and include it in "Custom Actions" page of your setup project.

Otherwise you will have to manually remove the related task from target machine.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”