Page 1 of 1

[SOLVED] Problem with the new Microsoft Edge package

Published: Dec 3, 2024 - 10:38
by t.heroult
Good morning

I noticed that you modified the Microsoft Edge package by adding

Code: Select all

ps_scheduled_tasks = run_powershell(f'Get-ScheduledTask -TaskPath \ | Where-Object TaskName -Like "MicrosoftEdgeUpdate*"')
with the following for loop on ps_scheduled_tasks.

The problem is that I already have scheduled task management by another package, which deletes tasks starting with "MicrosoftEdgeUpdate".
So the Edge package crashes because the "ps_scheduled_tasks" variable is empty.
We should add an 'if':

Code: Select all

ps_scheduled_tasks = run_powershell(f'Get-ScheduledTask -TaskPath \ | Where-Object TaskName -Like "MicrosoftEdgeUpdate*"')
if ps_scheduled_tasks:
    # Stopping application scheduled tasks
    for tasks in ps_scheduled_tasks:
        curr_task_name = tasks['TaskName']
        try:
            run(rf'schtasks /end /tn "{curr_task_name}"')
        except:
            print(f"Unable to stop the task_name: {curr_task_name}")
Sincerely
Tom

Re: Problem with the new Microsoft Edge package

Published: Dec 3, 2024 - 11:26
by jlepiquet
Hello,

Thank you for your feedback. We will correct the package to prevent it from causing an error in this scenario.

Sincerely,

Re: Problem with the new Microsoft Edge package

Published: Dec 3, 2024 - 11:54
by t.heroult
THANKS :)

Re: [SOLVED] Problem with the new Microsoft Edge package

Published: Dec 3, 2024 - 12:06 PM
by jlepiquet
The package is available in pre-production here: https://wapt.tranquil.it/wapt-testing/t ... EPROD.wapt

Available in the store this evening. :)

I'm marking this topic as resolved.