Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't register a VFP COM exe Win 7
Message
 
À
07/07/2011 16:57:24
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:
01517661
Vues:
67
COM registration requires administrator privileges because it needs to write to the HKLM key in the registry. COM registration should be done as part of a setup program (which should elevate automatically to an Administrator) rather than from inside of an application. And this is precisely why - doing it in your own code can bite you in the ass not just on Win7 even in XP when running with non-admin mode.

If you do it from your application request the user to restart the application in Administrator mode to do so...

+++ Rick ---

>Hi all,
>
>I need to run my app in XP and Win 7, but I can't register my VFP COM EXEs in Win 7.
>Build exe fails with something along the lines of "Can't update the registry..."
>MyCOMObj.exe /regserver returns nothing, just like in XP, but doesn't register the COM object.
>
>I can run a bat file as admin, but I want to do the registration in code as part of an install/update app like I'm doing in XP.
>
>Anyone do this in VFP/Win 7?
>
>Thanks,
>Gary
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform