Hi,
Before you can create the base content set, you must first uninstall all local Visual Studio content on the target computer.
https://learn.microsoft.com/en-us/visualstudio/help-viewer/administrator-guide?view=vs-2022
To uninstall local help
In the Help Viewer, choose the Manage Content tab.
Navigate to the Visual Studio document set.
Choose Remove next to each sub-item.
Choose Update to uninstall.
Browse to %ProgramData%\Microsoft\HelpLibrary2\Catalogs\VisualStudio15 and verify that the folder only contains the file catalogType.xml.
Once you have removed all previously installed local Visual Studio Help content, you are ready to download the base content set.
To download the content
In the Help Viewer, choose the Manage Content tab.
Under Recommended Documentation or Available Documentation, navigate to the documentation sets you want to download and then choose Add.
Choose Update.
Next, you need to package the content so it can be deployed to client computers.
To package the content
Create a folder to copy the content to for later deployment. For example: C:\VSHelp.
Open cmd.exe with Administrator permissions.
Navigate to the folder you created in step 1.
Type the following:
Xcopy %ProgramData%\Microsoft\HelpLibrary2 \<foldername>\ /y /e /k /o
For example: Xcopy %ProgramData%\Microsoft\HelpLibrary2 c:\VSHelp\ /y /e /k /o
Deploy the content
Create a network share and copy the help content to that location.
For example, copy the content in C:\VSHelp to \myserver\VSHelp.
Create a .bat file to contain the deployment script for the help content. Since the client could possibly have a read lock on any of the files being deleted as part of the push, you should have the client shut down prior to pushing updates. For example:
cmd
Copy
REM - copy pre-ripped content to ProgramData
Xcopy %~dp0HelpLibrary2 %SYSTEMDRIVE%\ProgramData\Microsoft\HelpLibrary2\ /y /e /k /o
if ERRORLEVEL 1 ECHO *** ERROR COPYING Help Library files to ProgramData (%ERRORLEVEL%)
Run the .bat file on the local machines that you want to install the Help content on.