Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 29th, 2005, 4:06 PM   #1
ParadiseIsle
Newbie
 
Join Date: Nov 2005
Posts: 3
Rep Power: 0 ParadiseIsle is on a distinguished road
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.
ParadiseIsle is offline   Reply With Quote
Old Nov 30th, 2005, 5:08 PM   #2
melbolt
Hobbyist Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 233
Rep Power: 4 melbolt is on a distinguished road
Send a message via AIM to melbolt Send a message via Yahoo to melbolt
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
melbolt is offline   Reply With Quote
Old Dec 1st, 2005, 2:56 PM   #3
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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.
Rory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:52 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC