Visual Studio C# installer does not create a shortcut in desktop

Ismael Oliveira 1 Reputation point
2022-03-21T13:07:09.04+00:00

I installed Microsoft Visual Studio Installer Projects 2022 to use in my C# projects and when I created an installer it didn't create a shortcut in my desktop neither created an entry in Start menu. The program was installed correctly. What am I doing wrong? Thank you.

Developer technologies Visual Studio Setup
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2022-03-22T09:37:16.427+00:00

    Hi @Ismael Oliveira ,

    Welcome to Microsoft Q&A forum.

    Please make sure that you have created and added the related (shortcut file…) files in User's Desktop and User's Programs Menu configuration.

    185584-image.png

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

  2. Ismael Oliveira 1 Reputation point
    2022-03-25T16:06:33.68+00:00
    1. First I installed “Microsoft Visual Studio Installer Projects 2022”.
    2. Then, in my solution, I created a new project and selected “Setup Wizard”.
    3. I filled the name and local of the installer.
    4. The setup page appeared.
    5. In step 2 I chose “Create a setup for a Windows application”.
    6. In step 3 (“Choose project outputs to include”) I selected “Primary output for Test”.
    7. Then I clicked Finish.
    8. The “File System (Instalador)” appeared.
    9. In the Solution Manager I right-clicked on the installer to get its properties.
    10. I filled some fields, like Author, Description, Manufacturer, Product name and Title.
    11. I clicked on “Application Folder” and changed “Always create” to True.
    12. Then I clicked on “User’s desktop” and changed “Always create” to True.
    13. Then I clicked on “User’s program menu” and changed “Always create” to True.
    14. In the Solution Manager I right-clicked on the installer and clicked on Build.
    15. The setup.exe and instalador.msi files were created.
      When I double click in setup.exe it installs the application, but the desktop icon and the start menu entry are not created.
      Do you have any solution for my problem?
      Thanks.

  3. Ismael Oliveira 1 Reputation point
    2022-03-28T22:03:21.927+00:00

    Thanks, TianyuSun-MSFT. Now it worked.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.