![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2005
Posts: 3
Rep Power: 0
![]() |
Installing ocx files
I've created a custom activex control in vb6. It runs fine on my machine (where vb6 is installed). I used the Package and Deployment Wizard to create the files necessary to install it on another computer. When I try, I get "Setup cannot continue because some of the system files are out of date. Do you want setup to update these files?" If you say yes, it asks for a reboot. When its rebooted, I try again, and I get the same messages. What am I missing? The computer I'm trying to install it on is running Windows 2000, if it matters.
|
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Feb 2005
Location: PA, USA
Posts: 254
Rep Power: 4
![]() |
found this on some site..
what happens if you ignore the error and continue installation, does it work anyways? according to my source: the setup program attempts to install the files for those services into the Windows system directory. The Windows File Protection (WFP) feature of Windows 2000 and Windows XP prevents the replacement or updating of existing system files by anything other than a Microsoft signed hotfix or service pack. On systems in which these supplemental files already exist, which is generally true of Windows 2000 and Windows XP, the attempt to install the files is therefore prevented as expected. The Windows Installer issues the above error message to inform you that the file was not installed. Ignore the error, close the Error window, and continue with the installation. The file already exists on your system. lemme know if that works, if not we'll try something else
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
|
|
#3 |
|
Expert Programmer
|
Try copying the OCX and OCA files manually into %systemroot%\system32, then run regsvr32 %systemroot%\system32\yourfile.ocx on the other machine. If that's successful, a program compiled to use that control should work. However there's usually very little need to make yet another library file to weigh windows down with: the overhead is less if you compile a UserControl into the application that uses it, and it's less hassle and will always work as the code is rendered inline before linking.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|