From 2dc4c82e9a9f44a70729fed783bf9f196e9cee1e Mon Sep 17 00:00:00 2001 From: TheCakeIsNaOH Date: Tue, 12 Oct 2021 16:35:35 -0500 Subject: [PATCH] (doc) Add information about archiecture specific shimming Documents feature added in chocolatey/choco#1365 Fixes #229 --- input/en-us/features/shim.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/input/en-us/features/shim.md b/input/en-us/features/shim.md index 54415bbc71..6111da2be9 100644 --- a/input/en-us/features/shim.md +++ b/input/en-us/features/shim.md @@ -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.