Link to home
Start Free TrialLog in
Avatar of DeskManager
DeskManager

asked on

Problem in Manually Deployment CR XI within Visual Basic 6 program

Hello, I have a problem as is described below.
We have written a program in visual basic 6. right now we have decided to add some reports by using crystal reports XI. we only use Crystal Report's ActiveX(also we have some charts) within our program and we do report design inside visual basic 6.
I have a virtual hard drive(Microsoft virtual PC) with a clean setup of microsoft windows XP into it. I use this Virtual PC to test resulted setup file to see wether my program works probably in client machine or not.
I did creat a setup file using install shield and added corresponding Merge modules to it and after installing resulted setup  program worked perfect without any error.
However,  for some reasons we DO need to install and register corresponding DLLs, dependecies and Registery keys manually.
In the very first moment, I tried to copy and register couple of files manually like (crviewer.dll,Craxddrt.dll,crpe32.dll,olepro32.dll,Crtdll.dll,u2*.dll, and ...) and also I added "KeyCode" registery key (with the value equal to my license key) manually. But when I tried run the program I got following error "Run-time error '713': Application-defined or object-defined error"
As a result, I tried to add more files to  manually registering list.
Finally, I did my best to solve this problem. Being bored of searching dependecies for each DLL I decided to Add All of DLLs that I think they are related to  Crystal Reports. So I manually copy and registered  all of the files within the following sub directories:

C:\Program Files\Common Files\Business Objects\3.0\bin
C:\Program Files\Common Files\Business Objects\3.0\crystalreportviewers11\ActiveXControls
Plus all of extra DLL files in my C:\Windows\System32 folder which where added after I installed Merge Modules.
Also I extracted "HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects" Registery Section and Imported it into virtual PC and Made corresponding path Corrections manually.

I did all of these, So guess what was the result? I got that error again.
Right now, I dont have a clue about what I have to do.
Is there any way to find out all of required DLLs and Dependecies and Registery keys for My Program? I mean is there any scripts or lists so I can Do all of them manually in my program?
If you give me any suggestions about this problem I would appreciate you.

Best Regards,
Aidin


Avatar of Mike McCracken
Mike McCracken

Have you tried using the merge modules when you build the installation package.   They are supposed to make building the install package easier and eliminate the guesswork of which Crystal dlls to include.

mlmcc
Avatar of DeskManager

ASKER

Thanks for consideration. I am familiar with merge modules and as I mentioned in the question I can do a seccessful setup with merge modules.
However, we want to do whole process Manually, without using the install or setup. My question is that if there is a way to know what happens during installation of merge modules, I mean:
1- what files would be copied and where?
2- what files would be registered?
3- what registery keys would be created and with what values?
Waiting to hear from you,
Best Regards,
AutoManager
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I found that I have to use merge modules anyway thanks a lot for your help