wraithdu
26th November 2007, 20:31
Is there a way to make NSIS do double variable expansions? I'm trying to set some environment variables that are read from an INI file. The values in the INI file reference variables set in the launcher. For ex the INI has sections like -
[1]
name=TCDrive
value=$MEDIAROOT
The var $MEDIAROOT is derived in the launcher. The name and value are read from the INI into $R0 and $R1, and the System call uses "$R0" and "$R1". What I get is an environment variable like (type set at command prompt) -
TCDrive=$MEDIAROOT
So how can I get NSIS to do the double expansion so I get the correct env var?
[1]
name=TCDrive
value=$MEDIAROOT
The var $MEDIAROOT is derived in the launcher. The name and value are read from the INI into $R0 and $R1, and the System call uses "$R0" and "$R1". What I get is an environment variable like (type set at command prompt) -
TCDrive=$MEDIAROOT
So how can I get NSIS to do the double expansion so I get the correct env var?