[izpack-users] How does variable substitution work?

Bartz, Klaus Klaus.Bartz at coi.de
Thu Jun 14 09:49:56 CEST 2007


Hi Gernot,
variables will be not substituted by the contents of variables.
I see to ways to solve your problem.

1: write a custom action which does the substitution.

2: use
in install.xml
...
<variable name="APPLICATIONS_SUB_PATH" 
    value="/OpenOffice/orgPortable/App/openoffice/program/soffice.exe"/>
...

in your parsable file
<value>${APPLICATIONS_DEFAULT_ROOT}${APPLICATIONS_SUB_PATH}</value>

Cheers

Klaus

> -----Original Message-----
> From: izpack-users-bounces at lists.berlios.de 
> [mailto:izpack-users-bounces at lists.berlios.de] On Behalf Of 
> Gernot Stenz
> Sent: Wednesday, June 13, 2007 6:44 PM
> To: izpack-users at lists.berlios.de
> Subject: [izpack-users] How does variable substitution work?
> 
> 
> 
> Hello,
> 
> I have yet another problem with my IzPack (3.10.0) installer:
> 
> I need to set the path for an executable file. I do this 
> using a variable and a <parsable>
> tag:
> 
> <variable name="OOEXECUTABLE" 
> value="$APPLICATIONS_DEFAULT_ROOT/OpenOfficeorgPortable/App/op
> enoffice/program/soffice.exe"/>
> 
> <parsable type="xml" 
> targetfile="$INSTALL_PATH/Editor-3.3rc5/res/vmodellexport.xml"/>
> 
> and in said file I have the following:
> 
> <value>$OOEXECUTABLE</value>
> 
> However, after installation, the respective line in the file 
> looks like this:
> 
> <value>$APPLICATIONS_DEFAULT_ROOT/OpenOfficeorgPortable/App/op
> enoffice/program/soffice.exe</value>
> 
> Why doesn't $APPLICATIONS_DEFAULT_ROOT get substituted?
> 
> Thanks in advance, Gernot
> 
> -- 
>     __o  Gernot Stenz  
> e-mail:stenzg at informatik.tu-muenchen.de        /\
>    -\<,          WWW:  http://www4.in.tum.de/~stenzg          
>      /\/--\
> _(_)/(_)_London - Paris: 3547 
> km__________________________________/      \
> 
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de 
> https://lists.berlios.de/mailman/listinfo/izpack-users
> 



More information about the izpack-users mailing list