[SOLVED] SQL Express 2016 installation

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
toto25
Messages: 4
Registration: June 18, 2020 - 09:52

June 18, 2020 - 10:01

Good morning,

I've been working on installing SQL Express 2016 for a few days now. I created the configuration file for a silent installation, and it works locally. I copied all the contents of the SQL setup folder into the WAPT package. However, when I deploy, I get a significant error, and no files are installed on my client.

Here is the error and my setup.py.
sql2.PNG
sql2.PNG (4.67 KB) Viewed 6251 times
sql1.PNG
sql1.PNG (56.23 KB) Viewed 6251 times
Has anyone managed to install it or encountered a similar error? Thank you very much!
Last edited by toto25 on June 19, 2020 - 3:19 PM, edited 1 time.
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

June 18, 2020 - 10:31

Good morning,
It seems that a silent installation of SQL Server requires some additional parameters...
Maybe at least

Code: Select all

/Q /IACCEPTSQLSERVERLICENSETERMS /ACTION="install"
https://docs.microsoft.com/fr-fr/sql/da ... rver-ver15

setup.exe /Q /IACCEPTSQLSERVERLICENSETERMS /ACTION="install" ...

Apparently, setup.exe /help displays the available parameters
Tranquil IT
toto25
Messages: 4
Registration: June 18, 2020 - 09:52

June 18, 2020 - 11:20

Thank you for your response
I tried using the "required" options from the Microsoft documentation, but it didn't work. So I copied my entire configuration file like this:

Code: Select all

def install():
    install_exe_if_needed("SETUP.exe",'/Q /IACCEPTSQLSERVERLICENSETERMS /ACTION="install" /ROLE="AllFeatures_WithDefaults" /ENU="False" /IACCEPTSQLSERVERLICENSETERMS="True" /QUIET="True" /UpdateEnabled="True" /USEMICROSOFTUPDATE="True" /FEATURES=SQLENGINE'      (le reste)........
result, "returned non-zero exit status -2068052377."
I can't figure out what this error code means.
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

June 18, 2020 - 12:28

I'm interested if you find a solution. I have a piece of software that I can't package and it includes an SQL Express module that I suspect is causing the problem.

There are no issues if I run the installation locally using PyScripter.
However, if you can reproduce the problem in a command prompt with `psexec -i -s cmd`, I think it means that SQL Express doesn't support installation under the system account.
toto25
Messages: 4
Registration: June 18, 2020 - 09:52

June 19, 2020 - 09:07

Good morning,

I successfully completed the installation, so I'm going to share the steps I followed for those who need them!
So I created my SQL Express 2016 configuration file (start an install then cancel it, easy to find on google), I removed QUIETSIMPLE e and put QUIET = TRUE.
Then I put everything as is in the setup.py file

Code: Select all

def install():
    install_exe_if_needed("SETUP.exe",'/ACTION="install" /ROLE="AllFeatures_WithDefaults" /ENU="False" /IACCEPTSQLSERVERLICENSETERMS="True" /QUIET="True" /UpdateEnabled="True" /USEMICROSOFTUPDATE="True" /FEATURES=SQLENGINE etc.... 
I put the contents of the installation folder into the package.

The problem was that during each "test" installation, I hadn't completely removed all traces of the software, hence the error message. After a complete uninstall, it works.
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

June 19, 2020 - 09:37

toto25 wrote: June 19, 2020 - 09:07

Code: Select all

def install():
    install_exe_if_needed("SETUP.exe",'/ACTION="install" /ROLE="AllFeatures_WithDefaults" /ENU="False" /IACCEPTSQLSERVERLICENSETERMS="True" /QUIET="True" /UpdateEnabled="True" /USEMICROSOFTUPDATE="True" /FEATURES=SQLENGINE etc.... 
Good morning,
Could you list all the default options to provide?
Or would that alone be enough?

Code: Select all

 install_exe_if_needed("SETUP.exe",'/ACTION="install" /ROLE="AllFeatures_WithDefaults" /ENU="False" /IACCEPTSQLSERVERLICENSETERMS="True" /QUIET="True"')
toto25
Messages: 4
Registration: June 18, 2020 - 09:52

June 19, 2020 - 11:38

That's really all the options in the configuration file.

Code: Select all

def install():
install_exe_if_needed("SETUP.exe",'/ACTION="install" /ROLE="AllFeatures_WithDefaults" /ENU="False" /IACCEPTSQLSERVERLICENSETERMS="True" /QUIET="True" /UpdateEnabled="True" /USEMICROSOFTUPDATE="True" /FEATURES=SQLENGINE /UpdateSource="MU" /HELP="False" /INDICATEPROGRESS="False" /X86="False" /INSTALLSHAREDDIR="C:\Program Files\Microsoft SQL Server" /INSTALLSHAREDWOWDIR="C:\Program Files (x86)\Microsoft SQL Server" /INSTANCENAME="MONENTREPRISE" /SQMREPORTING="False" /INSTANCEID="MONENTREPRISE" /INSTANCEDIR="C:\Program Files\Microsoft SQL Server" /AGTSVCACCOUNT="AUTORITE NT\SERVICE RÉSEAU" /AGTSVCSTARTUPTYPE="Disabled" /COMMFABRICPORT="0" /COMMFABRICNETWORKLEVEL="0" /COMMFABRICENCRYPTION="0" /MATRIXCMBRICKCOMMPORT="0" /SQLSVCSTARTUPTYPE="Automatic" /FILESTREAMLEVEL="0" /ENABLERANU="True" /SQLCOLLATION="French_CI_AS" /SQLSVCACCOUNT="NT Service\MSSQL$MONENTREPRISE" /SQLSYSADMINACCOUNTS="BUILTIN\Administrateurs" /SECURITYMODE="SQL" /SAPWD="Colo#2009" /ADDCURRENTUSERASSQLADMIN="False" /TCPENABLED="1" /NPENABLED="0" /BROWSERSVCSTARTUPTYPE="Automatic"',timeout=1200)
Locked