-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Portable Installers does not work with .cmd #3807
Comments
Hello @blaubaer, We've identified this as a duplicate of another issue or PR that already exists. This specific instance is being closed in favor of the linked issue. Please add your 👍 to the other issue to raise its priority. Thanks for your contribution! Template: msftbot/duplicate/closed |
As the title of the other issue states "Portable Executables not supported for non-exe targets". As you stated, Although the body of the other issue only specifically references |
Ok, I put the content also into #3386. |
Brief description of your issue
While working on winget-pkgs#123118 I found some unexpected behaviors by creating a portable installer that is containing a
.cmd
file as executable.BTW: I've added already an idea to tackle a part of this issue in the ticket #3749.
Steps to reproduce
Create a manifest with a portable installer that is containing
.cmd
/.bat
executables:Apache.Maven.installer.yaml
Apache.Maven.locale.en-US.yaml
Apache.Maven.yaml
Call
winget install --manifest <path_to_manifest>
with elevated permissions.Expected behavior
mvn
ormvn.cmd
.mvn.cmd
.Actual behavior
In
%USERPROFILE%\AppData\Local\Microsoft\WinGet\Links
there is a file generated namedmvn.exe
(instead ofmvn.cmd
) which points to%USERPROFILE%AppData\Local\Microsoft\WinGet\Packages\Apache.Maven__DefaultSource\apache-maven-3.9.5\bin\mvn.cmd
.Automatic Validation of winget-pkgs failed with
Environment
The text was updated successfully, but these errors were encountered: