Problems uninstalling a program using Remove-MSIApplications

Hello,

I’ve made a script that uninstalls Office 2010 with some add-ins and installs Office 365 afterwards.

Everything seems to be working but I’ve experienced problems with uninstalling two add-ins for Office 2010.

When checking the logfile I get this errormessage.
[Installation] uninstall string [] does not match “msiexec”, so removal will not proceed.

I’ve checked my spelling and even copied the name from the Displayname Key in HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\MSI Product Code.

What am I doing wrong? is there a limit on namelength for the program? It’s 75 characters long.
If the problem is too long programname, can I use some sort of wildcard option to tell the script to uninstall every add-in with a certain name?

Please provide more information. The registry extract or the the application you are trying to uninstall and the command you are using for the removal would help in this case.