chocolatey/chocolatey — pull request #179 by mwrock (2012-10-14 22:45:27+00:00)
Title: Fixes Install args not getting passed into package

I was looking at [this thread](https://groups.google.com/forum/?fromgroups=#!topic/chocolatey/l5_2XxCrvQY) in the discusions which led me to have a look at the code which takes the InstallerArgs from the Install command and pases them to the package. It looks like there was an intent for ChocolateyInstall files to be able to read that parameter from an environment variable.

Chocolatey-Nuget passes that argument to Run-Chocolatey.ps1:

Run-ChocolateyPS1 $packageFolder $installedPackageName $installerArguments "install"

But the parameter declaration for Run-Chocolatey.ps1 is missing a installerArgs param:

````
function Run-ChocolateyPS1 {
param(
[string] $packageFolder,
[string] $packageName,
[string] $action
)
````
This argument is used so seldomly that it has probably gone largely unnoticed. This pull request includes a test and a fix.

I could be totally wrong or interpreting the code incorrectly; so Rob or Rich please let me know if I've got this wrong.