View Single Post
Old 08-10-2007   #1 (permalink)
Joannes Vermorel


 
 

How to grant credential to install a SnapIn ?

As a part of a continuous integration process, I would like to be able
to install and load a custom snapin into PowerShell. Yet, when I try
to do the "installutil" operation from the "integration" account on a
Win2k3 box, I get the error message pasted below.

Does anyone what I should to to authorize the installutil operation?

Thanks in advance,
Joannès
http://www.lokad.com sales forecasting

System.UnauthorizedAccessException: Access to the registry key
'HKEY_LOCAL_MACHINE\Software\Microsoft\PowerShell\1\Power
ShellSnapIns\FooSnapIn' is denied.

The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\integration\foo.dll
l assembly's progress.
The file is located at .
Rolling back assembly 'C:\integration\foo.dll'.
Affected parameters are:
logtoconsole =
assemblypath = C:\integration\foo.dll
logfile =
An exception occurred during the Rollback phase of the FooSnapIn
installer.
System.UnauthorizedAccessException: Access to the registry key
'HKEY_LOCAL_MACHINE\Software\Microsoft\PowerShell\1\Power
ShellSnapIns' is denied.
An exception occurred during the Rollback phase of the installation.
This exception will be ignored and the rollback will continue.
However, the machine might not fully revert to its initial state after
the rollback is complete.

The Rollback phase completed successfully.

The transacted install has completed.
The installation failed, and the rollback has been performed.

My System SpecsSystem Spec