Visual Studio Setup Project Prerequisites are not installing

Jo Srm 21 Reputation points
2022-10-14T09:43:22.65+00:00

Hello,
I added a Setup Project to my app. I also selected as prerequisites SQL Server 2019 Express LocalDB:

250471-prerequisites.jpg

The installer installs the app just fine but does not install the prerequisites SQL Server 2019 Express LocalDB. There are no popup error messages displayed or any in the Event Viewer.

If I download SqlLocalDB and install it manually there are no issues and my app works, but I would like to have it install during the setup installation if it is needed (auto detect).

I tried on various computers and it also doesn't install SqlLocalDB.

I cannot find anything to explain why setup is not installing the prerequisites.

I am using:
Visual Studio 2017
WIN-FORM
C#

Any suggestion is appreciated.

Developer technologies | Windows Forms
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. RLWA32 49,636 Reputation points
    2022-10-14T10:02:16.7+00:00

    A visual studio installer project should create a .MSI file and a setup.exe executable. It is this separate setup program that checks for and installs prerequisites. If you do not run the setup program but only install the .MSI then the prerequisites will not be installed.

    1 person found this answer helpful.

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.