[wpkg-users] problem with %PROGRAMFILES%
Dr. Frank Lee
rl201 at cam.ac.uk
Fri Nov 3 23:33:21 CET 2006
Hi EJS,
> <install cmd="%SOFTWARE%\gimp.exe SP- /SILENT /NORESTART \
> /DIR=%PROGRAMFILES%\GIMP" />
If you leave %ProgramFiles% to be set to c:\Program Files (without the
quotes), %ProgramFiles% will be expanded by WPKG and therefore have a
space in it. (If you have " characters in the variable, Bad Things will
happen generally because WPKG will treat the " characters as part of the
file name but Windows won't.)
The solution is to have %ProgramFiles%=C:\Program Files (No quotes) and
then to quote the file path:
/DIR="%ProgramFiles%\GIMP"
I would have the install command as:
<install cmd='%Software%\gimp.exe SP- /SILENT /NORESTART \
/DIR="%ProgramFiles%\GIMP" ' />
i.e. use single quotes for the contents of the cmd entity which leaves you
free to include double-quotes around arguments which have spaces in.
Yours,
Frank
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users
More information about the wpkg-users
mailing list