Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

31,832

Downloads of v 2022.2.6.0:

8,518

Last Update:

27 Mar 2022

Package Maintainer(s):

Software Author(s):

  • Eric Woodruff

Tags:

shfb documentation sandcastle help xml comments file builder admin

Sandcastle Help File Builder and Tools (Install)

  • 1
  • 2
  • 3

2022.2.6.0 | Updated: 27 Mar 2022

Downloads:

31,832

Downloads of v 2022.2.6.0:

8,518

Maintainer(s):

Software Author(s):

  • Eric Woodruff

Sandcastle Help File Builder and Tools (Install) 2022.2.6.0

Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Eric Woodruff. The inclusion of Eric Woodruff trademark(s), if any, upon this webpage is solely to identify Eric Woodruff goods or services and not for commercial purposes.

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Exemption:

Dependency requires reboot

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Sandcastle Help File Builder and Tools (Install), run the following command from the command line or from PowerShell:

>

To upgrade Sandcastle Help File Builder and Tools (Install), run the following command from the command line or from PowerShell:

>

To uninstall Sandcastle Help File Builder and Tools (Install), run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade sandcastle -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade sandcastle -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install sandcastle
  win_chocolatey:
    name: sandcastle
    version: '2022.2.6.0'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'sandcastle' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '2022.2.6.0'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller sandcastle
{
    Name     = "sandcastle"
    Version  = "2022.2.6.0"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'sandcastle':
  ensure   => '2022.2.6.0',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

NOTE

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

Package Approved

This package was approved as a trusted package on 27 Mar 2022.

Description

Sandcastle is composed of two separate parts that work together: the Sandcastle tools and the Sandcastle Help File Builder. The Sandcastle tools are used to create help files for managed class libraries containing both conceptual and API reference topics. API reference topics are created by combining the XML comments that are embedded in your source code with the syntax and structure of the types which is acquired by reflecting against the associated .NET Framework assemblies. Conceptual topics are created by converting XML documents that you author containing Microsoft Assistance Markup Language (MAML). The Sandcastle tools are command-line based and have no GUI front-end, project management features, or an automated build process.

The Sandcastle Help File Builder was created to fill in the gaps, provide the missing NDoc-like features that are used most often, and provide standalone GUI and command line based tools to build a help file in an automated fashion. A Visual Studio integration package is also available for it so that help projects can be created and managed entirely from within Visual Studio.


tools\chocolateyInstall.ps1
$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
. $toolsPath\helpers.ps1

# stop on all errors
$ErrorActionPreference = 'Stop';

$packageName   = 'sandcastle' # arbitrary name for the package, used in messages
$versionNumber = '2022.2.6.0'
$url           = 'https://github.com/EWSoftware/SHFB/releases/download/v2022.2.6.0/SHFBInstaller_v2022.2.6.0.zip' # download url
$checksum      = 'c379fb876c06b32c50a73e822966c2d4a845efb2a4d7e96faa9c244de94a1065'
$checksumType  = 'sha256'

$chocTempDir   = Join-Path $env:TEMP "chocolatey"
$tempDir       = Join-Path $chocTempDir "$packageName"

$zipFile = Join-Path $tempDir ('SHFBInstaller_v' + $versionNumber + '.zip')
$zipDir = Join-Path $toolsPath ('SHFBInstaller_v' + $versionNumber)
$pkgDir = Join-Path $zipDir "InstallResources"

Get-ChocolateyWebFile "$packageName" "$zipFile" "$url" `
                      -Checksum "$checksum" -ChecksumType "$checksumType"
Get-ChocolateyUnzip "$zipFile" "$zipDir"

$packageArgs = @{
  packageName    = $packageName
  fileType       = 'MSI' # only one of these: exe, msi, msu
  file           = $(Join-Path $pkgDir "SandcastleHelpFileBuilder.msi")

  silentArgs     = '/quiet'
  validExitCodes = @(0, 3010, 1641) # please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx
  softwareName   = 'Sandcastle*' #ensure this is the value in the registry
}
Install-ChocolateyInstallPackage @packageArgs

# Install-ChocolateyVsixPackage doesn't let us provide a list of supported versions for a package, unfortunately
# Check for each version supported by the Sandcastle tools VSIX and call the function repeatedly as needed
Get-VisualStudio | Where-Object { $_.installationVersion.Major -ge 15 } | ForEach-Object {
  $vsver = $_.installationVersion.ToString(2)
  Write-Host "Installing VSIX package for Visual Studio $vsver"

  $vssku = Split-Path $_.installationPath -Leaf
  $vsixInstaller = Join-Path $_.installationPath 'Common7\IDE\VSIXInstaller.exe'

  # Otherwise VSIXInstaller.exe exits with error code 2003: NoApplicableSKUsException
  if ( $_.installationVersion.Major -eq 15 ) { $vsver = '15.0' }

  # Set path for the VSIX package for the current Visual Studio version
  if ( $_.installationVersion.Major -le 16 ) { $vsix = Join-Path $pkgDir "SHFBVisualStudioPackage_VS2017And2019.vsix" }
  else { $vsix = Join-Path $pkgDir "SHFBVisualStudioPackage_VS2022AndLater.vsix" }

  Write-Host "    SKU is '$vssku'"
  Write-Host "    Installation path is " $_.installationPath

  $exitCode = Install-VsixEXT "$vsixInstaller" "$vsix" "$vsver" "$vssku"
  if ($exitCode -eq 2004) { #2004: Blocking Process (need to close VS)
    throw "A process is blocking the installation of the Sandcastle extension for " + $_.displayName + ". Please close all instances and try again."
  }
  if ($exitCode -gt 0 -and $exitCode -ne 1001) { #1001: Already installed
    throw "There was an error installing the Sandcastle extension for " + $_.displayName + ". The exit code returned was $exitCode."
  }
}

New-Item "$zipDir\SandcastleInstaller.exe.ignore" -Type file -Force | Out-Null
tools\helpers.ps1
function Get-VisualStudio {
  $versions = vswhere.exe -legacy -format json | ConvertFrom-Json
  $versions = $versions | Where-Object { ($_.installationPath -ne $null) -and (Test-Path $(Join-Path $_.installationPath 'Common7\IDE\devenv.exe')) }
  $versions | ForEach-Object {
    $_.installationVersion = [System.Version]($_.installationVersion)
    $_
  }
}

function Install-VsixEXT {
param(
  [parameter(Mandatory=$true, Position=0)] $installer,
  [parameter(Mandatory=$true, Position=1)] $installFile,
  [parameter(Mandatory=$true, Position=2)] $version = '15.0',
  [parameter(Mandatory=$true, Position=3)] $sku = 'Community',
  [parameter(ValueFromRemainingArguments = $true)][Object[]] $ignoredArguments
)

  # use original function for pre-2017
  if (([System.Version]$version).Major -lt 15) {
    return Install-Vsix "$installer" "$installFile"
  }

  Write-FunctionCallLogMessage -Invocation $MyInvocation -Parameters $PSBoundParameters

  if ($env:chocolateyPackageName -ne $null -and $env:chocolateyPackageName -eq $env:ChocolateyInstallDirectoryPackage) {
    Write-Warning "Install Directory override not available for VSIX packages."
  }

  Write-Host "Installing $installFile using $installer for Visual Studio $sku $version"
  $psi = New-Object System.Diagnostics.ProcessStartInfo
  $psi.FileName = $installer
  $psi.Arguments = "/q /v:$version /s:$sku $installFile"
  $s = [System.Diagnostics.Process]::Start($psi)
  $s.WaitForExit()

  return $s.ExitCode
}

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Sandcastle Help File Builder and Tools (Install) 2022.1.22.0 1236 Sunday, January 23, 2022 Approved
Sandcastle Help File Builder and Tools (Install) 2021.11.7.0 542 Monday, November 8, 2021 Approved
Sandcastle Help File Builder and Tools (Install) 2021.10.23.0 201 Sunday, October 31, 2021 Approved
Sandcastle Help File Builder and Tools (Install) 2021.4.9.0 2469 Monday, May 17, 2021 Approved
Sandcastle Help File Builder and Tools (Install) 2021.4.5.0 100 Monday, May 17, 2021 Approved
Sandcastle Help File Builder and Tools (Install) 2021.3.29.0 484 Tuesday, March 30, 2021 Approved
Sandcastle Help File Builder and Tools (Install) 2020.3.6.0 1380 Friday, December 18, 2020 Approved
Sandcastle Help File Builder and Tools (Install) 2019.11.17.0 3610 Thursday, November 28, 2019 Approved
Sandcastle Help File Builder and Tools (Install) 2019.9.15.0 455 Thursday, September 19, 2019 Approved
Sandcastle Help File Builder and Tools (Install) 2019.8.24.0 255 Thursday, September 12, 2019 Approved
Sandcastle Help File Builder and Tools (Install) 2019.6.24.0 663 Wednesday, June 26, 2019 Approved
Sandcastle Help File Builder and Tools (Install) 2019.4.14.0 429 Friday, April 19, 2019 Approved
Sandcastle Help File Builder and Tools (Install) 2019.4.7.0 261 Friday, April 12, 2019 Approved
Sandcastle Help File Builder and Tools (Install) 2019.3.31.0 303 Monday, April 1, 2019 Approved
Sandcastle Help File Builder and Tools (Install) 2018.12.10.0 467 Saturday, December 15, 2018 Approved
Sandcastle Help File Builder and Tools (Install) 2018.7.8.0 800 Tuesday, July 24, 2018 Approved
Sandcastle Help File Builder and Tools (Install) 2018.5.14.0 467 Saturday, May 26, 2018 Approved
Sandcastle Help File Builder and Tools (Install) 2017.12.30.2 903 Tuesday, January 16, 2018 Approved
Sandcastle Help File Builder and Tools (Install) 2017.12.30.0 430 Monday, January 8, 2018 Approved
Sandcastle Help File Builder and Tools (Install) 2017.5.15.0 1620 Wednesday, May 17, 2017 Approved
Sandcastle Help File Builder and Tools (Install) 2017.1.28.1 505 Sunday, April 9, 2017 Approved
Sandcastle Help File Builder and Tools (Install) 2017.1.28.0 511 Friday, March 10, 2017 Approved
Sandcastle Help File Builder and Tools (Install) 2016.9.17.0 792 Tuesday, December 20, 2016 Approved
Sandcastle Help File Builder and Tools (Install) 2015.10.10.0 813 Thursday, December 17, 2015 Approved
Sandcastle Help File Builder and Tools (Install) 2015.7.25.0 530 Thursday, December 17, 2015 Approved
Sandcastle Help File Builder and Tools (Install) 2015.5.2.0 2960 Wednesday, May 27, 2015 Approved

Discussion for the Sandcastle Help File Builder and Tools (Install) Package

Ground Rules:

  • This discussion is only about Sandcastle Help File Builder and Tools (Install) and the Sandcastle Help File Builder and Tools (Install) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Sandcastle Help File Builder and Tools (Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus