Effectuer une installation silencieuse à l’aide d’un compte de service réservé

Si vous souhaitez installer le VMS XProtect sans assistance, vous devez lancer le programme d’installation avec les arguments indiqués dans le tableau ci-dessous. Les arguments doivent être créés et enregistrés dans un fichier XML d’arguments qui sera généré avant l’installation.

ArgumentDescription
--quietForce une installation silencieuse.
--argumentsChemin d’accès au fichier XML des arguments contenant la configuration complète. Le chemin d’accès peut être : C:\Arguments.xml.
--licenseChemin d’accès au fichier de licence.

Utilisation d’un compte de service réservé

Cette description est basée sur l’utilisation d’un compte de service réservé à la sécurité intégrée. Les services s’exécutent toujours sur le compte réservé, quel que soit l’utilisateur connecté, et vous devez vous assurer que ce compte dispose de toutes les autorisations nécessaires pour, par exemple, exécuter des tâches et accéder au réseau, aux fichiers et aux répertoires partagés.

Le compte de service doit être spécifié dans un fichier XML d’arguments pour les clés suivantes :

SERVICEACCOUNT

SERVICEACCOUNT_NONLOC

Le mot de passe du compte de service doit être spécifié en texte clair dans la valeur de la clé suivante :

ENCRYPTEDPASSWORD

Exemple : ligne de commande pour démarrer une installation en mode silencieux

"Milestone XProtect VMS Products 2023 R2 System Installer.exe" --quiet --arguments=C:\Arguments.xml --license=C:\M01-C01-231-01-ABCDEF.lic

Exemple : fichier d’arguments basé sur l’utilisation d’un compte de service réservé

<?xml version="1.0" encoding="utf-8"?>
<CommandLineArguments xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:milestone-systems">
  <InstallEnvironment>
    <Parameters>
      <KeyValueParametersOfStringString>
        <Value>true</Value>
        <Key>USERACCOUNT</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>domain\sampleaccount</Value>
        <Key>SERVICEACCOUNT</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>domain\sampleaccount</Value>
        <Key>SERVICEACCOUNT_NONLOC</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>sampleaccountpasswordplaintext</Value>
        <Key>ENCRYPTEDPASSWORD</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>%PROGRAMFILES%\Milestone</Value>
        <Key>TARGETDIR</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>true</Value>
        <Key>IsXPCO</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>true</Value>
        <Key>IsDPInstaller</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>false</Value>
        <Key>LEGACY</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>yes</Value>
        <Key>SQL-KEEP-DATA</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>no</Value>
        <Key>SQL-CREATE-DATABASE</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>True</Value>
        <Key>IS_EXTERNALLY_MANAGED</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>Data Source=server.database.windows.net;Initial Catalog=Surveillance;Persist Security Info=True;TrustServerCertificate=True;Authentication=ActiveDirectoryIntegrated</Value>
        <Key>SQL_CONNECTION_STRING_MS</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>Data Source=server.database.windows.net;Initial Catalog=Surveillance_IDP;Persist Security Info=True;TrustServerCertificate=True;Authentication=ActiveDirectoryIntegrated</Value>
        <Key>SQL_CONNECTION_STRING_IDP</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>Data Source=server.database.windows.net;Initial Catalog=Surveillance_IM;Persist Security Info=True;TrustServerCertificate=True;Authentication=ActiveDirectoryIntegrated</Value>
        <Key>SQL_CONNECTION_STRING_IM</Key>
      </KeyValueParametersOfStringString>
      <KeyValueParametersOfStringString>
        <Value>Data Source=server.database.windows.net;Initial Catalog=Surveillance;Persist Security Info=True;TrustServerCertificate=True;Authentication=ActiveDirectoryIntegrated</Value>
        <Key>SQL_CONNECTION_STRING_ES</Key>
      </KeyValueParametersOfStringString>
    </Parameters>
  </InstallEnvironment>
</CommandLineArguments>

Conditions à remplir avant de procéder à l’installation :

Nom de la base de données
Surveillance
Surveillance_IDP
Surveillance_IM
Configuration de la base de données

Le collationnement par défaut doit être réglé sur « SQL_Latin1_General_CP1_CI_AS »

ALLOW_SNAPSHOT_ISOLATION doit être réglé sur ON

READ_COMMITTED_SNAPSHOT doit être réglé sur ON