cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
waltoj10
Level 2

Build Time Variables don't work via Environment on Windows Server 2012 R2

We have an InstallAnywhere 2015 project configured with several Build Time Variables. These build time variables are set in the environment using IA_BTV_VARIABLE_NAME. The project runs just fine on Windows 7, but the same project pulled directly from the source repository does not work on Windows Server 2012 R2.

When running on Windows Server 2012 R2, this statement is printed:
[buildinstaller] Could not read environmental variables from the system for build time variables.

This is very odd since an administrator account is being used. Also, the variables are visible via the Command Prompt, PowerShell, and even Ant. So it is a mystery why InstallAnywhere 2015 is unable to read them.
Labels (1)
0 Kudos
(2) Replies
waltoj10
Level 2

There happens to be a work around for this problem. Tell Windows to run the InstallAnywhere 2015 JRE in Windows 7 Compatibility mode. In a default install, the JRE is here: C:\Program Files (x86)\InstallAnywhere 2015\jre\bin\java.exe. This allows InstallAnywhere to use the environment for build time variables on Windows 8/Server 2012 and higher.
0 Kudos
ericke
Level 2

Click on “System and Security” Click on “System” Click on “Advanced System Settings” on the left pane. System Properties will be opened as below.  PrepaidCardStatus Login Click the Environment Variables and add your PATH. It works the same way as that of the earlier versions. But only the location is changed. Happy Coding,

0 Kudos