WinSCPnet.dll use without installing exe

Advertisement

secondfh
Guest

WinSCPnet.dll use without installing exe

I'm want to call the WinSCPnet.dll in LabVIEW to perform an SFTP. I can only get it to work if WinSCP.exe has been installed on the PC. Would like to avoid having to install the exe. Is the .dll conditioned to perform this way?

Error message:
WinSCP.SessionLocalException: The winscp.exe executable was not found at location of the assembly (C:\), nor in an installation path. You may use Session.ExecutablePath property to explicitly set path to winscp.exe. <append><b>WinSCP.SessionLocalException</b>

Reply with quote

Advertisement

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

Re: WinSCPnet.dll use without installing exe

You do not have to install WinSCP. Just deploy a copy of WinSCP.exe along with your application.
Or use WinSCP NuGet package, which does it for you.
Or you can embed WinSCP.exe into your executable, if you want one-file solution only.
All these options are covered in documentation:
https://winscp.net/eng/docs/library_install

Reply with quote

Advertisement

You can post new topics in this forum