Updating a .NET dll called by a 3rd party program.

I'm working on an add-in for autocad, where the autocad.exe calls my .NET dll.

I'd like to use wyUpdate to update the dll and some data files included with the program.

By setting the wyUpdateLocation of the control to the correct path, I can get the wyUpdate.exe to run, and it looks like it updates, but it's not updating even after re-starting autocad.

What's the best way to handle this?

More information is needed. First just try double clicking wyUpdate.exe. Does it work? Can you go through the update process? If not, you might consider checking out the walkthrough for how to setup everything: https://wyday.com/wybuild/help/walkthrough.php

There is, unfortunately, a small learning curve to using wyBuild and wyUpdate. It's unavoidable.

wyUpdate.exe works. At least when I ran it from the wyBuild app it ran with no problems.

I had to specify the wyUpdate.exe location in my DLL, but once I did that, wyUpdate seemed to run, the control showed downloads happening, and ends with saying that the updates will be applied on the next start. But the updates aren't getting applied at next restart.

Edit: When I tell the updater to apply updates now, wyUpdate comes to the front and prompts to end autocad, as it's has the process open. Once autocad is closed, the updates are applied.

Is there a good way to handle this? I'm thinking about chaining two dlls. a.dll will check for updates to b.dll and data files, apply updates if required, then load b.dll. Not sure this is a good way to handle it, as updating a.dll will require the user to run the update outside of the program.

Follow up: I ended up updating with wyUpdate.exe when the program terminates. By the time the updater needs access to my dlls, AutoCAD has let go of them.

Great piece of software Wyatt, thank you.