This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Need to pass dos variable back to Installanywhere
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 19, 2008
04:39 PM
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:
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:
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 19, 2008
06:10 PM
Depending how you're launching your installer, would $lax.nl.env.SESSION$ work in this case?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 20, 2008
03:24 PM
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:
:confused:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 22, 2008
03:14 PM
Does anyone know a way to pass a dos variable back to InstallAnywhere?
:confused:
:confused:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 22, 2008
03:58 PM
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.
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.