PDA

Click to See Complete Forum and Search --> : Error 429 when installing clean installation


41trut5r
Nov 12th, 2006, 03:21 AM
I wrote a ftp aplplication in vb and linked to the mswinsck.ocx file via the "references" tab? Now the program works fine on my pc even if I uninstall vb, but as soon as I do a clean installation on a other pc it gives me an error 429.

Else the program does not give me an error 429 if I link to the mswinsck.ocx file via the "components" tab, but then my functionalities does not work. So the program start up but the functions don't work!

What I can see is that in the Object Browser in the first senario the MSWinsockLib point to mswinsck.ocx while in the second senario the MSWinsockLib points to mswinsck.oca?

But I can't seem to link to both?

Thus far I have worked through every example in the MSDN library concerning Error 429, and I have packaged my application more than 40 times, including both or trying different ways to include files, or even making a dependency file that includes the MSWinsck.oca file? Don't know if I did it right though...

Can someone please assist me! :o

randem
Nov 12th, 2006, 04:54 PM
I will assume you are using PDW :( You probably do not have all the dependencies that you need for your app to run.

RobDog888
Nov 12th, 2006, 04:59 PM
You should be using the Component for winsock and not setting a reference. If your app does not work that way then its more possibly a coding issue.

randem
Nov 12th, 2006, 05:11 PM
You can use Winsock as a reference also... but it requires a little more coding.

Does your program work in the IDE?

RobDog888
Nov 12th, 2006, 05:16 PM
Well I guess you could say its a matter of preference but it depends on how it was coded too. To me it seems better to use it as a component but thats my preference.

41trut5r
Nov 13th, 2006, 12:44 AM
Thanks for all the replies.

Yes the program works fine in the IDE when I use the winsock via the reference tab, but as soon as I use the PDW and install on another computer it gives me the error though it works fine on my computer even with the clean installation.

I have made use of the winsock via the components tab also and used the PDW then the program starts on the other computer but as I said then my functions don't work? It does not connect to the ftp site.

So I also thought I am not including all my dependencies but if I go to the CAB file in both instances all the same files are present and all the files are referenced the same, so I then thought it must be a programming error?

Actually I really don't know where I am going wrong...

RobDog888
Nov 13th, 2006, 12:52 AM
Do you have any error handling in your program? If so which event/procedure is it bombing on?

randem
Nov 13th, 2006, 12:55 AM
What are you using to guage that all the dependencies are there????

If it works in the IDE the reasons it would not work as an exe would be timing or lack of dependencies.

randem
Nov 13th, 2006, 01:03 AM
Have you attempted to run the exe from the same location as your project?

41trut5r
Nov 13th, 2006, 05:07 AM
I have an "on error" procedure and it goes there as soon as I connect to the ftp server if I use winsock via the components tab but it never has an error if I run the application and connect winsock via the reference tab.

I also now made use of ISS to see if that would help and can see that it does not include the following two files in my PDW shdocvw.dll and SHELL32.dll but as soon as I try to include these two files it gives me unsafe error...

It seems though that these two files are not the problem since they are on the other PC but I am not really sure about the SHELL32.dll file that it works the same but it is there. But it seems to me the problem still lies with the winsock file and how I connect to it.

As I stated earlier the on time MSWinsockLib refers to mswinsck.ocx if I use the reference tab and the other time MSWinsockLib refers to mswinsck.oca when I use the components tab...

Maybe it would also help to state that I used a class module where I have coded my ftp part and from where I reference the MSWinsockLib?

randem
Nov 13th, 2006, 11:25 AM
Post #9?????

41trut5r
Nov 14th, 2006, 12:11 AM
Sorry, yes I have run the exe from the project location and it still works fine...

randem
Nov 14th, 2006, 12:51 PM
Then it is a dependency issue. you are running the exe on another machine when it fails, Yes?

41trut5r
Nov 15th, 2006, 12:53 AM
Yes, that is correct and I have tried anything I can think of to include dependency files but I don't seem to be able to get it to work correctly after an installation on another computer.

All I can think is that I am not including my dependency files correctly?

randem
Nov 15th, 2006, 12:58 AM
Check your PM

randem
Nov 16th, 2006, 03:13 PM
Here is a listing of all the dependencies that you should have in your list and get registered:

; ********** Version 5.4 Build 1
; Randem Systems, Inc.
; Copyright 2003-2006
; website: http://www.***********
; support: http://www.**********.com/cgi-bin/discus/discus.cgi

; Date: November 16, 2006

; VB Runtime Files Folder: C:\Program Files\Randem Systems\**********\********** 5.4\VB 6 Redist Files\
; Visual Basic Project File (.vbp): C:\Work\41trut5r\FTP\FTP.vbp
; Inno Setup Script Output File (.iss): C:\Work\41trut5r\FTP\FTP.iss

; ------------------------
; References
; ------------------------

; Visual Basic runtime objects and procedures - (MSVBVM60.DLL)
; Standard OLE Types - (OLEPRO32.DLL)
; OLE Automation - (STDOLE2.TLB)
; Microsoft Internet Controls - (shdocvw.dll)
; Microsoft Shell Controls And Automation - (SHELL32.dll)


; --------------------------
; Components
; --------------------------

; Microsoft Winsock Control 6.0 (SP6) - (MSWINSCK.OCX)
; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
; Microsoft Rich Textbox Control 6.0 (SP6) - (richtx32.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (mscomctl.ocx)


[Setup]
AppName=AffiliateFTP
AppVerName=AffiliateFTP 2.8.3
AppPublisher=Endopi Enterprises
AppVersion=2.8.3
VersionInfoVersion=2.8.3
AllowNoIcons=yes
DefaultGroupName=Affiliate FTP
DefaultDirName={pf}\AffiliateFTP
AppCopyright=Endopi Enterprises 2006
PrivilegesRequired=Admin
MinVersion=4.0,4.0sp6
Compression=lzma
OutputBaseFilename=Affiliate FTP283Release

[Tasks]

[Files]
Source: c:\program files\randem systems\**********\********** 5.4\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags: sharedfile;
Source: c:\program files\randem systems\**********\********** 5.4\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags: sharedfile;
Source: c:\program files\randem systems\**********\********** 5.4\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags: sharedfile;
Source: c:\program files\randem systems\**********\********** 5.4\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags: sharedfile;
Source: c:\program files\randem systems\**********\********** 5.4\vb 6 redist files\stdole2.tlb; DestDir: {sys}; Flags: regtypelib;
Source: c:\program files\randem systems\**********\********** 5.4\vb 6 redist files\comcat.dll; DestDir: {sys}; Flags: sharedfile;
Source: c:\windows\system32\mswinsck.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\comdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\richtx32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\windows\system32\mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\work\41trut5r\ftp\affiliate ftp.exe; DestDir: {app}; Flags: ignoreversion;

[INI]
Filename: {app}\Affiliate FTP.url; Section: InternetShortcut; Key: URL; String:

[Icons]
Name: {group}\AffiliateFTP; Filename: {app}\Affiliate FTP.exe; WorkingDir: {app}
Name: {group}\AffiliateFTP on the Web; Filename: {app}\Affiliate FTP.url
Name: {group}\Uninstall AffiliateFTP; Filename: {uninstallexe}

[Run]
Filename: {app}\Affiliate FTP.exe; Description: Launch AffiliateFTP; Flags: nowait postinstall skipifsilent; WorkingDir: {app}

[UninstallDelete]
Type: files; Name: {app}\Affiliate FTP.url

randem
Nov 16th, 2006, 03:17 PM
BTW: You also have Data Control Issues. You should think about not using them.

41trut5r
Nov 17th, 2006, 12:34 AM
I have received the iss file, thank you, I am away for the weekend, will test on Tuesday.

Thanks in advance

randem
Nov 17th, 2006, 04:24 AM
You will still have problems until you sort out the data control problems...

41trut5r
Nov 23rd, 2006, 09:43 AM
Hi,

I tried the new inno script but I still have the same error...

Mayba I am still missing something?

Thank you for the support though

randem
Nov 23rd, 2006, 01:02 PM
Post your project. I only got DC errors and could not continue....

You could be dynamically creating objects or your DC's are calling something.

41trut5r
Nov 24th, 2006, 01:32 AM
I decided to rewrite my code using the components rather than to reference it. It would take me a day or two but I suppose it would work then.

I see it is searching for the license file of VB because I didn't make use of the Winsock control.

So I would leave it like this for now say it as resolved until further notice.

Thanks for all the assistance.

randem
Nov 24th, 2006, 09:58 PM
Yes, Now I remember if you use it as a reference it requires a license to use it but if you use it as a control you can use it and distribute it free.