Hi All,
I have developed project in VB6.0 with access as backend.I have used ADODC control in VB to retrieve data from access. I have created the Setup file by Package & Deployment. Now when i install the software on other PC whole program works fine but ADODC can not establish connection with database. Then if I install VB6.0 then only ADODC works. Can any body guide me how can i create set-up file so that i can install my software without installing VB. Thanks
9 3327
Take care to include all the .DLL and .OCX files in the setup.
Hello Debasis
I m including all the .dll & .ocx files that are listed in 'Included files " list in package & deploy wizard. Please tell me which other files should i include?
Thanks
I am reposting my question. Pl. Help me to solve my problem.
Thanks
hi
i think that almost package and development tools dont registry activeX Components & Dll it just copy it, i cant remmember but u can check, if it dont registry u must registry it.
Hi Neelesh2007
Why don't you try to change your adodc connection properties using .udl file?
hello Ahemedyo,
how can i registry activex?
Hello lotus18
can i change adodc connection properties using .udl file?
Pl. tell me
Thnaks to you both
Hi...
you can use Regsvr32.exe /s ["yourfile.d ll" or "yourfile.o cx"] , if you just will test by your hand type it in run
if you wanna to make it with your application you have two methods
method 1: - Shell "Regsvr32.exe /s MyFile.dll", vbHide
care in your mind if your file path have any space you must place it within double quote """" & FilePath & """"
'============== =============== =============== =============se cond method: -
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
-
Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
-
Private Declare Function RegistryCOM Lib "user32" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
-
Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
-
-
-
Public Function RegistryFile(ByVal FilePath As String) As Integer
-
Dim LibraryHandle As Long
-
Dim RegistryFunctionAddress As Long
-
LibraryHandle = LoadLibrary(FilePath)
-
If (LibraryHandle = 0) Then RegistryFile = 1: Exit Function
-
RegistryFunctionAddress = GetProcAddress(LibraryHandle, "DllRegisterServer")
-
If (RegistryFunctionAddress = 0) Then Call FreeLibrary(LibraryHandle): RegistryFile = 2: Exit Function
-
Call RegistryCOM(RegistryFunctionAddress, 0&, 0&, 0&, 0&)
-
Call FreeLibrary(LibraryHandle)
-
End Function
GOOD LUCK
Thanks Ahmedyo
But pls tell me at what stage should i register? I think after diploying setup file. Am i correct? And if i want to use 1st method for registering should i repeat the command for registering each .ocx and .dll one by one? Please reply.
I hope registry will solve my problem.
Thank you very much.
Hi ...
yas man you must registry each file after copy it,this rule with all method that i was descript, copy file and then registry, but i recommend you to try it using hand first from command line, because if the problem is not to registry the file then you wast ur time in setup application
Best Regards
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: alanrn |
last post by:
Is it possible for OCA files to become corrupt? If so, how and what
can one do to "repair" them? Or, perhaps, there are other nefarious
forces at work here? :-(
Here are the particulars of my question. Yesterday I was working
through Wrox's "Visual Basic 6 Database Programing" for the second
time. A description of using the Data Form Wizard is given in chapter
2. However, after working through the example and pressign F5 to run
the...
|
by: Rob R. Ainscough |
last post by:
I've created/added a Web Setup Project for my ASP.NET application (using
VB.NET) --f rom within the same solution as my web application. The project
builds and creates the 3 files SETUP.INI, SETUP.EXE, and my project.MSI
file -- so I transport these files over to my test server and install
running Setup.
It seems to install a Web Service (I get the gear Icon with my project name
under Default Web Site) under the "Default Web Site"...
|
by: hangten |
last post by:
I have created a setup project for my application. Within this setup
project I need to install another .exe file. When I add the .exe file to
the setup program, I get a message "unable to find
dependency 'MICROSOFT.OFFICE.INTEROP.EXCEL'. So I added this interop dll
but it is not adding it to the dependencies but is just adding it to the
setup project. So when I build it still gives me the same error message.
How can I get it to see that...
|
by: Adam Clauss |
last post by:
I have a C++ COM Addin I wrote for Outlook (2002) using VS.Net 2002. Having
completed it, I am now looking to create a setup project and install it on
another machine.
I created a setup project and added it to my solution (selecting the
"Primary Output" as the files to include from my project). However, when I
attempt to build the setup project (assuming a clean output directory), I
get "Unrecoverable build error" - and NO other...
|
by: Howard Kaikow |
last post by:
When I build a setup project, the dependency in the setup project is tied to
the version in which it was built.
Is there a way to build a setup project that can be used in both versions of
the Framework?
There is provision to build the app's .exe so that the .exe can be used in
either version of the framework, is there not a way to do this for the setup
project? I looked at the options, did not find any. Did I miss something?
--
| |
by: Sathyaish |
last post by:
I've written an Add-in for MS Outlook and in Visual Studio .NET 2003, I
also created a setup project to install the add-in. It all works well.
When the user double-clicks on the .msi file to launch the setup,
there's this choice of having the application installed "Just for me"
or for "Everyone" using that computer. I noticed that even when the
user selects "Everyone", the setup script writes the entries for
registering the Add-in with...
|
by: JM |
last post by:
Hi,
I have created a windows application which uses Microsoft.mshtml.dll
for displaying browser window in the application for showing html.
When I am creating a setup program, I have to include
Microsoft.mshtml.dll in the Setup project. I am using VS 2003 Setup
program and my app is in C#. Now the problem is the size of this dll is
around 7.6 MB, so the size of setup program is huge.
|
by: Mark |
last post by:
Hi all, I'm having a problem with this and haven't found an answer in
these groups or the Preemptive FAQ.
I have an assembly from my main project that is dotfuscated (CE
version) as a post-build event. This all works fine. However, my
deployement (setup) project takes the primary output from the main
project and the setup build therefore rebuilds the main project
overwriting the dotfuscated version. Looking at these NGs, this is...
|
by: Joe |
last post by:
Hi,
I am using VS2005 and am attempting to create a Setup project
to install my VB.NET application onto the customer's target computer.
I am having difficulty setting the Target property for the
Desktop shortcut. It only allows me to select the Application
folder. I cannot add the actual name of the executable program after
that. When I install it and the user clicks on the shortcut, it opens
the folder where the application is...
|
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: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |