Desenvolvimento F?cil
Guest
|
Hello,
I'm working on a Office add-in that must have a "auto update" (we can't use ClickOnce/ClickTwice).
This "auto update" will check for new versions every time I open Word, Excel, PowerPoint or Outlook.
My question is: There is a way I create a dll that runs before the dll called by adxloader (adxloader.dll.manifest)? Or can I call a dll between the adxloader and the MyAddin.dll?
Example of what I want to do:
1. User open Word, Excel, PowerPoint or Outlook;
2. FIRST, my dll ("CheckUpdate.dll) checks if there is a new version from my add-in. If so, it download the new version and update the add-in.
3. adxloader loads the MyAddin.dll that was recently downloaded.
OR
1. User open Word, Excel, PowerPoint or Outlook;
2. adxloader loads the CheckUpdate.dll
3. CheckUpdate.dll checks if there is a new version from my add-in. If so, it download the new version and update all the add-in dlls.
4. I instantiate the MyAddin.dll from the CheckUpdate.dll (Assembly.LoadFrom(...))
PS:
* With this approach we don't need reopen the application to load the correct version.
* If I use the ShadowCopy function from .NET I can do something similar (I think).
* I check this link https://www.add-in-express.com/docs/net-deploying-addins.php
Thank you,
Mateus. |
|
Andrei Smolin
Add-in Express team
Posts: 19138
Joined: 2006-05-11
|
Hello Mateus,
How the add-in is loaded is described in section "How your Office extension loads into an Office application" at https://www.add-in-express.com/docs/net-deploying-addins.php#load. Loading another assembly (CheckUpdate.dll) is *not* supported.
Desenvolvimento F?cil writes:
I'm working on a Office add-in that must have a "auto update" (we can't use ClickOnce/ClickTwice).
ClickOnce and ClickTwice have there entry points in the loading process and in this way they are integrated.
Desenvolvimento F?cil writes:
* With this approach we don't need reopen the application to load the correct version.
To update adxloader.dll, you need to close the host application.
Andrei Smolin
Add-in Express Team Leader |
|