473,574 Members | 3,213 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setup file for VB project having ADODC

41 New Member
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
Oct 25 '07 #1
9 3310
8,127 Recognized Expert Expert
Take care to include all the .DLL and .OCX files in the setup.
Nov 4 '07 #2
41 New Member
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?
Nov 7 '07 #3
41 New Member
I am reposting my question. Pl. Help me to solve my problem.
Nov 14 '07 #4
112 New Member

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.
Nov 15 '07 #5
866 Contributor
Hi Neelesh2007

Why don't you try to change your adodc connection properties using .udl file?
Nov 15 '07 #6
41 New Member
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
Nov 17 '07 #7
112 New Member

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:

Expand|Select|Wrap|Line Numbers
  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:

Expand|Select|Wrap|Line Numbers
  1. Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
  2. Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
  3. 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
  4. Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
  7. Public Function RegistryFile(ByVal FilePath As String) As Integer
  8. Dim LibraryHandle As Long
  9. Dim RegistryFunctionAddress As Long
  10.     LibraryHandle = LoadLibrary(FilePath)
  11.     If (LibraryHandle = 0) Then RegistryFile = 1: Exit Function
  12.     RegistryFunctionAddress = GetProcAddress(LibraryHandle, "DllRegisterServer")
  13.     If (RegistryFunctionAddress = 0) Then Call FreeLibrary(LibraryHandle): RegistryFile = 2: Exit Function
  14.     Call RegistryCOM(RegistryFunctionAddress, 0&, 0&, 0&, 0&)
  15.     Call FreeLibrary(LibraryHandle)
  16. End Function
Nov 17 '07 #8
41 New Member
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.
Nov 18 '07 #9
112 New Member
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
Nov 18 '07 #10

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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
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...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.