Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Variable woes

- - - - -

  • Please log in to reply
3 replies to this topic

#1
benners

benners

    Senior Member

  • Member
  • PipPipPipPip
  • 693 posts
  • Joined 29-December 03
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.

Attached Files


I never let school interfere with my education


How to remove advertisement from MSFN

#2
Wraith

Wraith

    Dr. Nick

  • Member
  • PipPipPipPipPipPip
  • 1,256 posts
  • Joined 01-January 04
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.
Posted ImagePosted Image
Posted ImagePosted Image
Posted ImagePosted Image

#3
benners

benners

    Senior Member

  • Member
  • PipPipPipPip
  • 693 posts
  • Joined 29-December 03
Thanx Wraith, who knew I was using entities already with the &amp;.

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
I never let school interfere with my education

#4
Wraith

Wraith

    Dr. Nick

  • Member
  • PipPipPipPipPipPip
  • 1,256 posts
  • Joined 01-January 04
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.
Posted ImagePosted Image
Posted ImagePosted Image
Posted ImagePosted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users