License denied from Build Sever
C:\Program Files (x86)\MSBuild\InstallShield\2015Limited\InstallShield.targets(108, 3): -7159: The product license has expired or has not yet been initialized.
I have run the setup program and given it my license and it tells me that it is registered.
InstallShield in the background (e.g. by build server), error -7159
Build server had InstallShield installed and a serial number entered.
The user that the build server runs as can run builds from the command line, interactively.
Only when the build should run in the background, as a service, the license error occurs.
error : -7159: The product license has expired or has not yet been initialized.
Set your Build Service to run with a domain account
It's a known issue. This will happen if your BuildService is running with a local account such as “NT_AUTHORITY\Network Service”. Set your Build Service to run with a domain account and this error will go away.