VB 6.0 - Creating installer for the project

Asked By Arunprakash panchanathan
03-Feb-12 04:41 AM
Hi

my application (VB 6.0) uses microsoft excel object library 12.0 .when i create an installer for my application with windows installer of visual studio and install in other computer which doesn't have msoffice installed then my application gets installed and runs perfect but if the event is triggered where the excel object is called then it gives an error 429 activex component can't create object.
Where as if i create an installer using visual basic 6.0 package and deployment tool then i dont find any problem in running the program even without MS office installed in the computer.can any one suggest a solution so that i can use the windows installer for creating installer for my application.

Thanks

AP
  kalpana aparnathi replied to Arunprakash panchanathan
03-Feb-12 04:45 AM
hi,

please add reference to Microsoft DAO 3.6 Object Library instead of Microsoft DAO 3.51 Object Library in your project

Thanks,
  Web Star replied to Arunprakash panchanathan
03-Feb-12 04:47 AM
This should explain everything in detail http://www.developer.com/net/vb/article.php/10926_1539871_3 
also this good one on eggheadcafe itself
http://www.eggheadcafe.com/community/vb6/8/10241352/vb-60-setup-file-creation.aspx 
  Danasegarane Arunachalam replied to Arunprakash panchanathan
03-Feb-12 04:47 AM
1. Are you using any excel automation or excel related stuff ?
2.If the application runs good on machine without Excel library then why do you include in your project ?
3.Remove the excel library and recreate the package and deploy
4.I doubt you are doing some automation then while instantiating the excel object you get the exception.

Check the coding
  Arunprakash panchanathan replied to kalpana aparnathi
03-Feb-12 04:54 AM
DAO 3.6 obj lib already added. this is related to creating setup / installer package for my application. i think the dependencies related to excel is not getting added up when i create installer using visual studio.
  Arunprakash panchanathan replied to Web Star
03-Feb-12 05:16 AM
yes i agree it works if i create packages using package and deployment. i want to use windows installer of visual studio 2008 to create my package.i've suceeded in adding all the other dep like crystal reports and etc.i got only stuck up with this excel obj lib and that to i came to know only after running the apps and executing the event. actually in the event i've writen program to export data from db to a excel file. 
  Arunprakash panchanathan replied to Danasegarane Arunachalam
03-Feb-12 05:20 AM
i have created a package of my vb6.0 application using widows installer of visual studio 2008. i've suceeded in adding all the file and dependencies but the thing is the file or dependency or interop related to ms office is not getting added when i build my setup project. i think now my question is bit clear. 
  Web Star replied to Arunprakash panchanathan
03-Feb-12 05:22 AM
Install create exe it doesn't matter which event are using in that application or not so your specific task should be code in you application first after that you create install project for that.
  Arunprakash panchanathan replied to Web Star
03-Feb-12 05:31 AM
i dont get it. we can create installer only if we had created exe for the project and the exe is the application .
  Danasegarane Arunachalam replied to Arunprakash panchanathan
07-Feb-12 07:45 AM
If your installer not adding the referenced item then you could force the deployer to add items for your

Right click on the Application Folder- Add-Add file method to add the dependencies in your application


  Arunprakash panchanathan replied to Danasegarane Arunachalam
08-Feb-12 01:52 AM
for excel object library we can't add dependencies as it is not available so i've tried adding the PIA but still it doesn't work. Anyways now i'm not using object library anymore instead i've gone for ADO concept to get and put data into excel file and with this i am able to create installer and it works successfully. thanks all. 
Create New Account
help
How do I add Microsoft DAO to the referenced lib in Excel 2003 Excel We are trying to read data from an Acess dBase from Excel useing VBA. We have code examples , but keep finding that we need (or think we need) to add a Microsoft lib DAO or ADO. . . Looking for help. . . Excel Programming Discussions Excel 2003 (1) VBA (1) Acess (1) DBase (1) Intsall (1) PQGUY (1
Analyze it with Microsoft Excel" not working DataBase I have the MS-Access built in command "Analyze it with Microsoft Excel" on a custom toolbar. When previewing a report and then pressing the command button, the following error is returned Any ideas? Access Modules DAO Discussions YZmdne7fw7yGTqfVnZ2dnUVZ (1 Microsoft Excel (1) Report (1) SednZ2d (1) Hi, make a copy of your report and try to _ __ __ __ __ __ Alex Dybenko (MVP) http: / / accessblog.net http: / / www.PointLtd.com keywords: "Analyze, it, with, Microsoft, Excel", not, working description: I have the MS-Access built in command Analyze it with
insert excel on access form DataBase dears how to insert an excel worksheet on access form and get the excel functionalitys Access Modules DAO Discussions Microsoft Excel (1) OLEUnbound (1) Hargis (1) Functionalitys (1) Dears (1) Balu (1) OLE (1) The Worksheet already exists? Open the form in Design View. Click on Insert + Object + Microsoft Excel Worksheet. Click on Create From File. Navigate to the spreadsheet. Click OK. Place a check
SQL plus de Inclure les noms de champ dans SQL EXcel 2007 Excel Bonjour, Nous venons de miger de Microsoft Excel 2003 vers Microsoft Excel 2007. Dans la version Excel 2003, on avait avec clic droit sur une plage de données externe (par requête tés- une case à cocher Cette propriété ne semble plus être disponible sous Excel 2007. Comment faire alors pour ne pas inclure les noms de champ en Excel 2007
Access query(with custom function) from Excel Excel Dear Excel Gurus, I am able to run an access query from Excel. However, if the access query contains an Access custom function, I encountered problems opening the not able to retrieve data fields from Access which are calculated from custom function using Excel. Is this a genuine problem with Excel or did I miss out something? I was working on this problem until 3am in the morning. Thank you very much in advance if someone helps me. Excel Programming Discussions Excel (1) Macros (1) VBA (1) ActiveX (1) Window (1) You did not specify what type