Skip to content
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]: .folder file attempts to open whenever winget-autoupdate runs #543

Closed
ABalloi opened this issue Jan 11, 2024 · 2 comments
Closed
Labels
bug Something isn't working stale

Comments

@ABalloi
Copy link

ABalloi commented Jan 11, 2024

The problem

On certain installations, the "C:\ProgramData\Winget-AutoUpdate\functions" folder contains a .folder file. It is unclear why the .folder file is present in this directory.

This is causing an issue where a pop-up stating "Windows can't open this type of file (.folder) appears whenever winget-upgrade.ps1 executes.

What version of WAU has the issue?

1.19.1

What version of Windows are you using (ex. Windows 11 22H2)?

Microsoft Windows 10 Enterprise x64 10.0.19045 N/A Build 19045

What version of winget are you using?

Windows Package Manager v1.6.3482

Log information

No response

Additional information

This line seems to be causing the issue, due to the ".folder" file existing in the functions directory.

Get-ChildItem "$WorkingDir\functions" | ForEach-Object { . $_.FullName }

@ABalloi ABalloi added the bug Something isn't working label Jan 11, 2024
AndrewDemski-ad-gmail-com added a commit to AndrewDemski-ad-gmail-com/Winget-AutoUpdate-latestTag that referenced this issue Jan 13, 2024
Quick-Fix for bug reported in Romanitho#543

Summary: with additional parameters we filter files (and ignore folders), then drill it down to PS1 files, also proactively we ignore sub-folders if such are present.
Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Feb 11, 2024
Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant