[daisy] Daisy Windows Installer

Andreas Deininger adeininger at googlemail.com
Wed Aug 9 04:40:18 CDT 2006


2006/8/9, Bruno Dumon <bruno at outerthought.org>:
> On Wed, 2006-08-09 at 11:09 +0200, Marc Portier wrote:
> >
> > > For now, I have some questions:
> > >
> > > a) The daisy installation instruction specifies:
> > >
> > >> Make sure that wherever you extract the download, none of the parent
> > >> directories
> > >> contains spaces in their names. For example, on Windows, do not
> > >> extract Daisy inside
> > >> your c:\Program Files directory.
> > >
> > > What specifically is causing problems if the name of the directory
> > > contains spaces? Can we overcome that or do I have to enforce these
> > > restriction inside the installer?
> > >
> >
> > the trouble with spaces in paths is related to them being not escaped
> > properly in *.bat files which leads to the command interpreter thinking
> > there are two separate arguments rather then one
> >
> > so in essence this boils down to the tedious job of checking all those
> > calls, and making sure proper escaping is in place... and never
> > forgetting about it... (I'm unaware of any circumstances where the
> > proper escaping sequence simply cannot be found)
> >
> > I guess over years we've just learned that the lazy attitude of just
> > preventing spaces in paths makes our life easier.
> > (Blast, why didn't they just call it C:\ProgramFiles :-))
> >
> > If you feel up to running the extra mile and checking all those calls,
> > that would be great of course...
>
> There were actual problems with spaces in the path, which caused us to
> add that comment to the install instructions. I don't recall the exact
> instances and whether they are still there.
>
> It's very easy to check: just install Daisy in a path containing spaces
> and see if it all works (using the default startup scripts).

No, it doesn't :-(
I haven't figured out why, though.

Depending on how easy it can be resolved, I might or might not enforce
that restriction in the installer.
This topic is somehow annoying, I also ran into trouble while calling
external commands with command line args inside the installer script ,
like

ExecWait '"$INSTDIR\install\daisy-create-databases.bat" $DbServer
$DbRoot $DbRootPassword' $0

Certainly off-topic, but maybe someone knows a solution how to quote
the parameters inside ExecWait?

Andreas


More information about the daisy mailing list