[wix-users] No Start Menu Shortcut
Brian Enderle
brianke at gmail.com
Wed Feb 1 10:55:30 PST 2017
I have a strange issue where a Start Menu shortcut is being created in the
appropriate folder (C:\ProgramData\Microsoft\Windows\Start
Menu\Programs\myCompany) but the shortcut does not appear in the Start Menu.
Here is the Component item that creates the shortcuts:
<!-- Program File Folders (i.e., C:\Program Files (x86)\ ) -->
<ComponentGroup Id="ProductComponents" Directory="INSTALL_FOLDER">
<Component Id="myProductEXE">
<File Id="myProductEXE"
Source="$(var.myProduct.TargetDir)myProduct.exe"
Vital="yes"
KeyPath="yes">
<!-- Create Shortcuts for Admin & regular user in the program
menu dir -->
<Shortcut Id="ProgramMenuDirShortcutAdmin"
Name="myProduct - Admin"
Description="myProduct Interface for administration and
setup"
Icon="DCIcon.ico"
Directory="ProgramMenuFolderCompany"
WorkingDirectory="INSTALL_FOLDER"
Arguments="Admin"
Advertise="yes" />
<Shortcut Id="ProgramMenuDirShortcutUser"
Name="myProduct - User"
Description="myProduct Interface for the end user"
Icon="DCIcon.ico"
Directory="ProgramMenuFolderCompany"
WorkingDirectory="INSTALL_FOLDER"
Advertise="yes" />
<!-- Create Shortcuts for Admin & regular user on the desktop -->
<Shortcut Id="DesktopShortcutAdmin"
Name="myProduct - Admin"
Description="myProduct Interface for administration and
setup"
Icon="DCIcon.ico"
Directory="DesktopFolder"
WorkingDirectory="INSTALL_FOLDER"
Arguments="Admin"
Advertise="yes" />
<Shortcut Id="DesktopShortcutUser"
Name="myProduct - User"
Description="myProduct Interface for the end user"
Icon="DCIcon.ico"
Directory="DesktopFolder"
WorkingDirectory="INSTALL_FOLDER"
Advertise="yes" />
</File>
<RemoveFolder Id="RemoveProgramMenuFolderApplication"
Directory="ProgramMenuFolderCompany" On="uninstall" />
</Component>
. . . .
</ComponentGroup>
All the other shortcuts appear where they should. I also use this same
method of setting up shortcuts on other products and all the shortcuts
appear for those products.
Also, when I try searching for the shortcut from the Start menu it does not
show up in the search results.
Any ideas why this one shortcut does not appear in the Start Menu. This is
happening on Windows Server 2012 R2 if that matters. The same thing
happens on installations of this product on different machines so it is not
an isolated incident.
Brian
If you can't explain it simply, you don't understand it well enough. -
Albert Einstein
More information about the wix-users
mailing list