Deploying WinSCP Dll and exe file on servers

Advertisement

sumangeorge
Joined:
Posts:
14
Location:
Detroit

Deploying WinSCP Dll and exe file on servers

I have done my coding in VB6 to convert FTP to SFTP using WinSCP.
I am able to test it in my local and everything works fine,
Now i need to install WinSCP dll and exe on server and deploy my solution executable file.
Please let me know how to deploy WinSCP dll and WinSCP.exe on server.

As per the document in this site. I need to run following commands in server:
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe WinSCPnet.dll /codebase /tlb:WinSCPnet32.tlb
%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe WinSCPnet.dll /codebase /tlb:WinSCPnet64.tlb
I am new to this so it might feel silly to you guys :D
1. Do I need to run the above commands directly on servers or do I need to write some scripts for this?
2. I have 64-bit server so I have to register assembly for both (32 and 64). In my project I have to add the reference for WinSCPnet32.tlb. Should I add the reference for 32-bit version or-64 bit? (My local system is 32-bit so i have tested with 32-bit only)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Deploying WinSCP Dll and exe file on servers

sumangeorge wrote:

1. Do I need to run the above commands directly on servers or do I need to write some scripts for this?
On the server.

2. I have 64-bit server so I have to register assembly for both (32 and 64). In my project I have to add the reference for WinSCPnet32.tlb. Should I add the reference for 32-bit version or 64-bit? (My local system is 32-bit so I have tested with 32-bit only)
If your application is 32-bit, use the WinSCPnet32.tlb and vice versa.
Last edited by martin on 2021-08-23; edited 1 time in total

Reply with quote

sumangeorge

Re: Deploying WinSCP Dll and exe file on servers

Ok cool so I just need the command in server.
So have Windows 2003 server installed in server.
Is this WinSCP version (5.9.3) compatible with Windows 2003 or Windows 2012?

Reply with quote

Advertisement

You can post new topics in this forum