NuGet Helper Package : NuGetPSVariables - PowerShell Variables and Values

Mar 21, 2011 at 11:12 PM
I typically forget what the actual values of the powershell variables are, so I created a package to help remind of the variables and the actual values of those settings.
It installs, writes some output to the console, more helpful output to three log files, and then uninstalls itself.

Install-Package NuGetPSVariables

http://nuget.org/List/Packages/NuGetPSVariables

Mar 22, 2011 at 1:31 AM

It fails under UAC because it tries to wrote to c:\:

 

PM> Install-Package NuGetPSVariables
Successfully installed 'NuGetPSVariables 1.0.0'.
===================================================
init.ps1
===================================================
Install-Package : Access to the path 'C:\nuget.variables.init.ps1.log' is denied.
At line:1 char:16
+ Install-Package <<<<  NuGetPSVariables
    + CategoryInfo          : NotSpecified: (:) [Install-Package], CmdletInvocationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.Cmdlets.InstallPackageCmdlet

Maybe it should write to the temp dir instead?

 

Mar 22, 2011 at 4:23 AM
Oh good point.
Does opening explorer break UAC as well I wonder....
Mar 22, 2011 at 4:33 AM
Looks like that appears to work. Updated. Take a look now. :D