Localization issue in .bat files

Jun 26, 2007 at 10:14 AM
Generate2xTOC.bat and Generate1xTOC.bat contains a hard coded path to C:\program files, which breaks sandcastle on non-english Windows.

Suggest change to:
"%ProgramFiles%\Sandcastle\ProductionTools\XslTransform" /xsl:"TocToWebContents.xsl" toc.xml /out:"WebTOC.xml"


Jun 26, 2007 at 10:50 AM
I think using %DXROOT% variable is better solution. This variable is created by Sandcastle installer.
Coordinator
Jun 26, 2007 at 4:09 PM
Edited Jun 26, 2007 at 4:21 PM
Ignore my original post if you read it. I just saw a work item addressing the issue. When I added the step to create the website TOC, I pasted in the hard-coded path and forgot to change it to {@SandcastlePath}. If you edit the Generate1xTOC.bat and Generate2xTOC.bat files under the .\Templates folder of the help file builder installation folder, you can fix it by replacing the C:\Program Files\ part with {@SandcastlePath}.

Eric