ComponentOne still having trouble

Started by bibin98, August 26, 2012, 09:03:14 PM

Previous topic - Next topic

Randem

It is probably not registered... Actually Scripting Runtime is a complete installation not just one file. If it were in your project the installation would have been added by InnoScript.

bibin98

I already have scrrun.dll in windowssystem32, but it still error... What it may cause?

bibin98

Ohh... what do you mean? I don't understand

Randem

Yes, you never deployed Microsoft Scripting Library. You are counting on the client machine to have it installed already. The only way it would have been installed if another application installed it prior to your install. You should not count on that. Using the reference for the library would make sure that it was deployed.

bibin98

Yes, I already have an ErrorHandling, that error come from procedure ConnectionErr(), in that form there is CommonDialog (already have in script COMDLG32.OCX, MSCOMCTL.OCX), and this code:
 
Dim A, fs
Set fs = CreateObject(Scripting.FileSystemObject)
Set A = fs.CreateTextFile(App.Path & Config.lic, True)

Randem

No that error occurs because there is something in your application that is not deployed or registered (but not stdole.tlb). Your application could be dynamically calling a dll that is not included. You will need to place messages in your application exe to display to show you where in your application the error is generated.

bibin98

Hi randem, componentone is success no error register, but I have another problem, stdole.tlb failed to register, and my EXE application doesn't work.
 
If I double click my application, appear this error message Class does not support Automation or does not support expected interface, is this occur because stdole.tlb failed to register?
 
Thanks.

bibin98

Thanks Randem.... I'll inform u the result in client comp

Randem

Yes, that is OK as long as they are registered in the same directory also. After the first run and you find out what flags are placed on the files, you can remove them from the script then place the lines in a template that you can use later after you remove the files from the Add Files tab.

bibin98

Yupe... thanks for the explanation... I collect the ocx and dll in the same directory {app}SIB not {app}SIBtodg or {app}SIBtodl, is it OK?

Randem

But it will be more like:
 
In Folders in {app}.  
 
Example:
 
C:\Temp\Studio_for_ActiveX-10631\True DBList Pro 8.0\cabs\todl8
 
goes to
 
{app}\todl8
 
 
 
C:\Temp\Studio_for_ActiveX-10631\True DBGrid Pro 8.0\cabs\todg8
 
Goes to
 
{app}\todg8

Randem

In Folders in {app}.  
 
Example:
 
C:\Temp\Studio_for_ActiveX-10631\True DBList Pro 8.0\cabs\todl8
 
goes to
 
{app}\Studio_for_ActiveX-10631\True DBList Pro 8.0\cabs\todl8
 
 
 
C:\Temp\Studio_for_ActiveX-10631\True DBGrid Pro 8.0\cabs\todg8
 
Goes to
 
{app}\Studio_for_ActiveX-10631\True DBGrid Pro 8.0\cabs\todg8

bibin98

OK I understand what you mean, so the component and DLL is placed to {app} not {sys} right?

Randem

The VC   Runtime files that you need are already installed with the OS. I cannot give you step by step, that would amount to training. Which is a paid service. What I can give you are the ideas that can get you moving in the correct direction.
 
1 - Use Add Folder to add the Folder that has all the files for ComponentOne as I detailed in a prior post. The destination for these folders will be your installation folder.
 
2 - Use Add Files to add each file that is in the folder so that they can be registered. The destination MUST be the same as where the Add Folders file end up. InnoScript should automatically add the proper flags.
 
This process will make sure that you register the files in the same folder where the other support files for it are located. That will allow the files to be registered correctly.

bibin98

If I Add Files to all componentone OCX and DLL, what attribute Flags do I need?