Hi to all:
I had create a setup with PDWwizard,and I had installed in a few computers,but the program don't work in 2 computers because,I think,the components are not registered...This is possible?????
Wich the way to resolve this problem?
Thanks
Printable View
Hi to all:
I had create a setup with PDWwizard,and I had installed in a few computers,but the program don't work in 2 computers because,I think,the components are not registered...This is possible?????
Wich the way to resolve this problem?
Thanks
It is a little difficult to say for certain. Do you know which components didn't get registered?
Are there differences between these two computers and the other computers that you ran a successful install on? If so, what are they?
Hi:
1 - I fink the problem is with felxgrid component.
2 - The installation are succesfull in all computers...no prob with instalation...and the program runs,but when I enter in the menus I catch the error.
Thanks
Have you tried to manually register them using RegSvr32 to see if that fixes the problem?
Yes I had tried and notthing
Ok...then do you get an error at install time, or when you try and run the application?
I looked over the past posts and I couldn't see where that was stated, or what, specifically, the error is.
When you run RegSvr32, what message comes back?
Hi:
The error is when I try to access in a drop menu,and the error is:
"run time error "91"
I finc this error is notthing to do with registered components but with load a certain form...strange very strange
Thanks
Yes...that is an "Object variable or With block variable not set" error.Quote:
Originally Posted by sacramento
Also, a run time error shouldn't occur if you have error trapped all of your routines. The next step is to figure out where this is occurring. Do you know? Form_Load? A click event?
You say this is only happening on a couple of machines, so I'm led to believe this error does not occur when running the exact same code on other machines. Is this correct?
No.the code are the same in all machines because I had create a setup in PDWizard.Quote:
You say this is only happening on a couple of machines, so I'm led to believe this error does not occur when running the exact same code on other machines. Is this correct?
How can I Trapped all my routines?Quote:
Also, a run time error shouldn't occur if you have error trapped all of your routines. The next step is to figure out where this is occurring. Do you know? Form_Load? A click event?
Thanks
You trap then individually. At the beginning of each sub/function or event in which code will be run, you have an On Error Goto ErrTrap (or whatever you wish to call the error trapping label.)Quote:
Originally Posted by sacramento
At the both of each sub/function or event in which code is run, you will put:
VB Code:
Exit Sub (or Function) ErrTrap: 'write code for what you want to happen in the event of an error
ok.I will try this
Thanks
Ok, but all that trapping the error will do is prevent a run time error that pops the user back to the desktop. It still doesn't fix it. Have you error trap write off the name of the routine it is in, so you will be able to narrow down where this is occurring.Quote:
Originally Posted by sacramento
it could also be another dependent component is out of date (or missing) on the two machines that are not working. Run the dependency walker program on your exe (it will show you the components and all of it's dependencies).
also you may look for the components say your component is called flexgrid.ocx... look for a file on your programming computer for flexgrid.dep. it's an ascii file.
the setup wizard in visual basic will also list the dependencies.
sacramento,
Using PDW will obviously get you into some hot water. It does not actually search your project for dependences. it relies on .dep files to tell it what it should use. If the .dep files are out of date or missing you WILL get an incomplete install.
You might want to use an up to date installer like Inno Setup combined with **********. ********** will search your project for all dependencies even the deep ones. Even if you do not use another installer, use ********** to gather your dependencies. It can also do much more.
Thanks guys for your help
sacramento,
If you would like... You could give me the vbp and exe file and I could take a look to see what dependencies you should have.
Ok Randem,
Tomorow I send my project to you,because he is in the computer of my office.
In this moment i'm in home!
Thanks
Hi Randem:
I had use ********** and now I have annother error:
Run time error '429'
Active X component can't create object
I attach my project for you to see if something is wrong!
Thanks
sacramento,
You do not have many dependencies to register. You have
MsFlxGrd.ocx and dao360.dll
The dao360.dll should be installed with the MDAC and you just need to register the MsFlxGrd.ocx file. You should not just attempt to register the dao360.dll file. Use the MDAC to deploy this file to make sure you have the correct version.
dao360.dll not being register is causing your problems.
Hi Randem:
Thanks for your answear but which way can I use MDAC to deploy dao360.dll?
sacramento,
I am not really understanding your question. But you can use several methods depending on the installer that you use.
There is one that will handle all OS's Automatic OS Updater. Or you can use Microsoft's MDAC_Typ.exe file (with PDW) if you know which version it will update.
********** will deploy the Automatic OS Updater, PDW the MDAC_Typ.exe file.
Ok Randem thanks for the info
Hi Randem:
Can you check this file please?Is a file made in Innosricpt!
I had update with Automatic OS Updater,but I continue with erros...this is very strange.
Thanks
sacramento,
All you included was the ********** project file. BTW: The field ask for the (.iss) file you gave the (.pjt) file. This will eradicate your project.
Hi Randem:
At last I have found the problem.
The problem was with the instalation of VB6.I had try in annother computer,I have VB6,and the package have no problems.
Thanks anyway for all
sacramento,
If I understand you correctly. You installed your app on a machine that already had VB6 installed? If this is so you still have a problem. You cannot and should not count on users having VB6 installed for your app to work.
No Randem:
The computer I had installed don't have VB6.
I have made a new package in annother computer with VB6 installed