chocolatey/chocolatey — pull request #146 by mwrock (2012-09-03 19:05:44+00:00)
Title: Added function to associate file extensions with installed executables

This will elevate to admin and associate a file extension with a executable.

Usage Install-ChocolateyFileAssociation -extension -executable

- The executable must exist.
- If there is no preceeding '.' in the extension, one will be added
- If only '.' is entered as the extension then the executable will be associated with all UNassociated file types.
- The executable will be invoked as "%1" "%*" %1 will be the associated file and %* will be all/any arguments.