I need to extract the product version from a binary in .NET. This works with the actual binary. However, when a chocolatey shim is referenced, then I only get the product version of the shim. Is there a way to programmatically read the path to the binary from the shim?
Asked
Active
Viewed 102 times
1 Answers
0
I found it myself - calling the shim with the parameter --shimgen-help
will also ouptut the target path.

PSt
- 15
- 5