cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jaredfx
Level 4

64-bit Version?

Is there a 64-bit version of InstallShield LE? When building the installation on our build machine (Server 2008 x64), I get the following error: (TFS 2010 RTM)

C:\Program Files (x86)\MSBuild\InstallShield\2010Limited\InstallShield.targets (89): The "InstallShield.Tasks.InstallShield" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\InstallShield\2010Limited\InstallShield.Tasks.dll. Could not load file or assembly 'file:///C:\Program Files (x86)\MSBuild\InstallShield\2010Limited\InstallShield.Tasks.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

I'm assuming that this error is due to the fact that MSBuild is running in 64-bit mode (TFS 2010 RTM). When I run a local build on my machine inside Visual Studio 2010 RTM, the installation works great. In that scenario, MSBuild runs in 32-bit mode.

Any help would be appreciated. Thanks!
0 Kudos
2 Replies
Marwan
Level 7

From the help library:

If you are queuing a build on a 64-bit build machine, ensure that you have configured the build definition for your InstallShield project so that the 32-bit version of MSBuild is used to load the InstallShield.Tasks.dll file (which is a 32-bit file); otherwise, you will encounter a build error informing you that the InstallShield.Tasks.dll file could not be loaded. To select the 32-bit version of MSBuild, click the Process tab of your build definition in Team Explorer. Then, under the Advanced node, find the MSBuild Platform setting, and select x86. Note that if you are using a 32-bit build machine, you can select either Auto or x86 for the MSBuild Platform setting.
0 Kudos
jaredfx
Level 4

Thank you! I didn't realize there was an MSBuild platform setting. Your suggestion worked great!
0 Kudos