Release an HelloWorld add-in for Ms Word. Sign and publish via ClickOnce, with the installation folder being set to an online directory.
Routine to follow
- Run the add-in setup.exe to install via ClickOnce.
- Assert the add-in has been registered in
File / Options / Add-ins. Close Word. - Go to the
Programs and Featurespanel, and uninstall the ClickOnce application which corresponds to the Add-in. - Launch Word and assert the add-in has been unregistered from
File / Options / Add-ins. - Run the add-in setup.exe to install via ClickOnce.
- Assert the add-in has been registered in
File / Options / Add-ins. - Select
Manage: COM Add-insand press [Go...]. Select the add-in and click [Remove]. - Go to the
Programs and Featurespanel, and uninstall the ClickOnce application which corresponds to the Add-in. - Run the add-in setup.exe to install via ClickOnce.
- Assert the add-in has been registered in
File / Options / Add-ins.
Results under Windows 7 + Office 365
The flow works and all steps are correct.
Results under Windows 10 + Office 365
The flow does not work.
- Step 4: Uninstalling the ClickOnce application has no effect on the add-in registration with Word.
- Step 10: Unregistering the add-in manually results in ClickOnce being unable to re-register it: it keeps telling the latest version of the Office Customization is already installed, which is not reflected in Word where no add-in appears as registered.
What to do?
I have raised several flags in the past but got no luck. I have now narrowed down the problem to Windows 10 and additional inconsistent behaviour from ClickOnce (step 4 not working).
Questions:
- Are we really the only VSTO publisher to face this highly deterministic issue?
- Should we call this a bug? Where could we flag it up?
This is a follow up to the following threads, where I never got an answer:
Unable to re-register VSTO Add-in after choosing [Remove] from COM Add-ins window