I don't know about using it programmatically. However, I found that the only way to use regserver32 to install an ocx in windows 7 is to open a dos window as an administrator and run it from there.

And get rid of the uac! We are big boys and know how to do things. We don't need Microsoft to "protect" us with the uac, at least not me !! A good antivirus software like Kaspersky plus a password in your router is all you need

Rafael Copquin


El 10/06/2015 a las 10:16, Dave Crozier escribió:
Has anyone in this wonderful throng of people had any success using regsvr32 to 
register an OCX programmatically in VFP.

I have a routine that used to run brilliantly on XP but it just fails on Win 7 
despite giving the indication that all is OK. I am sure it is to do with 
elevated permissions and UAC.

The additional problem is also to decide whether to copy the OCX into the Windows\System, 
or Windows\System32 or Windows\SYSWOW64 folder before registering it as the OCX's 
required are held on a network share, but that is just a nicety just to package the OXC 
installation up into a one off "if it isn't there then install it" routine.

I would ideally like to use only inbuilt VFP commends (DLL Calls etc) and not 
have to shell out to the command window on both 32 and 64 bit operating system 
versions.

Thanks in anticipation.
Dave




--- StripMime Report -- processed MIME parts ---
multipart/alternative
   text/plain (text body -- kept)
   text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to