Hello @Al Walton ,
Welcome to Microsoft Q&A forum.
The SQL 2019 Express isn’t listed in the Prerequisites dialog by default, you may need to manually add it to the Prerequisites dialog. See this document: Walkthrough: Creating a Custom Bootstrapper to Show a Privacy Prompt for a simple sample.
The steps to add custom prerequisites is like following(a simple example):
- Navigate to this folder:
C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages
. - Create a new folder and name it for example
A
in above directory. - Open
A
and create a file, name itproduct.xml
. Create a folder inA
, name iten
. Put the setup file(for exampleSQL2019-SSEI-Expr.exe
) of SQL 2019 Express intoA
. Openen
, and create a file, name itpackage.xml
. - Open product.xml file and input following code:
<?xml version="1.0" encoding="utf-8" ?>
<Product
xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
ProductCode="XXXXXXXX">
<!-- Defines the list of files to be copied on build. -->
<PackageFiles CopyAllPackageFiles="false">
<PackageFile Name="SQL2019-SSEI-Expr.exe" />
</PackageFiles>
<!-- Defines how to run the Setup package.-->
<Commands >
<Command PackageFile = "SQL2019-SSEI-Expr.exe">
</Command>
</Commands>
</Product>
- Open package.xml file and input following code:
<?xml version="1.0" encoding="utf-8" ?>
<Package
xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
Name="DisplayName"
Culture="Culture">
<!-- Defines a localizable string table for error messages. -->
<Strings>
<String Name="DisplayName">SQL 2019 Express</String>
<String Name="Culture">en</String>
</Strings>
</Package>
- Check in Prerequisites dialog and confirm if you can select the newly added SQL 2019 Express.
Please feel free to let us know if it works.
Sincerely,
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.