473,799 Members | 3,210 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 3327
debasisdas
8,127 Recognized Expert Expert
Take care to include all the .DLL and .OCX files in the setup.
Nov 4 '07 #2
Neelesh2007
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?
Thanks
Nov 7 '07 #3
Neelesh2007
41 New Member
I am reposting my question. Pl. Help me to solve my problem.
Thanks
Nov 14 '07 #4
AHMEDYO
112 New Member
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.
Nov 15 '07 #5
lotus18
866 Contributor
Hi Neelesh2007

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

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
  5.  
  6.  
  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
GOOD LUCK
Nov 17 '07 #8
Neelesh2007
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
AHMEDYO
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

1
4413
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...
0
1169
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"...
3
6020
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...
0
1945
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...
4
2314
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? --
2
3330
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...
2
5465
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.
0
2400
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...
4
1443
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...
0
9688
marktang
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...
0
9546
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,...
0
10490
Oralloy
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...
0
10260
jinu1996
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...
1
10243
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,...
0
10030
tracyyun
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...
0
6809
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();...
0
5590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2941
bsmnconsultancy
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...

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.