TheRandomLabs / scoop-nonportable

A Scoop bucket for nonportable applications.
The Unlicense
138 stars 40 forks source link

powertoys-np: silent uninstall #236

Closed Lutra-Fs closed 3 years ago

Lutra-Fs commented 3 years ago

There is an option that supports extracting MSI installer from .exe one. If we manually maintained an MSI installer, we can use msiexec /x msi-filepath /qn to quietly uninstall powertoys. I have tested on windows sandbox, and it can uninstall powertoys properly. I am not able to work on this update as I am preparing for my exam. Any help or suggestion on this issue is good. CC: @MunsterPlop as per #229 requested. I've really appreciated it if you can work on this.

MunsterPlop commented 3 years ago

The method I used in #229 calls the uninstall string generated by the installation and it already uses msiexec. In any case, I tinkered a bit more and I figured out the problem: /qn requires elevation to admin otherwise it just fails silently. I'm not sure if it's possible to self-elevate within the uninstall script but I'll look. Otherwise /qr works just fine even if a bit verbose.

MunsterPlop commented 3 years ago

I found a satisfying workaround, it should now only prompt for elevation :)