Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't register a VFP COM exe Win 7
Message
From
07/07/2011 18:53:17
 
 
To
07/07/2011 18:05:02
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Miscellaneous
Thread ID:
01517633
Message ID:
01517641
Views:
80
Along with what others have said, Is it Windows 7 64 bit? Needs to go c:\program files (x86) and the registry settings in WOW64 with something like:

%systemroot%\SysWoW64\regsvr32.exe C:\MyApp\my.ocx

See more information here:
http://support.microsoft.com/kb/249873



>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
>
>
>>The Install has to run with elevated privledge. If you use Inno, InstallShield, etc, it should ask for elevation when you run the install.
>>
>>>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
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform