简体   繁体   中英

How to allow the user to choose the name for the Start Menu Group on WiX3.5 installer?

I'm creating an installer using Wix3.5, and I would like to allow the user to choose a name for the Star Menu group where my shortcut will be placed on.

I tried using Properties:

<directory id="ProgramMenuFolder">
<directory id="MyStartMenuFolder" name="[START_MENU_GROUP_NAME]">

and:

<control type="Edit" id="StartMenuGroupName" width="213" height="15" x="56" y="199" property="START_MENU_GROUP_NAME">

but the group is created with the literal "START_MENU_GROUP_NAME" and not with the content of the Property.

What is the right way to do this? Thanks!

Directories become properties after CostFinalize. Therefore have the name attribute be the default value, have a dialog that has an edit box for the id (propertyname) of the Directory. If the user changes that value it'll change where the shortcuts get created.

<Directory Id="MYSTARTMENUFOLDER" Name="My Default Folder Name" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM