I have a basic MSI project in which I am trying to manually remove a desktop icon through a custom action (because it was created via a custom action and will not delete during uninstall). I am using the following function which just returns an error when I try to get the displayName from the uninstall key in the registry. I am doing it this way because the product name is dynamically set at install time and I need to retrieve the displayName during uninstall to remove the shortcut. RegDBSetDefaultRoot (HKEY_LOCAL_MACHINE); if (RegDBGetItem(REGDB_UNINSTALL_NAME, szShortcutName) < 0) then MessageBox("Unable to get shortcut name", SEVERE); else DeleteFolderIcon(FOLDER_DESKTOP, szShortcutName); endif; Any ideas on why the RegDBGetItem function is failing? I have the condition set to REMOVE="ALL" and I have tried putting the execute sequence in several different places from beginning to end.
... View more