Skip to content

Commit

Permalink
(GH-1292) add note on manifest caching
Browse files Browse the repository at this point in the history
Windows behavior of manifest caching is enough to make even the best of
admins and developers want to tear out their hair until they realize
there is a cache and changes to the manifest are completely ignored by
Windows. So leave a breadcrumb here so that folks know if they make a
change to the manifest file, they will need to "touch" the file they
are trying to get the manifest to take effect for - in this case
choco.exe. The modification date will need changed to clue
Windows in that there is a new manifest.

This is only when changing the file AFTER the exe / modification date
has been run even once. It's better to just say to always update the
modification date as someone may not know whether the file has been ran
before.
  • Loading branch information
ferventcoder committed Dec 6, 2018
1 parent b65f586 commit 9e7d42f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/chocolatey.console/choco.exe.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
The following is an unsupported use case: If you want to utilize File
and Registry Virtualization for backward compatibility then delete
the requestedExecutionLevel node.
NOTE: If you do change this file, make sure that you change the
modification date on choco.exe that this sits next to. Windows
caches manifests based on path and last modified date. So you'll
need to change the modification date on choco.exe for the manifest
change to take effect.
Details: https://github.com/chocolatey/choco/issues/1292#issuecomment-304068121
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
Expand Down

0 comments on commit 9e7d42f

Please sign in to comment.