urasandesu / Prig

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

Unable to register #74

Closed esenpillai closed 8 years ago

esenpillai commented 8 years ago

I have visual studio installed on my D drive. When I try to register prig it says unable to run testwindow because it is trying to locate commonextensions folder under c drive.

urasandesu commented 8 years ago

Thank you for the reporting!

I didn't have tested in the environment like yours, sorry... I found the cause is that MachineWideInstaller uses C:\Program Files as a fixed value. I think that the method can specify the location by the algorithm same as Prig Assembly addition process -- it uses the environment variable matching to VS\d{3}COMNTOOLS, so this issue will be fixed until next release.

For your information, you can manually install that by the following steps:

  1. In Visual Studio, choose PRIG - Register Prig (Needs Restarting) menu(the error will occur).
  2. In Developer Command Prompt for VS2013 as Administrator, execute prig install command.
  3. Restart Visual Studio.

Probably, you have to execute the command like this because you installed Visual Studio in D drive:

CMD C:\> prig install TestWindow_for_d_drive -source "D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow"
CMD C:\> prig install TestWindow1_for_d_drive -source "D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\x64"

If you are in haste, please try them.

esenpillai commented 8 years ago

Thank you this work around solved my issue