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!

harshal119
Posts: 21
Joined: Wed Mar 27, 2019 10:18 am

Using StartMenuShortcutDlg with Customized name

Hi team,

We would like to use the StartMenuShortcutDlg to ask user for specific name for Desktop shortcut. We are able to add that dialog in MSI package. However, we would like to create the shortcut with the selected/entered name on that dialog. We would appreciate any help or steps to achieve that. Thanks
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Using StartMenuShortcutDlg with Customized name

Hello Harshal,
However, we would like to create the shortcut with the selected/entered name on that dialog.
I am afraid that is not possible. Please let me explain why.

Let's start with what a property is: Properties are global variables used by Windows Installer during an installation. Their values can be set by the operating environment or by authoring them into the installation database. Properties can be used inside Formatted Type fields with the format [PROPERTY] and they will be replaced at install time with the value associated with the property's name.

The "Name" field from the "Edit Shortcut Properties" dialog:
Capture.PNG
Capture.PNG (12.55 KiB) Viewed 2100 times
is of PseudoFormatted Type. A PseudoFormatted Type property's value is resolved (set) at build time, which makes it impossible for you to set its value during install time (e.g. user inputs a value and shortcut's name becomes that value).

Please let me know if there is anything else I could help you with and I will be glad to assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”