#109 v1.9.10, win svr 2k3, Highlighting error due to missing Path


Boilerplate: Windows Server 2003, IIS, Codestriker 1.9.10, ActivePerl, highlight 2.14, mysql 5.1.42

I just spent most of today debugging this issue, so I figured I'd post the specifics it in the hopes either a solution is integrated into the mainline, or at least the install documentation is updated to include the simple workaround so others behind me dont have the same issues.

Due to $ENV['PATH'] being cleared on line 80 of codestriker.pl (understandably, to avoid tainting) I was getting the error:

Can't spawn "cmd.exe": No such file or directory

Printed several times on the top of each page. To alleviate this issue I modified codestriker.pl to include my systems system32 directory which includes cmd.exe. There's likely a programmatic way to determine this, but in the meantime of the 'installing on iis' page of the documentation was modified to include the workaround of adding the system32 directory (C:\windows\system32 in most cases) it's likely to alleviate a lot of user grief.

Thanks for creating such a great tool!

- Dennis
Provide Commerce