0

We are using InstallShield 2013 Limited Edition with TFS 2013 Build Server. Occasionally our tfs XAML builds failed with error:

C:\Program Files (x86)\MSBuild\InstallShield\2013Limited\InstallShield.targets (108): Exception Caught

License of InstallShield 2013 Limited Edition is successfully activated on Build Server Machine(WIN 7 machine). Due to this error, complete build failed. To fix this, we need to restart tfs build server machine. Please suggestion some permanent fix for this issue. Let me know if need any additional information.

Shubham
  • 15
  • 5
  • What's the exception that's caught? – Daniel Mann Oct 12 '16 at 16:54
  • @DanielMann Not sure about the exception. Check following screenshotswhich showing the error I am getting during build failure. Also, check corresponding information at Build Explorer app: http://imgur.com/a/04rmE and http://imgur.com/a/gbpyq – Shubham Oct 13 '16 at 11:33
  • "To fix this, we need to restart tfs build server machine.", do you mean the issue does not occur after restart the build server? – Eddie Chen - MSFT Oct 18 '16 at 09:32
  • Yes, just after the tfs build server restart, the error doesn't appears immediately. However, it should occur in future build sporadically. – Shubham Oct 21 '16 at 09:26

1 Answers1

0
  1. If you get error saying InstallShield.Tasks.dll was not found or could not be loaded like screenshot below:

enter image description here

Solution:

Set the MSBuild Platform on your Build Definition to “X86” as shown below:

enter image description here

  1. If you get error saying InstallShield Licence has expired like screenshot below:

enter image description here

Solution:

Set your Build Service to run with a domain account instead of “NT_AUTHORITY\Network Service”.

Cece Dong - MSFT
  • 29,631
  • 1
  • 24
  • 39
  • I am already having have both the settings on the build definition and build-server machine. Check following screenshots which shows the error I am getting during build failure. Also, check corresponding information at Build Explorer app. [link][link] [link][link] Not sure how to get exact error/exception corresponding to this. Please confirm. – Shubham Oct 13 '16 at 11:30
  • Another significant point is, at the time of build failure due to installshield error, following error appears at event viewer: Upgrade Error: Windows Agent upgrade request on hold while awaiting shutdown of MSIExec. This may require manual intervention to correct. – Shubham Oct 13 '16 at 11:31
  • I couldn't reproduce your issue on my side. But according to your log file, you are using 2013Limited, which is not the latest version. Please get the latest version from website http://learn.flexerasoftware.com/content/IS-EVAL-InstallShield-Limited-Edition-Visual-Studio?lang=1033&ver=ult and have another try. (I tested with the latest version of InstallShield and with TFS 2013.5+VS 2013.5). – Cece Dong - MSFT Oct 14 '16 at 02:06