Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001202graphvizBuild/Installpublic2007-11-14 00:002011-04-28 04:03
ReporterRobert Bassett 
Assigned ToArif Bilgin 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSWindows XP Professional SP2OS Version
Summary0001202: Windows PATH after installing GraphViz 2.16
Description



<CD>
 Open new command prompt on plain Windows system (Start, Run, cmd, OK)
 Type 'explorer', hit enter, Windows explorer comes up.
 Type 'path', hit enter, see C:\\WINDOWS;C:\\WINDOWS\\system32, etc
 Install graphviz-2.16.exe
 Open new command prompt
 Type 'explorer', hit enter, cmd replies 'explorer' not found
 Type 'path', hit enter, see %SystemRoot%;%SystemRoot%\\system32, etc
</CD>
 Looks like installer set the system path registry value to REG_SZ
  when it appended GraphViz install folder, should be REG_EXPAND_SZ;
  or more precisely, if PATH was REG_SZ, leave it REG_SZ, and if it
  was REG_EXPAND_SZ, leave it REG_EXPAND_SZ.



 Workaround is simple:
<CD>
  Right-click My Computer, Advanced, Environment Variables
  In System Environment variables, Edit Path, just say OK,
  that should be enough to make the applet pass the string
  back to the registry with REG_EXPAND_SZ.
</CD>
Additional Information

[erg] Same as bug 1232

[robert] There is a way to avoid changing the System Path altogether. It's
a trick I first saw with Visual Studio .NET 2003. Create a .bat
file,

<CD>
 C:\Program Files\GraphViz2.16\gvenv.bat
</CD>

Its contents
<CD>
 @echo off
 set PATH=%PATH%;C:\Program Files\GraphViz2.16\bin
</CD>

Then create a shortcut in the GraphViz program files group,

<CD>
 C:\Documents and Settings\All Users\Start Menu\Programs\Graphviz-win
v2.16
</CD>

called 'GraphViz Command Prompt', which has this for its target:

<CD>
 %comspec% /k "C:\Program Files\GraphViz2.16\gvenv.bat"
</CD>

The user may click this to open command prompt with access to all
the graphviz goodies. Or, if they want access to the graphviz
goodies from a command prompt that's already open (e.g., they have
a command session with a PATH already pointing to other things),
they can just call gvenv.bat from that command prompt and the
GraphViz goodies are added 'at the end' of the PATH. It's a nice
way to prevent the GraphViz pkg having a system-wide impact.

I realize this suggestion is probably mainly an artifact of my own
preferences, but I thought I'd mention it in case it's of interest.
I'm happy with GraphViz either way.

TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1233
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (15 Nov 2007)
VERSION   2.16
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => Arif Bilgin


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker