Link to home
Start Free TrialLog in
Avatar of Member_2_1242703
Member_2_1242703

asked on

Deploying a finished application

I recently finished developing an application. I created an executable for it and put it on several different machines, all with different make ups. The application works great. Except for one part. I have a form that calls another form with crviewer on it. When I try to pull up this second form during run time it gives me an error about the crviewer.dll not being correctly registered. Does anyone know a simple way to resolve this? Is it possible to just move this dll to the machines getting this error? If so, where?

I've tried packaging my application and I've gotten a couple PCs to work using this method. Downside is that we have some screwy policies as far as admin rights go, etc. If I can get around the admin stuff I should be fine. Anyone?
SOLUTION
Avatar of Shauli
Shauli

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
ASKER CERTIFIED SOLUTION
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
Avatar of Member_2_1242703
Member_2_1242703

ASKER

I'm running CR 10. I'm assuming I don't need that patch???
Oh, sorry, guess I'm out of date.  Have to remember to update.  No, you don't need that patch.

You should probably remember to get the latest critical updates and services pack, though.  See here:

http://support.businessobjects.com/fix/downloads_updates.asp

Anyways, my comment still stands, that you should package your exe properly, so you know that the correct dlls get registered every time, and to give users the option of easily removing your app and those dlls.
That was the way I was originally trying to deploy it. I kept getting the following errors though:

Visual Basic 6.0 Setup Toolkit: Setup1.exe - Unable to locate DLL
The dynamic link library cxlibw-1-6.dll could not be found in the specified path
(gives like 8 different paths)

Then:
An error occurred while registering the file C:\Program Files\Common Files\Crystal Decisions\2.5\bin\crqe.dll

And then:
The file c:\path\msftqws.pdw\$(DLLSelfRegisterEX) could not be registered because it was not found.

Then it forces me to unregister the dlls, delete the temp files from the install, and exits the setup unsuccessfully.
P&D is not a very reliable tool for packaging. Try InnoSetup, http://www.jrsoftware.org/isinfo.php. It is considered the best, and its for free, and it has online help.

S
Business Objects (formerly Seagate) says they've fixed that problem, with patch number 35962148.  If your Crystal Reports critical updates and service packs are up to date (see link in my previous comment), then I suggest you report the problem to the Crystal Solutions team.

In the meantime, Shauli's solution may be your only option.
You could also move this question to the Crystal Reports section.  There are some super smart people there, too.

https://www.experts-exchange.com/Databases/Crystal_Reports/
After some research, I've found that the last error has to do with the Calendar control I'm using in my VB app. I'm working on that one now. I have all the most recent updates/sp so I'm going to try again with the P&D.
Ok, I repackaged my application and when I went to install it I still got the 1st error from my comment above. I clicked 'Ignore' for this .dll and the installation completed successfully. The program ran great just as it had when I just copied the executable initially. Same error, however, when I ran the form with the CR Viewer on it. So I guess I'm back to square 1!!!
Have you tried to register the dll manually as in my first post?

S
Yes I tried that. I was unsuccessful as a user. I successfully registered the file as an admin, but got the same error.
Do you get the same error if you try to install under admin priv?

S

Can't think of anything other than P&D screwing things up. If you have the time, try to create a package with innosetup and see if you have the same problem. Many problems with P&D were solved for me using inno. Other than that, sorry, I don't have any new ideas.

S
GP-Install 5.0 is a freeware install maker, it is very simple to set paths and imply self registering dll's, ocx's, and lib's . Hope this helps. :)
Sorry it took so long for me to reply...man this has been fun! :-(

I repackaged my app using Visual Studio Installer. I got even more errors when I tried that. Anyhow, researched the errors (unrelated to this issue) and got those fixed. Still got the same error. After changing some things in my installer, I started getting different errors. One of them led me to an article about corrupted MDAC. I uninstalled MDAC and reinstalled it. Ran the installer and it completed without error. Ran the exe and it ran great. I could even pull up the report like I've been trying to do all week! I just wanted to thank everyone for the suggestions on here...this was a tough one! If anyone would like me to explain anything in further detail, just leave a comment.