Jump to content

Variable woes


benners

Recommended Posts

I am having problems trying to create variables that contain variables and text.

I am trying to create a variable #APP# that points to my applications folder, it is made up from the #SOURCEDRIVE# variable and Applications

<APP>#SOURCEDRIVE#\Applications</APP>

to cut down on the old Carpel Tunnel :D , the trouble is whilst it works when running in Windows it does not work running from cmdlines or GUIRunOnce. The same is said for other variables that are created the same way, i.e #IMG# created from #XPLODE# and images

<IMG>#XPLODE#\images</IMG>

the variables inside the variables are not expanded they are used as a string, so the log file reports

Install log: Running: '#SOURCEDRIVE#\Applications\alcohol\setup.exe /verysilent'

Error during execution: File not found..

Is there a way to accomplish what I want to do?, xml and logfiles attached.

xplode.rar

Link to comment
Share on other sites


Thanx Wraith, who knew I was using entities already with the &.

How would adding entities differ from adding elements under xplodes environment tag, it seems to me like the #SOURCEDRIVE# variable is not being expanded when it is part of a string?.

Thanx again for the help and I hope you get some chill time soon

Link to comment
Share on other sites

Well, the XML parser works through the entities before the environment variables.... so if you have an entity called &blah; pointing to "#SOURCEDRIVE#\Install", then it will definitely be used before any other environment variables are passed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...