Skip to content

Commit

Permalink
(doc) Add information about archiecture specific shimming
Browse files Browse the repository at this point in the history
Documents feature added in chocolatey/choco#1365
Fixes chocolatey#229
  • Loading branch information
TheCakeIsNaOH committed Oct 12, 2021
1 parent 2598438 commit f544e09
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions input/en-us/features/shim.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ Set an empty file next to the executable (or where it will be downloaded/unpacke

[Read more...](xref:create-packages#how-do-i-exclude-executables-from-getting-shims)

### I have architecture specific binaries to shim

If you are creating a package where you have two binaries (or sets of binaries) to shim depending on architecture, one for x86 and one for x64, you can put them in sub-folders and the correct one(s) will be shimmed.

Specifically, include 32-bit binaries in "`tools\x86`" and 64-bit binaries in "`tools\x64`".

This may eliminate the need to include a "`chocolateyInstall.ps1`" in the package to create "`.ignore`" files for the other architecture.

### How can I ensure a GUI shim?

Chocolatey 0.9.10+ will automatically detect GUI applications and adjust the shim accordingly. The detection may not always be accurate, and older versions of Chocolatey don't handle this, so it's best to create a "*.gui" file to direct the shim creation to be for a GUI application.
Expand Down

0 comments on commit f544e09

Please sign in to comment.