I'm wondering if, when setting the path within a function, the section that calls the function does not see the new environment/path.
My code looks something like this
Thanks in advance to anyone who can shed some light on this. =)
SubSection Splat
Section Woo
Call InstPerl
nsExec::ExecToLog 'Perl "$EXEDIR\Scripts\AutoInst.pl"'
SectionEnd
Section Hoo
blah blah...
SectionEnd
SubSectionEnd
Function InstPerl
ExecWait 'msiexec.exe /i "$EXEDIR\ActivePerl.msi" /l*v C:\SUlogs\Perl.log /qb'
Push "C:\Perl\Bin"
Call AddToPath ; Same as Path Manip scripts in NSIS Archive
;Alternatively, I've tried the following
;nsExec::ExecToLog '"$EXEDIR\UTILS\pathman" /as "C:\Perl\Bin"'
FunctionEnd