I've modified the StartMenuShortcutsDlg to include checkboxes which set AI_DESKTOP_SH and AI_STARTMENU_SH. When I uncheck both check boxes, I still get a shortcut appearing on my desktop (whether or not that shortcut is advertised). I do NOT get the shortcut in the start menu when unchecking its checkbox, but do when I leave its checkbox checked. Is there anything other than modifying AI_DESKTOP_SH which needs to be done in order to suppress creation of the desktop shortcut? I don't see anything happening in the original ShortcutsDlg.
I've verified the value of AI_DESKTOP_SH by placing a static text field with its value in it on the following dialog and it's getting values of "1" and "" (where the double quotation marks are used here to delimit, they do not appear in the actual value).
Toggling the Start Menu Programs Folder checkbox works (I've added published events to the next button to make that happen), but the Desktop checkbox does not.