Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Sign in to follow this  
Followers 0
benners

Variable woes

4 posts in this topic

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

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


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

0

Share this post


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

0

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.