-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Symlink to logfile no longer gets created #556
Comments
The existing logic expects to have full folder tree up to \Logs\WAU-update.log Winget-AutoUpdate/Sources/WAU/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 Lines 14 to 18 in acee968
Winget-AutoUpdate/Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 Lines 338 to 343 in acee968
|
Yes, full path present. |
Maybe we should change the way we create the Symlink? |
That will work.
…________________________________
From: Romain ***@***.***>
Sent: 28 February 2024 16:48
To: Romanitho/Winget-AutoUpdate ***@***.***>
Cc: Andrzej Demski ***@***.***>; Comment ***@***.***>
Subject: Re: [Romanitho/Winget-AutoUpdate] [Bug]: Symlink to logfile no longer gets created (Issue #556)
Maybe we should change the way we create the Symlink?
During the installation of WAU? Let's create an empty WAU-updates.log if it doesn't exist, and create the symlink at this moment. This way, context should be admin account OR system (without serviceui.exe) and should success.
—
Reply to this email directly, view it on GitHub<#556 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASAJCPR2XK3EYVXRWW4WIY3YV5GWBAVCNFSM6AAAAABCO5X3VCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRZGI3TGOBXHA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
The problem
I noticed that the symlink to the logfile is not being created during install any more (from version 1.18.0?)
Instead it's being created when the scheduled task is triggered (Winget-Upgrade.ps1)
But it is not created!
If I run Winget-Upgrade.ps1 from Powershell_ise (as SYSTEM) it works. But not with the Scheduled task.
If I remove ServiceUI.exe it works. So it has something to do with the script is spawned again with ServiceUI
What version of WAU has the issue?
from 1.18.0
What version of Windows are you using (ex. Windows 11 22H2)?
Windows 11 23H2
What version of winget are you using?
1.6.3482
Log information
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: