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.
Has anyone managed to install it or encountered a similar error? Thank you very much!
[SOLVED] SQL Express 2016 installation
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
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
Good morning,
It seems that a silent installation of SQL Server requires some additional parameters...
Maybe at least
https://docs.microsoft.com/fr-fr/sql/da ... rver-ver15
setup.exe /Q /IACCEPTSQLSERVERLICENSETERMS /ACTION="install" ...
Apparently, setup.exe /help displays the available parameters
It seems that a silent installation of SQL Server requires some additional parameters...
Maybe at least
Code: Select all
/Q /IACCEPTSQLSERVERLICENSETERMS /ACTION="install"setup.exe /Q /IACCEPTSQLSERVERLICENSETERMS /ACTION="install" ...
Apparently, setup.exe /help displays the available parameters
Tranquil IT
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:
result, "returned non-zero exit status -2068052377."
I can't figure out what this error code means.
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)........I can't figure out what this error code means.
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.
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.
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
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.
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.... 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.
Good morning,toto25 wrote: ↑June 19, 2020 - 09:07Code: 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....
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"')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)