user2455111
user2455111

Reputation: 254

Wix: Shortcut open file location button is disabled

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>

Upvotes: 0

Views: 268

Answers (1)

philselmer
philselmer

Reputation: 751

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.

Upvotes: 1

Related Questions