You probably have a COM object as part of your project. When VFP compiles it wants to register any COM classes and you need to Run As Admin to do that.
You can check your project, look on the server tabs. if there are COM objects showing up there they'll register when you compile.
The only workarounds for this are:
* Remove the COM class (or make it conditionally COM with a double #define block)
* Run VFP as an Administrator
Or don't compile your project and run PRGs.
We have this same issue with Web Connection BTW. Since servers are COM objects they write to the registry and require Admin rights when building and running the EXE. Most of my applicatinos implement one COM server or interface so this really applies to just about any application and it's one reason i always run from source files until I need to build.
One more thing that shows the age of FoxPro... :-) when running as an Admin was the norm.
+++ Rick ---
>Hi all,
>
>Have moved my dev stuff to a new Win 10 PC (from Win 7) and when I compile a project into an .exe, I get the message "Access to system registry denied". I take it it is from trying to register a type library.
>
>Could not find an option either in the project or general options to turn off registering the type library (not even sure it is needed).
>
>Albert