urasandesu / Prig

Prig is a lightweight framework for test indirections in .NET Framework.
Other
117 stars 21 forks source link

`Register Prig` menu doesn't work in a x86 environment #66

Closed urasandesu closed 8 years ago

urasandesu commented 8 years ago

When I choose the menu PRIG - Register Prig (Needs Restarting) in a x86 environment, an error message was shown and I got the following activity log:

<?xml version="1.0" encoding="utf-16"?>
<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?>
<activity>
  ...
  <entry>
    <record>368</record>
    <time>2016/04/03 07:39:27.829</time>
    <type>Error</type>
    <source>Prig</source>
    <description>Error System.ComponentModel.Win32Exception (0x80004005): &#x6307;&#x5B9A;&#x3055;&#x308C;&#x305F;&#x30D5;&#x30A1;&#x30A4;&#x30EB;&#x304C;&#x898B;&#x3064;&#x304B;&#x308A;&#x307E;&#x305B;&#x3093;&#x3002;&#x000D;&#x000A;   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)&#x000D;&#x000A;   at System.Diagnostics.Process.Start()&#x000D;&#x000A;   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)&#x000D;&#x000A;   at Urasandesu.Prig.VSPackage.Models.ProcessExecutor.StartProcessWithoutShell[TResult](String fileName, String arguments, Func`2 resultSelector)&#x000D;&#x000A;   at Urasandesu.Prig.VSPackage.Models.Regsvr32Executor.StartInstalling(String path)&#x000D;&#x000A;   at Urasandesu.Prig.VSPackage.Models.MachineWideInstaller.RegisterProfiler(MachineWideInstallation mwInstl)&#x000D;&#x000A;   at Urasandesu.Prig.VSPackage.Models.MachineWideInstaller.Install(MachineWideInstallation mwInstl)&#x000D;&#x000A;   at Urasandesu.Prig.VSPackage.PrigController.RegisterPrig(PrigViewModel vm)&#x000D;&#x000A;   at Urasandesu.Prig.VSPackage.PrigController.PrepareRegisteringPrig(PrigViewModel vm)&#x000D;&#x000A;   at Urasandesu.Prig.VSPackage.RegisterPrigCommand.InvokeCore(Object parameter)&#x000D;&#x000A;   at Urasandesu.Prig.VSPackage.Infrastructure.ApplicationCommand.Invoke(Object parameter)...</description>
  </entry>
  ...
</activity>

After decoding, like this:

record      : 368
time        : 2016/04/03 07:39:27.829
type        : Error
source      : Prig
description : Error System.ComponentModel.Win32Exception (0x80004005): 指定されたファイルが見つかりません。
                 at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
                 at System.Diagnostics.Process.Start()
                 at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
                 at Urasandesu.Prig.VSPackage.Models.ProcessExecutor.StartProcessWithoutShell[TResult](String fileName, String arguments, Func`2 resultSelector)
                 at Urasandesu.Prig.VSPackage.Models.Regsvr32Executor.StartInstalling(String path)
                 at Urasandesu.Prig.VSPackage.Models.MachineWideInstaller.RegisterProfiler(MachineWideInstallation mwInstl)
                 at Urasandesu.Prig.VSPackage.Models.MachineWideInstaller.Install(MachineWideInstallation mwInstl)
                 at Urasandesu.Prig.VSPackage.PrigController.RegisterPrig(PrigViewModel vm)
                 at Urasandesu.Prig.VSPackage.PrigController.PrepareRegisteringPrig(PrigViewModel vm)
                 at Urasandesu.Prig.VSPackage.RegisterPrigCommand.InvokeCore(Object parameter)
                 at Urasandesu.Prig.VSPackage.Infrastructure.ApplicationCommand.Invoke(Object parameter)...

It seems that regsvr32.exe cannot be found in the specified path.