Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



Sign in to follow this  
benners

Variable woes

Recommended Posts

benners    0

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

Share this post


Link to post
Share on other sites

Wraith    0

I'll look into it in the near future - been extremely busy lately.

In the meantime, you might want to look up XML entities, they should be able to solve your problem.

Share this post


Link to post
Share on other sites
benners    0

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

Share this post


Link to post
Share on other sites
Wraith    0

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.

Share this post


Link to post
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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×