Solved

Trouble with packaging the application

Posted on 2006-06-16
23
475 Views
Last Modified: 2010-05-18
Hi All,
I am creating a package using Package and Deployment tool. I have a third party OCX(Zeon PDF Reader) in my application. So, I included all the supporting dlls and OCX and created a setup package.

But, for some reason, when I install the package, the ocx is failing to load. I get a run time error message :
Automation error...The object invoked has disconnected from its clients.

When I install the ocx manually, it works. Any ideas!

Thanks.
0
Comment
Question by:mamathai
  • 10
  • 6
  • 3
  • +2
23 Comments
 
LVL 13

Expert Comment

by:Mark_FreeSoftware
Comment Utility

did the p&d wizard register the ocx correct?
0
 

Author Comment

by:mamathai
Comment Utility
Yes. It did register it in Windows\system32. But, when I install the PDF reader manually, it is also putting a folder under C:\Program Files\Zeon  and putting few dlls in there; the same Dlls that are under Windows\system32 directory. and also, it is creating a folder Zeon under registry with install path key pointing to C:\Program Files\Zeon.

Hope this answers your question.
0
 
LVL 13

Expert Comment

by:Mark_FreeSoftware
Comment Utility

try to contact their support for an redist package of the pdf reader

(first try to find one on their site)
0
 

Author Comment

by:mamathai
Comment Utility
I did that already. They are china based, and it takes one day to hear back from them. Also, their response time is very poor. and finally, when they did respond back to me, tehy gave the same list of dlls that I am redistributing, and it didnot work.

Also, I did try to find help on their site first before I even considered to open the question to the Experts here. But, unfortunately, they have very little that they can offer on their website.

Considering the user base that we have and their response time to us, I wouldn't recommend their product to anyone. I am so frustrated with their resposne time.
0
 
LVL 5

Expert Comment

by:lunchbyte
Comment Utility
How are you installing it manually? If installing it manually works then you just need to make your installer install it the same way you did manually.
0
 

Author Comment

by:mamathai
Comment Utility
When I said that I can install it manually, I mean to say that I was able to install the ocx manually. But, it fails when I include th ocx in our application package.
0
 
LVL 5

Expert Comment

by:lunchbyte
Comment Utility

When you install it and try to run your program and it fails, did you try to use regsvr32 and register it and see if it works.
0
 

Author Comment

by:mamathai
Comment Utility
Yes.I did.
0
 
LVL 26

Expert Comment

by:EDDYKT
Comment Utility
show us your setup.lst file
0
 

Author Comment

by:mamathai
Comment Utility
[Bootstrap]
SetupTitle=Install
SetupText=Copying Files, please stand by.
CabFile=OurApp.CAB
Spawn=Setup1.exe
Uninstal=st6unst.exe
TmpDir=msftqws.pdw
Cabs=1

[Bootstrap Files]
File1=@VB6STKIT.DLL,$(WinSysPathSysFile),,,7/15/00 2:00:00 AM,101888,6.0.84.50
File2=@COMCAT.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,5/31/98 1:00:00 AM,22288,4.71.1460.1
File3=@STDOLE2.TLB,$(WinSysPathSysFile),$(TLBRegister),,6/3/99 1:00:00 AM,17920,2.40.4275.1
File4=@ASYCFILT.DLL,$(WinSysPathSysFile),,,3/8/99 1:00:00 AM,147728,2.40.4275.1
File5=@OLEPRO32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,3/8/99 1:00:00 AM,164112,5.0.4275.1
File6=@OLEAUT32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,4/12/00 1:00:00 AM,598288,2.40.4275.1
File7=@msvbvm60.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,2/23/04 12:00:00 AM,1386496,6.0.97.82

[IconGroups]
Group0=Our App
PrivateGroup0=-1
Parent0=$(Programs)

[Our App
Icon1="ourapp.exe"
Title1=Our App Zeon
StartIn1=$(AppPath)

[Setup]
Title=Our App Zeon
DefaultDir=$(ProgramFiles)\Our App
AppExe=OurApp.exe
AppToUninstall=OurApp.exe

[Setup1 Files]
File1=@PDFRAWW6xxSM_Uninstall.exe,$(AppPath),,,6/14/06 2:06:37 PM,33687,6.0.1.7
File2=@PDFCore6.dll,$(WinSysPath),,$(Shared),7/30/04 4:31:28 AM,2064384,6.0.1.7
File3=@ZUtil.dll,$(WinSysPath),,$(Shared),7/30/04 4:31:06 AM,45056,6.0.1.7
File4=@ZUI.dll,$(WinSysPath),,$(Shared),7/30/04 4:31:06 AM,622592,6.0.1.7
File5=@ZNSLX.dll,$(WinSysPath),,$(Shared),1/13/04 9:57:26 PM,57344,1.0.0.3
File6=@znsl.dll,$(WinSysPath),,$(Shared),4/27/04 1:04:30 AM,69632,6.0.0.2
File7=@ZeonLanguage.dll,$(WinSysPath),,$(Shared),7/30/04 4:31:04 AM,57344,6.0.1.7
File8=@ZeonData.dll,$(WinSysPath),,$(Shared),7/30/04 4:31:04 AM,32768,6.0.1.7
File9=@Config.mdb,$(AppPath),,,3/17/06 10:09:02 AM,5758976,0.0.0.0
File10=@FileSyncLog.mdb,$(AppPath),,,5/9/06 9:46:24 AM,114688,0.0.0.0
File11=@MSWINSCK.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),3/9/04 1:00:00 AM,124688,6.1.97.82
File12=@PDFReaderOCX.ocx,$(WinSysPath),$(DLLSelfRegister),$(Shared),7/28/04 12:24:58 AM,110592,6.1.3.0
File13=@Msflxgrd.ocx,$(WinSysPath),$(DLLSelfRegister),$(Shared),3/9/04 1:00:00 AM,260880,6.1.97.82
File14=@MSMASK32.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),8/28/02 1:53:16 PM,166600,6.0.84.18
File15=@MSCOMCTL.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),3/9/04 12:00:00 AM,1081616,6.1.97.82
File16=@comdlg32.ocx,$(WinSysPath),$(DLLSelfRegister),$(Shared),3/9/04 1:00:00 AM,152848,6.1.97.82
File17=@msado27.tlb,$(WinSysPath),,$(Shared),8/3/04 11:21:46 PM,81920,2.81.1117.0
File18=@msxml4.dll,$(WinSysPath),$(DLLSelfRegister),$(Shared),4/18/03 5:46:22 PM,1233920,4.20.9818.0
File19=@MyFileUtil.dll,$(WinSysPath),$(DLLSelfRegister),$(Shared),3/4/04 4:07:26 PM,28672,1.0.0.10
File20=@VBPrnDlg.dll,$(WinSysPath),$(DLLSelfRegister),$(Shared),6/20/05 5:37:52 PM,102469,2.1.0.0
File21=@IMW32O40.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),1/17/01 12:59:40 AM,562024,4.0.41.41
File22=@MSVCRT.DLL,$(WinSysPathSysFile),,,2/17/04 1:00:00 AM,278581,6.0.9782.0
File23=@scrrun.dll,$(WinSysPath),$(DLLSelfRegister),$(Shared),8/4/04 1:56:46 AM,151552,5.6.0.8820
File24=@CSMapDll.dll,$(AppPath),,,3/22/02 1:27:02 PM,610304,10.9.0.1
File25=@ourapp.exe,$(AppPath),,,6/14/06 2:54:14 PM,1036288,4.0.0.0
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:mamathai
Comment Utility
I am closing the question. I found the solution.
0
 
LVL 13

Expert Comment

by:Mark_FreeSoftware
Comment Utility

can you post it here for future references?


because you answered your own question, you can ask for a refund,

see this help topic for more info:
http://www.experts-exchange.com/help.jsp#hi70
0
 

Author Comment

by:mamathai
Comment Utility
Thanks for the information.
After little thought, I found a work around even though I am not sure if that is an elegant solution. I edited setup1.exe under redistributable folder to include the installation of PDF viewer ocx before actually installing my application itslef.

In other words, I mimiced the installation of MDAC_Typ.exe.

This particular PDF viewer also requires us to execute another file to enter some registry information(I guess to register the product). So, I have to make some code changes to setup1.vbp file.

Now, our setup can install PDF Viewer first and executes the other file to register the product and then install the actual application itself.

This solves the problem of us having to run mutliple installations for each.

Hope this helps.

Thanks for everyone who has contributed to my post.
0
 
LVL 5

Expert Comment

by:lunchbyte
Comment Utility
Isn't that what I suggested?

>> How are you installing it manually? If installing it manually works then you just need to make your installer install it the same way you did manually.
0
 

Author Comment

by:mamathai
Comment Utility
Well, I tried to include PDFViewer exe in the package even before I posted the issue here. But, just having exe in the application package wouldnot trigger the installation of the PDFViewer exe. It would just copy that file into the application folder when the application is installed. The only way(atleast that I am aware of) we could do this is to customize the redistributable file. That would trigger the installation instead of just copying the file.
0
 
LVL 5

Expert Comment

by:lunchbyte
Comment Utility
I do not know if I should even bother argue because English is not my native language. I will let the admin decide.
0
 
LVL 5

Expert Comment

by:lunchbyte
Comment Utility
I object. I may have not explained it well or something but he did exactly what I said to do.


0
 

Author Comment

by:mamathai
Comment Utility
LunchByte,

While I appreciate your desire to help other professionals, I do want to clarify confusion about your solution.

This is what you have told me to do:
>>>> How are you installing it manually? If installing it manually works then you just need to make your installer install it the same way you did manually.

Incase, if you didnot understand the implementation process that I have explained it in my previous posts, this is another try from my side:

I assume that you mean "installing it manually" means, to install the PDF Viewer exe on its own. Well, it worked on its own and that is not my problem at all. and coming to the second part of your post, you mentioed to include the PDFViewer exe in our application installer package and I did try that and it didn't work that way. If you ever try that approach, the installer would just copy the PDFViewer exe to the path you point to ,while you create the installer and it is "not going to" install the application. IF you understand the difference between copying the exe file to a specific location vs installing the exe file, you would understand that just including exe in the package alone will not guarantee the installation.

That is why, I have to take the approach that I mentioned in my solution to make it work. You have to understand, that adding MDAC_Typ.exe in your installation package is working for you, because Microsoft has done some homework behind the scene for you already. Otherwise, it wouldnot work just by adding the file.


I hope I have clarified your doubt. If not, I request Moderator to look into the issue and decide. I can only explain, I cannot teach Visual Baisc implementation details.

0
 
LVL 5

Expert Comment

by:lunchbyte
Comment Utility
>> That is why, I have to take the approach that I mentioned in my solution to make it work. You have to understand, that adding MDAC_Typ.exe in your installation package is working for you, because Microsoft has done some homework behind the scene for you already. Otherwise, it wouldnot work just by adding the file.

That is not true.
All installer has a function or a command that execute any exe file that you may have copied to the local drive or any exe that already exists on the computer.

In any event, it appears that I did not help you directly but you got the idea from me about "manully install". That counts but not necessary as a grade of A.

I have always given out points for those who either tried or at least gave me an idea. I have never asked for refund or close an issue, it’s an insult to those who took the time and tried to help you.  

What bothers me the most is that your account has been active since 2004 so you are not new and you have premium account so it is not like you cannot afford to pay it so pay it!






0
 

Author Comment

by:mamathai
Comment Utility
I ask Moderator to step up and look into the posts.

>>All installer has a function or a command that execute any exe file that you may have copied to the local drive or any exe that already exists on the computer.

It depends on what installer you are using. In our case, we are using VB Package and Deployment Wizard and there is no such function or command available, atleast not that I am aware of. So, what you mentioned is not applicable in our case and neither we took that approcah.

>>In any event, it appears that I did not help you directly but you got the idea from me about "manully install". That counts but not necessary as a grade of A.

I tried to manually check it even before I posted here. Any programmer would do that befoer they post the problem to others. That to me seem to be very obvious. How can I even know if the PDFViewer exe is working or not if I don't install it to my machine to test it?

>>I have always given out points for those who either tried or at least gave me an idea. I have never asked for refund or close an issue, it’s an insult to those who took the time and tried to help you.

If your answer had helped me, I wouldnot have hesitated at all. I have to spend 2 days to figure out the solution and I have no intention to just give away the points. Even though as I mentioned in my previous posts, I do appreciate you and everyone else for participating in the post. If I have to give points for participating, I have to give everyone that have participated in the post. I am not sure why you are taking it so personal.

>>What bothers me the most is that your account has been active since 2004 so you are not new and you have premium account so it is not like you cannot afford to pay it so pay it!

Having an active account doesn't mean, that an account holder is participating in any way. I used to be active participant at one time. I am not sure what that Premium account mean.

Anyway, I want you to know that you deal with professionals on these kind of forums and try to be professional when you post your comments. Don't take it personal. You have to remember that you are not talking to your friend.

0
 

Accepted Solution

by:
RomMod earned 0 total points
Comment Utility
After further review, it has been determined that the best resolution might be PAQ / Refund. While relevant, the accepted answer may be too broad in scope. I have therefore refunded the 500 points and the question has been PAQ’d.

Thank you,
RomMod
Community Support Moderator
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now