microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.61k stars 4.47k forks source link

(ZIP) (PS1) [Package Request]: ContextMenuForWindows11 #80954

Open ppvnf opened 2 years ago

ppvnf commented 2 years ago

Package Requested

Please provide the following information

Publisher: https://github.com/ikas-mc Publisher Url: https://github.com/ikas-mc/ContextMenuForWindows11 Package Name: ContextMenuForWindows11 Description: Add Custom Context Menu For Windows11 Package Version: 3.1.0.0 Installer URL: https://github.com/ikas-mc/ContextMenuForWindows11/releases

Besides being inside a .zip file the installer seems to be a .ps1 file. I know Zip support will come soon, but is Winget able to to execute installation scripts?

Trenly commented 2 years ago

is Winget able to to execute installation scripts?

At this time, no. There are security risks associated with downloading and running installation scripts with little ability to validate them, especially since such scripts often rely on reaching out to external sources to download the binary executables.

ppvnf commented 2 years ago

is Winget able to to execute installation scripts?

At this time, no. There are security risks associated with downloading and running installation scripts with little ability to validate them, especially since such scripts often rely on reaching out to external sources to download the binary executables.

Thanks for the answer (even if it's not the one I hoped for). Are there any plans to implement this feature in the future? The only similar thing I found was https://github.com/microsoft/winget-pkgs/issues/44742. In winget-cli I couldn't find anything. Shouldn't there be some discussion about this?

Trenly commented 2 years ago

I don't know that there has been any discussion around this. I know #21877 exists here in pkgs, but I couldn't find anything over at CLI either

ppvnf commented 2 years ago

Maybe this https://github.com/microsoft/winget-cli-restsource/issues/116?

Trenly commented 2 years ago

Maybe this microsoft/winget-cli-restsource#116?

No, that is for .exe files that aren’t packaged as an installer. If the .ps1 file references a .exe, it may be possible to add the .exe directly

ppvnf commented 10 months ago

latest version is available as Msixbundle https://github.com/ikas-mc/ContextMenuForWindows11/releases/download/3.8.0.0/7061touchwp.CustomContextMenu_3.8.0.0_neutral_._m9vp3t2f55f5t.Msixbundle