1

Closed

How to install SHFB for all users?

description

I installed SHFB, then I run VS2010.
It works fine, it understands the SHFB projects.

But when my colleague connects to the same machine via Remote desktop with his login, then run VS2010 it receives an error: VS does not recognize this kind of projects.

What is wrong? how to solve this problem?

Thank you.
Closed Jan 26, 2015 at 6:15 AM by EWoodruff
Moved to GitHib

comments

EWoodruff wrote Jan 12, 2015 at 4:26 PM

By default, VSIX packages are installed for the current user only. I don't currently expose an option in the guided installer to install it for all users. From what I can tell you should be able to do the following:
  • Uninstall the SHFB package from within Visual Studio using the Tools | Extensions and Updates option.
  • Manually install the package by running the following command from the .\InstallResources folder of the guided installer:
"%VS100COMNTOOLS%\..\IDE\VSIXInstaller" /a SHFBVisualStudioPackage.vsix
The "/a" command line option will make it install in the admin location which should be available to all users. I have not tested the package with it installed for all users but I don't think there will be any issues.

Win32nipuh wrote Jan 13, 2015 at 9:15 AM

Thank you, it works.

Win32nipuh wrote Jan 13, 2015 at 2:20 PM

When I build the SHFB project VS gives me an error:

SHFB(0,0): error BE0065: BUILD FAILED: Unable to locate Sandcastle framework definition file:

E:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\EWSoftware\SHFB\2014.12.20.0\Frameworks.xml


How to restore it?

EWoodruff wrote Jan 13, 2015 at 3:41 PM

Perhaps the SHFBROOT environment variable isn't defined or hasn't taken effect yet. You may just need to reboot. Once rebooted, see if the SHFBROOT system environment variable exists and points to the tool location where Frameworks.xml can be found (%ProgramFiles(x86)\EWSoftware\Sandcastle Help File Builder). If that looks okay and it still does the same thing, then it's probably an issue with it trying to run from the admin location and I'll need to look into it.

Win32nipuh wrote Jan 14, 2015 at 7:35 AM

I have solved it this way:

Copied folders and files (yes, probably It is not the best solution :-) )
from
C:\Program Files (x86)\EWSoftware\Sandcastle Help File Builder

to (vs2010 installation folder)
E:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\EWSoftware\SHFB\2014.12.20.0

and finally it works.

I will check how your suggestion works too.

Win32nipuh wrote Jan 14, 2015 at 7:36 AM

I have solved it this way:

Copied folders and files (yes, probably It is not the best solution :-) )
from
C:\Program Files (x86)\EWSoftware\Sandcastle Help File Builder

to (vs2010 installation folder)
E:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\EWSoftware\SHFB\2014.12.20.0

and finally it works.

I will check how your suggestion works too.

Win32nipuh wrote Jan 14, 2015 at 10:13 AM

I have checked your suggestion:
In my case it was not fixed.

Restarted the computer, checked home variable, it set to the correct path
C:\Program Files (x86)\EWSoftware\Sandcastle Help File Builder
But when I am trying to build the project in VS it gives me an error (0034?)

EWoodruff wrote Jan 14, 2015 at 7:11 PM

It's an issue related to the path its expecting to run from. I'll look into it.

wrote Jan 26, 2015 at 6:15 AM

matwalker wrote Jan 30, 2015 at 12:40 AM

Hia,

I've just got to this point in thread too - although not checked the SHFBROOT environment variable yet.

I didnt try the folder/file copy idea as it is a bit 'ucky' (as the guy says :-)).

DId you find anything on?

I just installed a new vanilla VS2012 Premium and the shfb using then install (and then vix uninstall and manual install with the /a switch). The solution the doco is in was copied over from another machine - i've just moved machines really...

Mat

EWoodruff wrote Jan 30, 2015 at 2:02 AM

It's not looking in the correct folder when installed for all users. I'll get it fixed for the next release. If you can get by installing it for the current user only, it works as expected.