cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
newiauser
Level 3

Need to pass dos variable back to Installanywhere

Hi

After running a target bat file a dos variable has a string value from a text file as below. This can be echoed and the value returned. How can IA see the variable to be entered into a file. Using the Modify single test file no problem to do this.

Set /p SESSION=
echo %SESSION%

Thanks

newiauser:confused:
Labels (1)
0 Kudos
(4) Replies
RobertDickau
Flexera Alumni

Depending how you're launching your installer, would $lax.nl.env.SESSION$ work in this case?
0 Kudos
newiauser
Level 3

Have tried this. If a Display is done with echo $lax.nl.env.SESSION$ after running the bat file it is empty. Does this have to be declared first? If so how does this need to be declared.

:confused:
0 Kudos
newiauser
Level 3

Does anyone know a way to pass a dos variable back to InstallAnywhere?

:confused:
0 Kudos
RobertDickau
Flexera Alumni

Apologies, I misunderstood the question to be about reading existing environment variables...

I don't think environment variables flow backward into the running installation, but perhaps you could specify that your batch file feed its (echo) output into an InstallAnywhere variable? The help for the Execute Script/Batch File action has a bit more information.
0 Kudos