Skip to content

Handle DLLs for Symlinked executables #2711

@caiohamamura

Description

@caiohamamura

Description of the new feature / enhancement

With current zip support, the only types of installer allowed are:

  1. Portable standalone exe files
  2. Compressed installers

But what about supporting regular compressed binary packages, such as those having exe along with dynamic dll libraries?

Proposed technical implementation details

To use the dynamic dll libraries, they must either be:

  1. in PATH environment variable
  2. linked by specifying Files -> RelativeFilePath within the installer manifest

It is not possible to link dll files to make it work using the 2 approach, because the links are forced to have .exe extension.

This could be fixed either by:

  1. Adding the dlls folder to PATH environment variable
  2. Allowing to link dll files specifying something like NestedInstallerType: library. Then it would also be useful to provide pattern matching RelativeFilePath, such as *.dll
  3. Instead of making a symlink inside WinGet\Links, make an executable bat with the command @call "path\to\exe" %*, then the working directory will be the same where the exe actually is (this would the easiest path in my opinion)

Metadata

Metadata

Assignees

Labels

Issue-FeatureThis is a feature request for the Windows Package Manager client.PortableIssue related to portable packageZipped-BinaryDepends on .dlls that aren't available via symlink

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions