Pushing updates to an add-in from a shared network drive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I finally took the plunge into add-ins, with a lot of help from this class by @BrianEkins. Thanks so much, Brian, for continuing to contribute to our Inventor/automation education. I'm pretty sure it was another AU class by you that got me started into iLogic several years ago, and I've done a ton with that. It's cool to learn from you again while taking this next big step.
Now that I'm stepping out of the VBA/iLogic world (where deploying "source code" updates is as simple as changing the shared VBA project and/or external iLogic files on our network), and into the the add-in world, I want to make sure I can still easily and seamlessly push updates to our engineers.
Here's the process I'd like to take place:
- When an updated version is ready to be deployed, bump up its Assembly version and build it.
- Copy the newly-built add-in folder to a specific network location.
- Each user's machine should be able to check for updates and automatically update the add-in when a newer version is available from the network location.
#3 is the part that needs some clever ideas. Does anyone else do something similar to this? How would you suggest going about it?
My current thinking about how it could work goes something like this:
- Write a function in the add-in to check for an updated version. The add-in could run this function at launch, or at exit if possible. This function could possibly work by comparing the Assembly version of the local .dll with the Assembly version of the the .dll on the network (this will always be at the same location).
- If the versions are different, simply copy the add-in folder from the network to the appropriate add-in folder on the user's machine (just like would be done manually to update the add-in).
Does that seem like a good solution? Did I miss anything important?
Thanks for any suggestions.