Scope & Uninstalling #4089
Replies: 1 comment
-
WinGet can only affect what is currently on the machine. If you create a new user, it would have all the applications that a default user profile would have. Similarly, if you install an application and then create a new user, the new user would only have access to that application if a default user would have access to the application. At it's core, all WinGet does is download and run the installer for a program, or call the uninstaller the program has registered.
According to the Settings schema, the only supported property of winget-cli/schemas/JSON/settings/settings.schema.0.2.json Lines 183 to 193 in 231bb78
This setting only applies to packages where the InstallerType is |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am a smooth brained person tasked to set up new devices at a local MSP. I am currently working on batch script that focuses on mostly uninstalling applications using winget. I had a few questions about how
Scope
worked.Can I use
Scope
to uninstall applications entirely from the machine? By that I mean when I run my winget script as an admin and create a new user afterwards, will the applications remain uninstalled? I feel like the answer is yes? If that is not the case, is there any way of getting the desired outcome with winget? if the answer is no, I guess you can skip the questions below.I added the
Scope
"setting" into the .json, changed it touninstall behavior
instead ofinstall behavior
, and the file is in the correct location. Do I need to call out the-- scope
machine
when I run this example commandwinget uninstall -- id XXXX.XXX
? If so, where does it go? I tried messing with it a few different ways and I feel like I got different results every time. Looking through previous research,Scope
is added in different places.I don't think I understood the
Purge
setting. Would this help me with the quest for uninstalling?Again, super sorry, but I am learning as I am going and this has been a bit of a roadblock for me. Some guidance would really be nice.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions