# Wise Failed with Return Code: 740

**URL:** https://www.finalbuilder.com/forums/t/wise-failed-with-return-code-740/3320
**Category:** Bugs
**Created:** [November 29, 2010, 5:39am UTC](https://www.finalbuilder.com/forums/t/wise-failed-with-return-code-740/3320 "2010-11-29T05:39:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wasowerby](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/w/b77776/32.png) [@wasowerby](https://www.finalbuilder.com/forums/u/wasowerby)
#### Post date: [November 29, 2010, 5:39am UTC](https://www.finalbuilder.com/forums/t/wise-failed-with-return-code-740/3320/1 "2010-11-29T05:39:10Z")

</div>

Upgraded my PC to windows 7 64-bit and now my iPhone build fails with the above error. I can run the .wse script ok both from within Wise 9 and also from the command prompt using the same command line contained in the FB error message:

Using command line : /c /d\_INST\_VER\_=3.0.2.0 /d\_PROD\_VER\_=3.02 /d\_DIR\_VER\_=V302 /d\_CONDUIT\_DIR\_VER\_=V302 "E:\iPhone Project\Skylog Pro\V302\Install\InstiPhone302\_P.wse"  
&nbsp;

It's just the FB 6.3.0.2172 script which fails. Have you seen this before?

Regards...Andrew

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 29, 2010, 8:51am UTC](https://www.finalbuilder.com/forums/t/wise-failed-with-return-code-740/3320/2 "2010-11-29T08:51:58Z")

</div>

This looks like a UAC error… exit code 740 is ERROR\_ELEVATION\_REQUIRED - [http://msdn.microsoft.com/en-us/library/ms681388(VS.85).aspx](http://msdn.microsoft.com/en-us/library/ms681388(VS.85).aspx)   
  
 It seems Wise is requesting elevated privileges, not sure why but your only choice is to turn off UAC or run FinalBuilder as Administrator (right click and select the Run as administrator menu) … it’s not possible to programmatically execute a program with elevated privileges and capture stdout (the only way is with shell execute, not at all useful).

---

<div class="post-metadata">

### Author: ![wasowerby](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/w/b77776/32.png) [@wasowerby](https://www.finalbuilder.com/forums/u/wasowerby)
#### Post date: [November 29, 2010, 11:17am UTC](https://www.finalbuilder.com/forums/t/wise-failed-with-return-code-740/3320/3 "2010-11-29T11:17:42Z")

</div>

Thanks Vincent, that was indeed the problem. As you say, can't think why Wise is requesting admin privileges only when run from FB - and in W7.

Regards...Andrew

&nbsp;

---

<div class="post-metadata">

### Author: ![wasowerby](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/w/b77776/32.png) [@wasowerby](https://www.finalbuilder.com/forums/u/wasowerby)
#### Post date: [November 29, 2010, 11:41am UTC](https://www.finalbuilder.com/forums/t/wise-failed-with-return-code-740/3320/4 "2010-11-29T11:41:11Z")

</div>

For anyone else who may have this problem in the future, running FB in Windows XP SP2 compatibility mode fixes the problem.

Regards...Andrew
