WindChaser
Level 4

Setup stops after completion of prerequisite installation

Oddest thing.  I created a prerequisite for SQL Server 2019 and included it in my project.  The issue is that the setup stops once the installation of the prerequisite is completed and I have no idea what might be causing this.  I then need to restart the setup in order to resume the  installation process.  If anyone can tell my what needs to be adjusted, that would be great!

Here is the prerequisite file:

<?xml version="1.0" encoding="utf-8"?>
<SetupPrereq>
<conditions>
<condition
Type="16"
Comparison="2"
Path="[ProgramFilesFolder]Microsoft SQL Server\150\COM"
FileName="sqlresld.dll"
ReturnValue="2019.150.2000.5"
/>
<condition
Type="1"
Comparison="2"
Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Test19"
FileName=""
ReturnValue=""
/>
</conditions>
<files>
<file
LocalFile="&lt;ISProductFolder&gt;\Objects\SQL2019Express\SQLEXPRADV2019_x64_ENU.exe" 
/>
</files>
<execute file="SQLEXPRADV2019_x64_ENU.exe"
cmdline=" /CONFIGURATIONFILE=C:\MyFiles\SQLServer2019Options.ini"
/>
<properties Id="Microsoft SQL Server 2019 Express"
/>
</SetupPrereq>

 

And the configuration file which is located in C:\MyFiles\SQLServer2019Options.ini contains the following:

[OPTIONS]
ACTION="INSTALL"
FEATURES=SQLEngine,Replication
QS="TRUE"
IACCEPTSQLSERVERLICENSETERMS="TRUE"
SUPPRESSPRIVACYSTATEMENTNOTICE="TRUE"
ENU="TRUE"
INSTANCEID="Test19"
INSTANCENAME="Test19"
AGTSVCACCOUNT="NT AUTHORITY\SYSTEM"
ASSVCACCOUNT="NT AUTHORITY\SYSTEM"
SQLSVCACCOUNT="NT AUTHORITY\SYSTEM"
ISSVCACCOUNT="NT AUTHORITY\SYSTEM"
RSSVCACCOUNT="NT AUTHORITY\SYSTEM"
SQLSYSADMINACCOUNTS="BUILTIN\Administrators"
SECURITYMODE="SQL"
SAPWD="MyPwd"
TCPENABLED="1"
NPENABLED="1"

0 Kudos
1 Reply
Azmaeus
Level 6

That is odd. It sounds like an issue with the reboot behavior option. Comparing your prerequisite file against mine, I notice yours seems to be missing a 
<behavior Reboot="<number>"/>
In mine it's the last line before </SetupPrereq>

I believe the default is "8" for "Reboot the machine and resume on reboot".
0 Kudos