0

I am using WiX for an installation project. I have a shortcut to my executable file on the desktop. When I go to the properties of shortcut the button Open file location is disabled. How do I make the button set to enable? Here is my code:

<File Id="App.exe" Name="App.exe" KeyPath="yes" Source="$(var.SourceDir)\App.exe">                          
    <Shortcut Id="AppDesktop" Directory="DesktopFolder" 
                              Name="App" Icon="Icon.ico" 
                              IconIndex="0" Advertise="yes" 
                              WorkingDirectory="INSTALLLOCATION"/>
</File>
PhilDW
  • 20,260
  • 1
  • 18
  • 28
user2455111
  • 234
  • 1
  • 9
  • Good answer from philselmer. In cases where you install user data to the user-profile or HKCU settings, an advertised shortcut helps to ensure that the settings and data make it onto the system for each user. Do you install user-specific files and registry keys? – Stein Åsmul Sep 01 '17 at 18:24
  • @SteinÅsmul Yes, I install the user-specific files and registry keys. It seems that it will be necessary to leave everything as it was. – user2455111 Sep 05 '17 at 02:37

1 Answers1

1

Your problem is that you are using an advertised shortcut. If you do not need this functionality, you should remove Advertise="yes" from the Shortcut tag.

For more information about the difference between the two, there is a fantastic answer to a different question.

philselmer
  • 751
  • 4
  • 22