Closed MarcRene71 closed 5 months ago
Hello,
Please try disabling the "PowerShell" package manager (on WingetUI Settings) and test if the folder still gets created. Also, test the same procedure with the manager "Chocolatey"
deactivated every package manager except WinGet and Pip - folder gets still created. So I deactivated the remaining two package managers, everything is set to "off", but the folder gets still created.
I will investigate
This folder is part of Windows Powershell and will be created by Powershell itself. It is used to save profiles you create and automation scripts. As far as I understand this, since WingetUI uses powershell, ps will check whether its folder exists and create it when necessary. Interfering with this (and force-delete this folder for example) could make powershell not work properly anymore. As far as I have seen does WingetUI use cmd.exe when executing commands, which in all newer windows versions will default to the Terminal application and its default profile which is powershell. As soon as any process loads anything Powershell related, it will create this folder.
@turw41th, Thanks for your explanation!
Please confirm these before moving forward
Describe your issue
An unwanted folder c:\Users\\Documents\WindowsPowerShell\ is created by the tool. Folder contains only an empty subfolder "scripts". It's not critical, but as the name "documents" suggests, I'm keeping my current documents there and having unneeded folders here clutters things up.
Steps to reproduce the issue
delete the folder, bring WinGetUI to the front again - tadaa, folder is created again.
WingetUI Log
Package Managers Logs
Relevant information
could you create this folder somewhere else, like in appdata?
Screenshots and videos
No response