Unfortunately, this example is for a self-hosted integration runtime. I'm using a Data Factory v2 Azure-hosted IR which requires you to upload binaries and a
script to a Azure blob which the IR reads when starting and executes
. If I use the WinSCP MSI for example to install both the exe and the dll, and then add the dll to the GAC, I need to reference the exe path in package script code, e.g
session.ExecutablePath = @"C:\Program Files (x86)\WinSCP\WinSCP.exe";
And I don't have access to the file system in the Azure hosted IR to get the path.