Skip to content

Portable application executable is renamed despite absence of rename argument #4006

Description

@marco-eckstein

Brief description of your issue

The Portable/Standalone applications documentation states:

If a command value is specified in the manifest, then the symlink filename will be renamed to match the command value. If the rename argument is provided, then both the symlink filename and the portable exe filename will be renamed to match the rename argument value.

However, the portable exe is renamed even if the rename argument is absent.

In case the behavior is intended and only the documentation is misleading, I still request changing this behavior. Renaming the exe is confusing and seems unnecessary.

Steps to reproduce

Run winget install --exact --id Microsoft.Sysinternals.ProcessExplorer --version 17.05

Note that the manifest includes:

Commands:
- process-explorer

Expected behavior

C:\Users\<username>\AppData\Local\Microsoft\WinGet\Links contains symlink process-explorer.exe.

C:\Users\<username>\AppData\Local\Microsoft\WinGet\Packages\Microsoft.Sysinternals.ProcessExplorer_Microsoft.Winget.Source_8wekyb3d8bbwe\ contains procexp64.exe.

Actual behavior

C:\Users\<username>\AppData\Local\Microsoft\WinGet\Links contains symlink process-explorer.exe.

C:\Users\<username>\AppData\Local\Microsoft\WinGet\Packages\Microsoft.Sysinternals.ProcessExplorer_Microsoft.Winget.Source_8wekyb3d8bbwe\ contains process-explorer.exe.

Environment

Windows-Paket-Manager v1.6.3482
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Windows: Windows.Desktop v10.0.19045.3803
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.21.3482.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.PortableIssue related to portable package

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions