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 IA can access env variable during build time?
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
‎Jun 26, 2008
05:28 AM
how IA can access env variable during build time?
I have an environment variable. How will IA access during build time?
I have two scripts, which will be run in post-installation. But depending on the environment variable, the IA should bundle one script.
I have two scripts, which will be run in post-installation. But depending on the environment variable, the IA should bundle one script.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 26, 2008
09:07 AM
Are you talking about bundling a file into your final installer depending upon the platform the installer was built on? If so, just replace that file in your process before creating your installer.
Why would IA need to access a system environment variable at build time? IA isn't really being executed at build/compile time. If it is a location, then use source paths.
Why would IA need to access a system environment variable at build time? IA isn't really being executed at build/compile time. If it is a location, then use source paths.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 27, 2008
05:21 AM
sandy_2008 wrote:
I have an environment variable. How will IA access during build time?
I have two scripts, which will be run in post-installation. But depending on the environment variable, the IA should bundle one script.
There is no direct way. This is the information I got from the IA technical support. What you can do is:
1. Have some Variables defined in your project and have logic for bundling the script based on the value of this variable.
2. Before building directly modify the iap.xml file using xslts or grep or some other mechanism to change the value of the variable in the xml file.
This should solve your problem.
Regards,
Manish
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 27, 2008
07:08 AM
Please also see the IA help topic "Adding and Removing Source Paths"; as purcellk24 mentions, you can use source paths, and that help topic describes how to set one with an environment variable...