How to not generate setup.exe for the Setup project

Ero Min 41 Reputation points
2023-06-20T07:52:24.5933333+00:00

Microsoft Visual studio installer projects only need to generate msi files, not setup.exe. How should I set it in the project?

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

Accepted answer
  1. Ryan Jusay 165 Reputation points
    2023-06-20T08:26:48.9666667+00:00

    To configure a Microsoft Visual Studio Installer project to generate only MSI files instead of a setup.exe file, you can modify the project settings as follows:

    Open your Visual Studio Installer project in Visual Studio.

    In the Solution Explorer, right-click on your installer project and select "Properties" from the context menu.

    In the Project Designer window, navigate to the "Output" tab.

    Under the "Output type" section, select the "Windows Installer Package (*.msi)" option.

    Ensure that the "Create setup program to install prerequisite components" checkbox is unchecked. This step is important because the setup.exe file is typically used to install prerequisite components, and we want to exclude it from the output.

    Save the changes to the project properties.


0 additional answers

Sort by: Most helpful

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.