Facing Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor when uninstalling addin
This error (Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.) occurs when customer tries to uninstall the Office addin installed. We suspect the reason could be with the part of code which is used for setting up Ngen for this particular addin's dll.The issue could be with deleting of dlls done with setupNgen. I have no clue as to where the exact source for the error could be i have not been lucky in googling so far. Need your inputs in this regard.
This is a bit of a pain to explain but basically nested MSI installations are not recommended as the VISTA/Windows 7 UAC elevation and changes in Windows Installer 4.5 have changed how the permissions are passed to the nested MSI to install.
You may have to MSIZAP your installation to uninstall and would advise seperating your functionality. NGEN'n code needs elevation and if the permissions aren't available there will be an error code returned hence the MSI installation shows as 1722 error.
You have little options available to you depending on the Setup program technologies you are using.
RegardsMike Walker MVP - Visual Developer VSTO - Please mark the best replies as Answers !