3

I'm working on a Windows Setup Project in Visual Studio. In the "File System" editor, below the "User's Programs Menu" node, I have a folder for my application that contains several shortcuts. One shortcut serves to launch the application; a different one restores the application's factory settings (so it also calls the application, but with an argument).

After running the installer, the folder - and shortcuts it contains - are created correctly in the Start Menu. Additionally, without any action on my behalf, the installer creates an additional shortcut at the "top level" of the Start Menu (i.e. it's visible when one opens the Start Menu by clicking the Start button).

This additional shortcut used to be the one for launching the application. That was fine. But since I added the "Factory reset" shortcut, this is the one that appears at the "top level" of the Start Menu. This is pointless, and will just confuse users. Is there any way to change this?

EDIT (clarification): Since I added the "Factory reset" shortcut, only this shortcut appears at the top level of the Start Menu (which I don't want), and the shortcut to launch the application no longer appears (but I want it to). Note that all shortcuts in the Start Menu's subfolder are correct. What I'm referring to here is the single shortcut that appears automatically at the top level of the Start Menu (immediately visible when the Start button is clicked).

Dabbler
  • 9,733
  • 5
  • 41
  • 64

1 Answers1

1

You'll have to explicitly mark your "factory reset" shortcut with the System.AppUserModel.ExcludeFromShowInNewInstall property. Raymond Chen shows how to do this in this blog post.

Note that this question was asked before.

Community
  • 1
  • 1
Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
  • Thanks - it's certainly a pointer in the right direction. But how does one set that property in VS's Setup Project? Does it require implementing a custom action? – Dabbler Nov 16 '13 at 10:30