# Register OCX \\ DLL fail on win7 ent return code 3

**URL:** https://www.finalbuilder.com/forums/t/register-ocx-dll-fail-on-win7-ent-return-code-3/3468
**Category:** Bugs
**Created:** [March 1, 2013, 10:57am UTC](https://www.finalbuilder.com/forums/t/register-ocx-dll-fail-on-win7-ent-return-code-3/3468 "2013-03-01T10:57:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 1, 2013, 10:57am UTC](https://www.finalbuilder.com/forums/t/register-ocx-dll-fail-on-win7-ent-return-code-3/3468/1 "2013-03-01T10:57:11Z")

</div>

Running FB v7.0.0.2056. Win 7 Ent (up to date)   
 UAC completely switched off.   
  
 Manually reg a dll (CMD) - fine.   
 Reg DLL via script (bat) - fine.   
 Start FB and run reg dll - fine.   
  
 Run a script (bat) calling FB - fail   
  
 Script is called with:   
 Start.bat   
 “C:\Proggy Files\FB7\FBCMD.exe” /P"the file" /V   
  
 Errant command is:   
 [Register DLL\OCX]   
 Registering C:\blah\blah\blah.dll   
 Running RegSvr32 with commandline : -s C:\blah\blah\blah.dll   
 Execute failed, return code : 3   
  
 Since this works when I open the IDE & run it or any of the above methods then I have to check if this is a bug in the software, can you confirm please.

---

<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: [March 7, 2013, 10:24am UTC](https://www.finalbuilder.com/forums/t/register-ocx-dll-fail-on-win7-ent-return-code-3/3468/2 "2013-03-07T10:24:32Z")

</div>

This is not a bug in FinalBuilder, it’s just reporting what regsvr32 is returning (3 is ERROR\_PATH\_NOT\_FOUND). Without seeing your full script and project it’s impossible to say why this happens. BTW, turning off UAC doesn’t solve all security problems.
