ShortcutsDlg: Not working for "Start Menu Programs folder" - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

ShortcutsDlg: Not working for "Start Menu Programs folder"

Hello everyone.

Using ShortcutsDlg I noticed that deselecting "Start Menu Programs folder" does not seem to have an effect, the start menu items are created anyway.

Deselecting "Desktop" works OK, the desktop shortcut is not being created.

(I added the dialog and in its "Shortcut Actions" I deselected "Show Quick Launch toolbar option." and "Show Startup folder option.", in case this is relevant.)

Do I need to do anything in addition to adding that dialog?


With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ShortcutsDlg: Not working for "Start Menu Programs folder"

Hi Clemens,

Please note that the "Start Menu Programs folder" option refers to the shortcuts in "Application Shortcut Folder". If you created shortcuts in the "Start Menu" -> "Programs" folder, they will not be affected by the option.

Also, Advanced Installer has a bug which makes the package create the Start Menu folder even if a shortcut is not installed. In order to avoid this behavior you can use an "EXE with working dir" custom action scheduled under "InstallFinalize". For this custom action you can set the Working directory to "SystemFolder" and the Full Path to:

Code: Select all

cmd.exe /Q /C "rd /S /Q "[SHORTCUTDIR]""
This custom action should be conditioned with NOT AI_STARTMENU_SH. The bug which causes this behavior has been fixed and it will be included in the 6.5 version of Advanced Installer.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: ShortcutsDlg: Not working for "Start Menu Programs folder"

Hello Cosmin.
cosmin wrote:Please note that the "Start Menu Programs folder" option refers to the shortcuts in "Application Shortcut Folder". If you created shortcuts in the "Start Menu" -> "Programs" folder, they will not be affected by the option.
The shortcuts in question are in "Application Shortcut Folder".


cosmin wrote:Also, Advanced Installer has a bug which makes the package create the Start Menu folder even if a shortcut is not installed.
In my case the folders and the shortcuts in "Application Shortcut Folder" are being created, despite deselecting "Start Menu Programs folder" in the dialog "ShortcutsDlg". Can this be the bug you mentioned then?


With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ShortcutsDlg: Not working for "Start Menu Programs folder"

Hi,

Can you please send us the AIP you are using to support at advancedinstaller dot com so we can investigate it? Note that the bug creates only an empty folder in the Start menu -> Programs.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ShortcutsDlg: Not working for "Start Menu Programs folder"

Hi Clemens,

Please note that the option in "ShortcutsDlg" refers only to the shortcuts in the "Application Shortcut Folder" folder. If this folder contains sub-folders, these sub-folders will not be affected by the option.
However, the entire shortcut folder can be deleted by using the custom action I mentioned.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: ShortcutsDlg: Not working for "Start Menu Programs folder"

Hello Cosmin,

thank you for your swift feedback.


Bye bye

clemens

Return to “Common Problems”