MATLAB: Do I receive an error when building an Excel Add-In using MATLAB Builder for Excel on Windows Vista

MATLAB Builder EX

I am building a simple Excel Add-In using MATLAB Builder EX 1.2.11 (R2008b), but receive the following error:
<snip>
–> mwregsvr C:\Users\myUser\Documents\MATLAB\testExBuilder\src\testExBuilder_1_0.dll
Error: DllRegisterServer in C:\Users\myUser\Documents\MATLAB\testExBuilder\src\testExBuilder_1_0.dll failed
C:\PROGRA~1\MATLAB32\BIN\MEX.PL: Error: regsvr32 for C:\Users\myUser\Documents\MATLAB\testExBuilder\src\testExBuilder_1_0.dll failed.
Error: An error occurred while shelling out to mbuild (error code = 2).
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1.
There were errors during compilation process.

Best Answer

This enhancement has been incorporated in Release 2011a (R2011a). For previous product releases, read below for any possible workarounds:
This change has been incorporated into the documentation in MATLAB Builder EX 1.2.13 (R2009b). For previous releases, read below for any additional information:
There are known issues when building components using MATLAB Compiler on the Microsoft Windows Vista operating system. These issues have been documented in our Release Notes at the following page:
Note that the build trace for the Excel Add-In suggests failure in registration of the compiled DLL. This may occur on Microsoft Windows Vista when MATLAB is not running in Administrator Mode.
In order to ensure that you are running MATLAB in Administrator Mode, please start-up MATLAB using one of the following methods:
1. Locate matlab.exe in the <matlabroot>/bin/ folder, right-click and 'Run as Administrator'.
2. If starting MATLAB up using a shortcut, ensure that MATLAB always runs as Administrator. Right-click on the shortcut, and click the 'Advanced' button on the Shortcut page to get to the Advanced Properties dialog. Ensure that the checkbox for "Run as administrator" is selected.