Why does VS2022 insist on including the EXE in the Dependencies?

Torquinian 1 Reputation point
2025-03-17T09:53:37.5133333+00:00

I have to set up a training version of a production system so that employees from a sister company can train on it before having to use the production system.

I have made things as near identical as I can, but the thing that is bugging me at the moment is that the training version insists on having the EXE file listed in its dependencies and installs both a shortcut and the EXE onto the desktop when installed.

I have tried to make sure all the switches in both versions are the same but I have reached the stage where I just cannot see what the problem is.

I am using VS2022 V17.13.3 with Visual Basic.

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
367 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,311 Reputation points Microsoft External Staff
    2025-03-18T08:34:10.6266667+00:00

    Hi @Torquinian ,

    Thank you for sharing more details.

    … it was specified to be there instead of in the Application Folder.

    From your description, I guess you set the wrong folder, so that it was specified to the user’s desktop.

    The EXE file appearing in the list of dependencies is still puzzling me though.

    I record a .gif file as following. I am not sure, the "list of dependencies" you mean? Is there any screenshot that you can share with us to check?

    test1

    Probably, this issue is related to the configurations of this Setup project.

    After you check the above .gif picture, please kindly let me know if you did something different from mine.

    BTW, after I clicked the setup.exe file, on my desktop, only a shortcut appeared there.

    Kind 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.


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.