benners Posted August 10, 2005 Posted August 10, 2005 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 , 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
Wraith Posted August 13, 2005 Posted August 13, 2005 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.
benners Posted August 14, 2005 Author Posted August 14, 2005 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
Wraith Posted August 14, 2005 Posted August 14, 2005 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now