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: How can I set environment viariable in the pre-install phase
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
Jul 11, 2011
05:35 AM
How can I set environment viariable in the pre-install phase
Hi,
I have a jar for an CustomCodePanel action in the Pre-Install Task, the jar file uses jni technology to load a C++ library. I need to set LD_LIBRARY_PATH so that IA could find the C++ library. There is a "Set Environment Viariable" action but it's only available in the Install Task. How could I set env in the Pre-Install Task
Best regards
BZ
I have a jar for an CustomCodePanel action in the Pre-Install Task, the jar file uses jni technology to load a C++ library. I need to set LD_LIBRARY_PATH so that IA could find the C++ library. There is a "Set Environment Viariable" action but it's only available in the Install Task. How could I set env in the Pre-Install Task
Best regards
BZ
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 13, 2011
04:10 AM
Hi,
You can also achieve this using "Execute Script/Batch file action"
At Pre-Install "Add Action" --> "Execute Script/Batch file action"
Add the script in the Text Area
set path=%path%;
echo %path%
Where is the absolute/relative path of your C++ library.
To confirm whether the path is set ,the result is re-directed to the variables in "Execute Script/Batch file action" and hence can be displayed in
"Display Message Panel"
and then execute your "custom code Panel" action.
Hope this helps?
Thanks,
Madhav Pai
Engineering-InstallAnywhere
Flexera Software
You can also achieve this using "Execute Script/Batch file action"
At Pre-Install "Add Action" --> "Execute Script/Batch file action"
Add the script in the Text Area
set path=%path%;
echo %path%
Where
To confirm whether the path is set ,the result is re-directed to the variables in "Execute Script/Batch file action" and hence can be displayed in
"Display Message Panel"
and then execute your "custom code Panel" action.
Hope this helps?
Thanks,
Madhav Pai
Engineering-InstallAnywhere
Flexera Software
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)