PDA

View Full Version : MsBuild Problem for Upgraded Project



AdsDavis
05-11-2012, 10:13 AM
Hi,

Updated to Spring. Projects Build file from Installshield and Visual Studio.
However, when using MsBuild I get a popup message from MsBuild

The program can't start because BECommonLib.dll is missing from your computer. Try reinstalling the program to fix this problem.

Msbuild then returns a -5056 error.

My msbuild proj files calls
<MSBuild Projects="Installs\MyProduct\MyProduct64msi.isproj" Targets="Build"/>

The isproj file correctly details the 2012Spring InstallShield.targets file.
The Installshield.targets file correctly details the InstallShieldPath variable
<InstallShieldPath Condition=" '$(InstallShieldPath)' == '' ">C:\Program Files (x86)\InstallShield\2012Spring\System</InstallShieldPath>

The System directory contains the BECommonLib.dll file.

Any clues as to why I get this problem?

Thanks,

Adam

AdsDavis
05-11-2012, 11:29 AM
Workaround:

I set the PATH variable to include the Installshield Spring System directory and MSBuild works fine again.

Therefore it seems that there is a problem around the InstallshieldPath property.
I used a <Message Text="InstallShieldPath: $(InstallShieldPath)" Importance="High"/> in the Installshield.targets file.
In the Visual Studio Command Prompt (2010) it outputs correctly during the build.

Adam