I have made a custom add-in using C#.NET(a toolbar that contains buttons) and I was wondering if it is possible to have some code execute upon the install of the .esriaddin file. Basically I want to create a directory with some map templates on the users computer. I can just add the
DirectoryInfo di = Directory.CreateDirectory(@"Path"); etc....
to the on click event of the buttons and have it only execute if the folder doesn't exist but I was wondering if there was a way to execute it on install so I don't have to include it within the buttons.
Edit: I have looked at this and it is similar though I'm not using a custom installer.