Hi chaps
I realise that this is a .NET group, but please don't shoot me down quite
yet. I looked in the vb classic groups and there seems to be so little
activity there that I was not hopeful of a prompt response, and I figure
that the guys here probably came from vb classic anyway. So, apology over
....
I have an application in vb6, and I want to install it on a system that has
never seen the vb development environment, or any of the vb runtime files
(unless they are part of the OS). For reasons best known only to my client,
it should be an xcopy install.
I can identify all the files needed to run the application, but when I copy
them all to the application directory, the program starts and then falls
over with an ActiveX unable-to-create-object type of error. I am guessing
that this is because one or more of the files need to be registered, but
aren't.
The first question is: what actually happens when I run regsvr32 on a dll or
ocx? I imagined that an entry was added to the registry so that the file can
be found, but perhaps there is more to it than that. The file is in the
application directory, but that does not appear to be sufficient. What else
happens, and can I avoid registering the file(s)?
The second question is: is there any way to perform an xcopy installation of
a vb6 application?
TIA
Charles 9 2129
Hi,
As long as all the activex controls used by the vb6 application are
registered and the vb6 run time is installed it should work. http://www.microsoft.com/downloads/d...displaylang=en
Ken
------------------
"Charles Law" <bl***@nowhere. com> wrote in message
news:OI******** ******@TK2MSFTN GP02.phx.gbl... Hi chaps
I realise that this is a .NET group, but please don't shoot me down quite yet. I looked in the vb classic groups and there seems to be so little activity there that I was not hopeful of a prompt response, and I figure that the guys here probably came from vb classic anyway. So, apology over ...
I have an application in vb6, and I want to install it on a system that has never seen the vb development environment, or any of the vb runtime files (unless they are part of the OS). For reasons best known only to my client, it should be an xcopy install.
I can identify all the files needed to run the application, but when I copy them all to the application directory, the program starts and then falls over with an ActiveX unable-to-create-object type of error. I am guessing that this is because one or more of the files need to be registered, but aren't.
The first question is: what actually happens when I run regsvr32 on a dll or ocx? I imagined that an entry was added to the registry so that the file can be found, but perhaps there is more to it than that. The file is in the application directory, but that does not appear to be sufficient. What else happens, and can I avoid registering the file(s)?
The second question is: is there any way to perform an xcopy installation of a vb6 application?
TIA
Charles
Hi Ken
Thanks for the reply.
I might be able to get away with the VB runtime being a pre-requisite of the
installation, but it might be more difficult when it comes to component
controls of the application.
I appreciate that ActiveX controls need to be registered, but I would like
to understand the registration process a bit better. What actually happens
when a control is "registered "?
I have tried placing all required files in a single directory, but I get
ActiveX Unable to create object ~. If I register the controls I still get
the same thing, so there must be more to it than that. If I create a setup
package with the SDW then when I run it all is well.
Charles
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:%2******** *******@TK2MSFT NGP02.phx.gbl.. . Hi,
As long as all the activex controls used by the vb6 application are registered and the vb6 run time is installed it should work.
http://www.microsoft.com/downloads/d...displaylang=en
Ken ------------------ "Charles Law" <bl***@nowhere. com> wrote in message news:OI******** ******@TK2MSFTN GP02.phx.gbl... Hi chaps
I realise that this is a .NET group, but please don't shoot me down quite yet. I looked in the vb classic groups and there seems to be so little activity there that I was not hopeful of a prompt response, and I figure that the guys here probably came from vb classic anyway. So, apology over ...
I have an application in vb6, and I want to install it on a system that has never seen the vb development environment, or any of the vb runtime files (unless they are part of the OS). For reasons best known only to my client, it should be an xcopy install.
I can identify all the files needed to run the application, but when I copy them all to the application directory, the program starts and then falls over with an ActiveX unable-to-create-object type of error. I am guessing that this is because one or more of the files need to be registered, but aren't.
The first question is: what actually happens when I run regsvr32 on a dll or ocx? I imagined that an entry was added to the registry so that the file can be found, but perhaps there is more to it than that. The file is in the application directory, but that does not appear to be sufficient. What else happens, and can I avoid registering the file(s)?
The second question is: is there any way to perform an xcopy installation of a vb6 application?
TIA
Charles
If an ActiveX file has system dependencies in the way of dll files, the
VB6 packager picks up on these, and will include the dll files with the
instalation package. There could be some key VB dll files your
application is looking for that haven't been included. If you use the
packager that comes with VB6, you can build a dependency file to get a
list of all the files that your application needs.
T
Charles Law wrote: Hi Ken
Thanks for the reply.
I might be able to get away with the VB runtime being a pre-requisite of the installation , but it might be more difficult when it comes to component controls of the application.
I appreciate that ActiveX controls need to be registered, but I would like to understand the registration process a bit better. What actually happens when a control is "registered "?
I have tried placing all required files in a single directory, but I get ActiveX Unable to create object ~. If I register the controls I still get the same thing, so there must be more to it than that. If I create a setup package with the SDW then when I run it all is well.
Charles
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message news:%2******* ********@TK2MSF TNGP02.phx.gbl. ..
Hi,
As long as all the activex controls used by the vb6 application are registered and the vb6 run time is installed it should work.
http://www.microsoft.com/downloads/d...displaylang=en
Ken ------------------ "Charles Law" <bl***@nowhere. com> wrote in message news:OI****** ********@TK2MSF TNGP02.phx.gbl. ..
Hi chaps
I realise that this is a .NET group, but please don't shoot me down quite yet. I looked in the vb classic groups and there seems to be so little activity there that I was not hopeful of a prompt response, and I figure that the guys here probably came from vb classic anyway. So, apology over ...
I have an application in vb6, and I want to install it on a system that has never seen the vb development environment, or any of the vb runtime files (unless they are part of the OS). For reasons best known only to my client, it should be an xcopy install.
I can identify all the files needed to run the application, but when I copy them all to the application directory, the program starts and then falls over with an ActiveX unable-to-create-object type of error. I am guessing that this is because one or more of the files need to be registered , but aren't.
The first question is: what actually happens when I run regsvr32 on a dll or ocx? I imagined that an entry was added to the registry so that the file can be found, but perhaps there is more to it than that. The file is in the application directory, but that does not appear to be sufficient. What else happens, and can I avoid registering the file(s)?
The second question is: is there any way to perform an xcopy installation of a vb6 application?
TIA
Charles
Hi Tom
That is actually how I generated the list of files to copy. I looked at the
cab file created by the SDW and manually copied all the files that it
contained to the target directory.
Charles
"tomb" <to**@technetce nter.com> wrote in message
news:s2******** ***********@big news4.bellsouth .net... If an ActiveX file has system dependencies in the way of dll files, the VB6 packager picks up on these, and will include the dll files with the instalation package. There could be some key VB dll files your application is looking for that haven't been included. If you use the packager that comes with VB6, you can build a dependency file to get a list of all the files that your application needs.
T
Charles Law wrote:
Hi Ken
Thanks for the reply.
I might be able to get away with the VB runtime being a pre-requisite of the installation, but it might be more difficult when it comes to component controls of the application.
I appreciate that ActiveX controls need to be registered, but I would like to understand the registration process a bit better. What actually happens when a control is "registered "?
I have tried placing all required files in a single directory, but I get ActiveX Unable to create object ~. If I register the controls I still get the same thing, so there must be more to it than that. If I create a setup package with the SDW then when I run it all is well.
Charles
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message news:%2****** *********@TK2MS FTNGP02.phx.gbl ...
Hi,
As long as all the activex controls used by the vb6 application are registered and the vb6 run time is installed it should work.
http://www.microsoft.com/downloads/d...displaylang=en
Ken ------------------ "Charles Law" <bl***@nowhere. com> wrote in message news:OI***** *********@TK2MS FTNGP02.phx.gbl ...
Hi chaps
I realise that this is a .NET group, but please don't shoot me down quite yet. I looked in the vb classic groups and there seems to be so little activity there that I was not hopeful of a prompt response, and I figure that the guys here probably came from vb classic anyway. So, apology over ...
I have an application in vb6, and I want to install it on a system that has never seen the vb development environment, or any of the vb runtime files (unless they are part of the OS). For reasons best known only to my client, it should be an xcopy install.
I can identify all the files needed to run the application, but when I copy them all to the application directory, the program starts and then falls over with an ActiveX unable-to-create-object type of error. I am guessing that this is because one or more of the files need to be registere d, but aren't.
The first question is: what actually happens when I run regsvr32 on a dll or ocx? I imagined that an entry was added to the registry so that the file can be found, but perhaps there is more to it than that. The file is in the application directory, but that does not appear to be sufficien t. What else happens, and can I avoid registering the file(s)?
The second question is: is there any way to perform an xcopy installatio n of a vb6 application?
TIA
Charles
> The second question is: is there any way to perform an xcopy installation of a vb6 application?
In addition to the libraries you have installed and registered, remember
to copy and run MDAC_TYP.EXE if you have ADO code. Also, if you are installing
on Win 98 or before, remember to install DCOM. If your application uses office
automation, you will have even more libraries to worry about. In general,
the simpler the application, the easier it will be to install. You may want
to try a "hello XCopy" project and see what it takes to get it running with
a manual installation process first and then start adding your application's
components. Just tell your client that you will be adding a week worth of
work to get them this feature where-as using an installer, you could have
it delivered faster and at lower cost. Also, an xcopy install won't set up
your desktop/start menu icons, so you will need to do that yourself.
Jim Wooley http://devauthority.com/blogs/jwooley/default.aspx
Thanks for the good points Jim.
Charles
"Jim Wooley" <ji************ *@hotmail.com> wrote in message
news:24******** *************** **@msnews.micro soft.com... The second question is: is there any way to perform an xcopy installation of a vb6 application?
In addition to the libraries you have installed and registered, remember to copy and run MDAC_TYP.EXE if you have ADO code. Also, if you are installing on Win 98 or before, remember to install DCOM. If your application uses office automation, you will have even more libraries to worry about. In general, the simpler the application, the easier it will be to install. You may want to try a "hello XCopy" project and see what it takes to get it running with a manual installation process first and then start adding your application's components. Just tell your client that you will be adding a week worth of work to get them this feature where-as using an installer, you could have it delivered faster and at lower cost. Also, an xcopy install won't set up your desktop/start menu icons, so you will need to do that yourself.
Jim Wooley http://devauthority.com/blogs/jwooley/default.aspx
Charles,
Have you tried to use side-by-side approach of distribution?
What is it? When your application depends on any third party stuff it looks
for them in the directories which contained those files on your development
machine. But you do not place them there when you create a folder for your
app and put all files there.
In case of side-by-side your application will start to look for each file it
depends on in the application directory first and only after it doesn't find
it moves to other directories (system32 etc).
To have side-by-side you need to create a file (just empty text file) with
the same name as your EXE and add .local to the end of the name. Put that
file in the same folder as your EXE. For instance your EXE has the name
MyApplication.e xe. You need to create a file with the name
MyApplication.e xe.local
It solves many other problems, like for instance after your regular
installation of your program with some third party ocx or dll, there is
another installation of the other program with the same ocx but older
version. It will break your installation. With side-by-side distribution
it's not happening.
Al
"Charles Law" <bl***@nowhere. com> wrote in message
news:e2******** *****@TK2MSFTNG P02.phx.gbl... Hi Tom
That is actually how I generated the list of files to copy. I looked at the cab file created by the SDW and manually copied all the files that it contained to the target directory.
Charles
"tomb" <to**@technetce nter.com> wrote in message news:s2******** ***********@big news4.bellsouth .net... If an ActiveX file has system dependencies in the way of dll files, the VB6 packager picks up on these, and will include the dll files with the instalation package. There could be some key VB dll files your application is looking for that haven't been included. If you use the packager that comes with VB6, you can build a dependency file to get a list of all the files that your application needs.
T
Charles Law wrote:
Hi Ken
Thanks for the reply.
I might be able to get away with the VB runtime being a pre-requisite of the installation, but it might be more difficult when it comes to component controls of the application.
I appreciate that ActiveX controls need to be registered, but I would like to understand the registration process a bit better. What actually happens when a control is "registered "?
I have tried placing all required files in a single directory, but I get ActiveX Unable to create object ~. If I register the controls I still get the same thing, so there must be more to it than that. If I create a setup package with the SDW then when I run it all is well.
Charles
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message news:%2***** **********@TK2M SFTNGP02.phx.gb l...
Hi,
As long as all the activex controls used by the vb6 application are registered and the vb6 run time is installed it should work.
http://www.microsoft.com/downloads/d...displaylang=en
Ken ------------------ "Charles Law" <bl***@nowhere. com> wrote in message news:OI**** **********@TK2M SFTNGP02.phx.gb l...
>Hi chaps > >I realise that this is a .NET group, but please don't shoot me down >quite yet. I looked in the vb classic groups and there seems to be so >little activity there that I was not hopeful of a prompt response, and >I figure that the guys here probably came from vb classic anyway. So, >apology over ... > >I have an application in vb6, and I want to install it on a system that >has never seen the vb development environment, or any of the vb runtime >files (unless they are part of the OS). For reasons best known only to >my client, it should be an xcopy install. > >I can identify all the files needed to run the application, but when I >copy them all to the application directory, the program starts and then >falls over with an ActiveX unable-to-create-object type of error. I am >guessing that this is because one or more of the files need to be >registered , but aren't. > >The first question is: what actually happens when I run regsvr32 on a >dll or ocx? I imagined that an entry was added to the registry so that >the file can be found, but perhaps there is more to it than that. The >file is in the application directory, but that does not appear to be >sufficient . What else happens, and can I avoid registering the file(s)? > >The second question is: is there any way to perform an xcopy >installati on of a vb6 application? > >TIA > >Charles > > >
"vul" <aa*@optonline. net> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. .. Charles, Have you tried to use side-by-side approach of distribution?
[] To have side-by-side you need to create a file (just empty text file) with the same name as your EXE and add .local to the end of the name.
Does this apply to a standard VB exe or only to .net apps? The OP is
referring to a VB6 program.
James
Hi Al
Thanks for the reply. I haven't heard of this for a VB6 application so, as
James says, I wonder if this applies to .NET?
I realise that this is not the intended place to ask VB classic questions,
but I thought I would reach a wider audience here.
Charles
"vul" <aa*@optonline. net> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. .. Charles, Have you tried to use side-by-side approach of distribution? What is it? When your application depends on any third party stuff it looks for them in the directories which contained those files on your development machine. But you do not place them there when you create a folder for your app and put all files there. In case of side-by-side your application will start to look for each file it depends on in the application directory first and only after it doesn't find it moves to other directories (system32 etc). To have side-by-side you need to create a file (just empty text file) with the same name as your EXE and add .local to the end of the name. Put that file in the same folder as your EXE. For instance your EXE has the name MyApplication.e xe. You need to create a file with the name MyApplication.e xe.local It solves many other problems, like for instance after your regular installation of your program with some third party ocx or dll, there is another installation of the other program with the same ocx but older version. It will break your installation. With side-by-side distribution it's not happening.
Al
"Charles Law" <bl***@nowhere. com> wrote in message news:e2******** *****@TK2MSFTNG P02.phx.gbl... Hi Tom
That is actually how I generated the list of files to copy. I looked at the cab file created by the SDW and manually copied all the files that it contained to the target directory.
Charles
"tomb" <to**@technetce nter.com> wrote in message news:s2******** ***********@big news4.bellsouth .net... If an ActiveX file has system dependencies in the way of dll files, the VB6 packager picks up on these, and will include the dll files with the instalation package. There could be some key VB dll files your application is looking for that haven't been included. If you use the packager that comes with VB6, you can build a dependency file to get a list of all the files that your application needs.
T
Charles Law wrote:
Hi Ken
Thanks for the reply.
I might be able to get away with the VB runtime being a pre-requisite of the installation, but it might be more difficult when it comes to component controls of the application.
I appreciate that ActiveX controls need to be registered, but I would like to understand the registration process a bit better. What actually happens when a control is "registered "?
I have tried placing all required files in a single directory, but I get ActiveX Unable to create object ~. If I register the controls I still get the same thing, so there must be more to it than that. If I create a setup package with the SDW then when I run it all is well.
Charles
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message news:%2**** ***********@TK2 MSFTNGP02.phx.g bl...
>Hi, > > As long as all the activex controls used by the vb6 application > are registered and the vb6 run time is installed it should work. > >http://www.microsoft.com/downloads/d...displaylang=en > >Ken >------------------ >"Charles Law" <bl***@nowhere. com> wrote in message >news:OI*** ***********@TK2 MSFTNGP02.phx.g bl... > >>Hi chaps >> >>I realise that this is a .NET group, but please don't shoot me down >>quite yet. I looked in the vb classic groups and there seems to be so >>little activity there that I was not hopeful of a prompt response, and >>I figure that the guys here probably came from vb classic anyway. So, >>apology over ... >> >>I have an application in vb6, and I want to install it on a system >>that has never seen the vb development environment, or any of the vb >>runtime files (unless they are part of the OS). For reasons best known >>only to my client, it should be an xcopy install. >> >>I can identify all the files needed to run the application, but when I >>copy them all to the application directory, the program starts and >>then falls over with an ActiveX unable-to-create-object type of error. >>I am guessing that this is because one or more of the files need to be >>registere d, but aren't. >> >>The first question is: what actually happens when I run regsvr32 on a >>dll or ocx? I imagined that an entry was added to the registry so that >>the file can be found, but perhaps there is more to it than that. The >>file is in the application directory, but that does not appear to be >>sufficien t. What else happens, and can I avoid registering the >>file(s) ? >> >>The second question is: is there any way to perform an xcopy >>installat ion of a vb6 application? >> >>TIA >> >>Charles >> >> >> >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ryno Rijnsburger |
last post by:
I am busy packaging our product as a standard Setup project in VS.NET that
uses
a bunch of merge modules (basically, a merge module for every key
infrastructure
component in our system).
Part of the installation needs to "dump" a bunch of files (third party
product's project
files) to the user's system. These files are transient in nature in that the
user may choose
|
by: UJ |
last post by:
I have a process that will automatically update programs on client
computers. The thing I want to check though is when I 'install' the program,
is it really just as easy as copying the file to the appropriate directory?
I don't need to worry about shortcuts or registry items.
TIA - Jeff.
|
by: Cristian Suazo |
last post by:
Hi,
I deployed my application but got a strange error when doing the deployment
using the xcopy method. A strange thing is that when I try to do the same
steps on another machine that has the same configuration (it should have it
atleast) it works perfectly. After been testing a while I found out that
everything worked if I first put the folder with the web application as a
readonly first (applying it to all the subitems) and then...
|
by: Matt Anderson |
last post by:
When I use Xcopy to deploy my changes to IIS, it seems to drop the
user connections; i.e., empties out their Session variables, etc. I
thought ASP.NET was supposed to use shadow deployment and gracefully
have new connections use the new code, while the old code is cached
for current connections.
Anyone?
|
by: Bruce Schechter |
last post by:
Whereas Microsoft highlights the concept of "xcopy deployment" for .NET
applications, I gather that it is not necessarily possible to move an
ASP.NET application from one computer to another via xcopy. After doing
some simple development via vs.net I found that xcopy'ing my app from a
development workstation to the production server didn't work, but I easily
dealt with that problem via vs.net's "copy project" menu command. I assume
that...
| |
by: Dave |
last post by:
Hi,
I'm trying to use xcopy to deploy my application to a mapped drive. I can
access the drive ("J:") through Windows Explorer and drag/drop the files but
I wanted to use XCOPY to make it faster since I only want to copy certain
files.
I tried <sourcedirectory:>xcopy j: /s /z /u
I then asks if I want to overwrite one of the files, I press "Y", thinking
|
by: Alan M Dunsmuir |
last post by:
Having completed the development of a VB Windows Form application using
VB.NET 2003, I have attempted to install it on my back-up machine, which
I recently upgraded to WinXPPro SP2, but which has not had VS.NET
installed on it.
I did this by simply copying directly the entire packet of directories
associated with the application to the target machine.
When I attempt to launch the .exe file in either the Debug, the Release
or the bin...
|
by: lizii |
last post by:
At the moment my company have asked me to look into installations. We
use pure .NET applications and although i have looked into installer
programs (installshield...wise..etc) none of them are able to do
exactly what we want them to do - or at least not easily. So now i am
looking into the possibly of using an xcopy deployment. However - i
can find very little information about the major disadvantages of this
method.
Does anyone...
|
by: Liz |
last post by:
I was intending to use an XCOPY install for a VS2005 C# WinForms app but
when I copied the files and ran the app on a clean machine it failed when it
needed Crystal Reports. Can you not use XCOPY deployment if you have
Crystal Reports dependencies?
Is there an available Crystal redistribution package I can run before doing
my XCOPY deployment?
TIA
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |