MATLAB: Does using model reference on a non-administrator Windows account fail in Simulink 7.6 (R2010b)

permissionsdksimulink

I am trying to use model reference in my model. I get the following error message:
Z:\Mathworks\team\fullsim\slprj\sim\cage_speed_control>call "c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\..\..\VC\vcvarsall" AMD64
Setting environment for using Microsoft Visual Studio 2008 Beta2 x64 tools.
WindowsSdkDir not found
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
C:\PROGRA~1\MATLAB\R2010b\rtw\c\tools\vctools.mak(15) : fatal error U1052: file 'ntwin32.mak' not found
Stop.
The make command returned an error of 2
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
### Real-Time Workshop build procedure for model: 'cage_speed_control' aborted due to an error.

Best Answer

This error occurs if you do not have read and execute permission to the reg.exe file in the C:\Windows\System32 directory. Some non-administrator Windows accounts do not have access to any executable files in that directory. This issue pertains to all versions of Windows from Windows XP onwards.
To work around this issue, enable read and execute access to the C:\Windows\System32\reg.exe file.