Note
WindowsDefender often marks zip files as infected for no reason. Use VirisTotal reports to ensure the safety of any downloaded distributable:
- mkshim.zip ✅(0/91) VirusTotal latest scan
Deployment
WinGet (pending):
winget install mkshim Chocolatey (pending):
choco install mkshimCommand Prompt:
curl.exe -LO https://github.com/oleg-shilo/mkshim/releases/latest/download/mkshim.zip && mkdir .\mkshim && tar -xf .\mkshim.zip -C .\mkshim && del .\mkshim.zipPowerShell 5/6/7:
$ iwr "https://github.com/oleg-shilo/mkshim/releases/latest/download/mkshim.zip" -OutFile .\mkshim.zip; Expand-Archive .\mkshim.zip; del .\mkshim.zipChanges:
- #6: Creating a shim with a path that includes an environment variable
- Added
--keep-envarsCLI option
--keep-envars
Keep environment variables option.
If specified, the shim preserves the environment variable references in the target executable path (e.g. `%MY_APP_DIR%\app.exe`) instead of resolving them to an absolute path at creation time.
The environment variables will be expanded dynamically each time the shim is executed, so if the variable value changes, the shim will automatically point to the updated location.Full Changelog: v1.5.0.0...v1.5.1.0