Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't register a VFP COM exe Win 7
Message
De
07/07/2011 19:56:42
 
 
À
07/07/2011 18:05:02
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Divers
Thread ID:
01517633
Message ID:
01517644
Vues:
60
Again, you HAVE to do this with elevated privledges. You simply can't make an API call and make it happen. ShellExecuteEx has a provision for requesting elevated privledge. The user will be prompted to authorize the elevation.

The other way is to use a Setup.exe. Windows 7 will automatically request elevated privledge.

>Thanks for the quick reply.
>
>My app is a VFP app launcher that looks for locally installed components such as classlibs, fxp's, etc and updates as needed and then runs the main executable. One can debate the pros and cons of the technique, but it has worked well for years under XP and 2000. I also check for some COM objects used by several of my apps and if they aren't present, copy them locally and register them.
>
>Do you know how to do this programmatically in VFP under Win 7? With Shell or API calls or...?
>
>Thanks,
>
>Gary
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform