Comment créer une installation automatisée de TopSolid ?

~ 0 min
12-06-2023 48:10

Le besoin est de déployer TopSolid sur plusieurs postes sans avoir à relancer manuellement la procédure d'installation sur chaque poste.

Le principe est d'installer TopSolid sur un poste dit poste maître, récupérer les informations d'installation afin de créer un fichier batch d'installation qui sera lancé sur les postes esclaves.

La procédure décrite ci-dessous est valable pour TopSolid 7 ainsi que TopSolid v6.

Sur le poste maître :

  • Lancer l'installation de TopSolid avec tous les modules que vous avez acquis (et qui seront installés sur tous les autres postes).
  • Lorsque l’installation est terminée, aller dans le dossier %USERPROFILE%\AppData\Local\TopSolid\Setup\7.17 (ou %USERPROFILE%\AppData\Local\TopSolid\Setup\6.24 pour TopSolid v6).
  • Ouvrir le fichier Setup.log avec un éditeur de texte (Bloc-Notes ou autre).
  • Rechercher toutes les lignes commençant par l’instruction CreateProcess et les copier/coller dans votre fichier batch d’installation .
  • Supprimer l'instruction CreateProcess et modifier événtuellement le chemin d'accès au média d'installation.
  • Sauver votre fichier batch d'installation.

Sur les postes esclaves : Lancer le batch d'installation sur tous les postes à installer.

Exemple de fichier batch d'installation de TopSolid 7.17 avec les modules Steel et Cam (fichier Master7.17.bat) :

echo off
cls
echo *** TopSolid 7.17 Setup ***
msiexec.exe /package "\\server\Setup\Redist\x64\SQLSysClrTypes.msi" /quiet /norestart
msiexec.exe /package "\\server\Setup\Redist\x64\SharedManagementObjects.msi" /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid'Diagnostics x64.msi" /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid'Interop Spatial Kernel x64.msi" /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid'WorkManager x64.msi" /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid'Design x64.msi" ADDLOCAL=F0,F2 /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid'Design Libraries x64.msi" ADDLOCAL=F0,F1,F2,F3,F4,F5,F6 /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid IFC Libraries x64.msi" ADDLOCAL=F0 /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid Wurth Library x64.msi" ADDLOCAL=F0 /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid Building Library x64.msi" ADDLOCAL=F0 /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid'Steel Templates x64.msi" /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid Forster Library x64.msi" /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid Jansen Library x64.msi" /quiet /norestart
msiexec.exe /package "\\\\server\Setup\x64\TopSolid Rp Technik Library x64.msi" /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid'Cam Kernel x64.msi" /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid'Cam Post Processors Base x64.msi" /quiet /norestart
msiexec.exe /package "\\serverSetup\x64\TopSolid'Cam x64.msi" /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid'Cam Libraries x64.msi" /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid'Cam Equipments Library x64.msi" /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid'Cam NC Machines Library x64.msi" /quiet /norestart
\\server\setup\Setup\Redist\SQL Server Express\SETUP.EXE /Q /ACTION=INSTALL /FEATURES=SQL /INSTALLSQLDATADIR="C:\Program Files\Microsoft SQL Server" /INSTALLSHAREDDIR="C:\Program Files\Microsoft SQL Server" /INSTALLSHAREDWOWDIR="C:\Program Files\Microsoft SQL Server\shared x86" /INSTANCENAME=SQLTOPSOLID /SECURITYMODE=SQL /SAPWD="TopSolid7" /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SQLSYSADMINACCOUNTS="MISSLERSUDOUEST\stg" "NT AUTHORITY\SYSTEM" /IACCEPTSQLSERVERLICENSETERMS /BROWSERSVCSTARTUPTYPE="Automatic"
\\server\setup\Setup\Redist\SQL Server Express\SETUP.EXE /ACTION=INSTALL /FEATURES=SQL /INSTALLSQLDATADIR="C:\Program Files\Microsoft SQL Server" /INSTALLSHAREDDIR="C:\Program Files\Microsoft SQL Server" /INSTALLSHAREDWOWDIR="C:\Program Files\Microsoft SQL Server\shared x86" /INSTANCENAME=SQLTOPSOLID /SECURITYMODE=SQL /SAPWD="TopSolid7" /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SQLSYSADMINACCOUNTS="MISSLERSUDOUEST\stg" "NT AUTHORITY\SYSTEM" /IACCEPTSQLSERVERLICENSETERMS /BROWSERSVCSTARTUPTYPE="Automatic"
\\server\setup\Setup\Redist\SQL Server Management Studio\SSMS-Setup-ENU.exe /quiet /norestart
msiexec.exe /package "\\server\Setup\x64\TopSolid'Update x64.msi" /quiet /norestart
echo *** TopSolid 7.17 Setup Complete ***