[SOLVED] Package wapt-microsoft-sql-server-2017-express-ebp

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
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

February 11, 2022 - 3:57 PM

Okay, here's the code to install only the SQL Express 2017 instance configured for the EBP Open Line Autonome Paie software

Source : https://support.ebp.com/hc/fr/articles/ ... 17-Express And https://www.itninja.com/blog/view/unatt ... tudio-2012

No need for psexec 8-)

Control file:

Code: Select all

package           : wapt-microsoft-sql-server-2017-express-ebp
version           : 14.0.1000.169-11
architecture      : all
section           : base
priority          : optional
name              : Microsoft SQL server 2017 express EBP
categories        : 
maintainer        : olaplanche
description       : Instance EBP Microsoft SQL server 2017 express
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : fr
target_os         : windows
min_wapt_version  : 
sources           : https://go.microsoft.com/fwlink/?linkid=853017
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Microsoft
keywords          : 
licence           : 
homepage          : 
package_uuid      : 3420d2f4-356b-41fa-a331-28dcbe80deb1
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 
setup.py file:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

# Defining variables
silent_args = '/IACCEPTPYTHONLICENSETERMS="True" ' \
            '/ACTION="Install" ' \
            '/ROLE="AllFeatures_WithDefaults" ' \
            '/SUPPRESSPRIVACYSTATEMENTNOTICE="True" ' \
            '/IACCEPTROPENLICENSETERMS="True" ' \
            '/ENU="False" ' \
            '/IACCEPTSQLSERVERLICENSETERMS="True" ' \
            '/QUIET="True" ' \
            '/QUIETSIMPLE="False" ' \
            '/UpdateEnabled="False" ' \
            '/USEMICROSOFTUPDATE="False" ' \
            '/UpdateSource="MU" ' \
            '/FEATURES=SQLENGINE,REPLICATION ' \
            '/HELP="False" ' \
            '/INDICATEPROGRESS="False" ' \
            '/X86="False" ' \
            '/INSTANCENAME="EBP" ' \
            '/INSTALLSHAREDDIR="C:\Program Files\Microsoft SQL Server" ' \
            '/INSTALLSHAREDWOWDIR="C:\Program Files (x86)\Microsoft SQL Server" ' \
            '/INSTANCEID="EBP" ' \
            '/SQLTELSVCACCT="NT Service\SQLTELEMETRY$EBP" ' \
            '/SQLTELSVCSTARTUPTYPE="Automatic" ' \
            '/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$EBP" ' \
            '/SQLSVCINSTANTFILEINIT="False" ' \
            '/SQLSYSADMINACCOUNTS="BUILTIN\Administrators" ' \
            '/SECURITYMODE="SQL" ' \
            '/SAPWD="@ebp78EBP" ' \
            '/SQLTEMPDBFILECOUNT="1" ' \
            '/SQLTEMPDBFILESIZE="8" ' \
            '/SQLTEMPDBFILEGROWTH="64" ' \
            '/SQLTEMPDBLOGFILESIZE="8" ' \
            '/SQLTEMPDBLOGFILEGROWTH="64" ' \
            '/ADDCURRENTUSERASSQLADMIN="True" ' \
            '/TCPENABLED="1" ' \
            '/NPENABLED="1" ' \
            '/BROWSERSVCSTARTUPTYPE="Automatic"'

def install():
    # Initializing variables
    package_version = control.version.split("-")[0]

    # Installing the package
    print('Software %s' % control.package)
    install_exe_if_needed('sqlexpress2017r1bin_x64\SETUP.EXE',silentflags=silent_args,min_version=package_version)

def uninstall():
    # Initializing variables
    silentargs_SQL = '/ACTION="Uninstall" /SUPPRESSPRIVACYSTATEMENTNOTICE="False" /ENU="False" /QUIET="True" /QUIETSIMPLE="False" /FEATURES=SQLENGINE,REPLICATION /HELP="False" /INDICATEPROGRESS="False" /X86="False" /INSTANCENAME="EBP"' # Paramètres pour la désinstallation silencieuse de l'instance SQL EBP

    # Uninstalling the package
    print('Uninstalling %s' % control.package)
    run(r'"%s\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\setup.exe" %s' % (programfiles64,silentargs_SQL),timeout=1200) # Instance SQL EBP
    print('Uninstalling Microsoft ODBC Driver 13 for SQL Server')
    run('"msiexec.exe" /X{2A35FB4B-FF5D-4C40-BABB-84397E57A8B0} /qn') # Microsoft ODBC Driver 13 for SQL Server
    print('Uninstalling Service de langage T-SQL Microsoft SQL Server 2017')
    run('"msiexec.exe" /X{7051E3D8-7B59-4E38-A94F-BBA621D98267} /qn') # Service de langage T-SQL Microsoft SQL Server 2017
    print('Uninstalling Microsoft SQL Server 2012 Native Client')
    run('"msiexec.exe" /X{BD124715-29D5-4A2E-82EE-0F4392D9CFE3} /qn') # Microsoft SQL Server 2012 Native Client
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
Locked