[Mono-list] monobasepath.bat Environment Variable Problem

Mark Gimelfarb mark@dawebber.com
Fri, 4 Jul 2003 12:57:40 -0400


JD, 
    we have discussed this problem before: 
http://lists.ximian.com/archives/public/mono-list/2003-June/014641.html 
As you noticed, it does break a lot of things, not only XML stuff. 

Looking at the installer script in CVS: 
http://cvs.hispalinux.es/cgi-bin/cvsweb/mcs/tools/mono-win32-setup.nsi? 
rev=1.10&content-type=text/x-cvsweb-markup&cvsroot=mono 

I've noticed that: 
1) the registry entries get written out correctly (i.e., w/o quotes). 
2) at the point when monobasepath.bat is written to, I see a potential problem: 

FileWrite $0 'set MONO_CFG_DIR="$INSTDIR\etc\mono"' 

$INSTDIR is already in quotes from previous assignment, and so this line make 
it "double-quoted".Once the variable is expanded by the NSIS installer, it 
creates an effect that we all have witnessed. 

Am I on the right path here? 

Mark.