How do I create an automated TopSolid setup?

~ 0 min
12-06-2023 49:10

The need is to deploy TopSolid on several workstations without having to manually restart the installation procedure on each workstation.

The first step is to install TopSolid on a master workstation, retrieve the installation information and create an installation batch file that will be run on the slave workstations.

The procedure described below is valid for both TopSolid 7 and TopSolid v6.

On the master workstation:

  • Launch the TopSolid setup with all the modules you have purchased ( that will be installed on all the other workstations).
  • When the installation is complete, go to the directory %USERPROFILE%\AppData\Local\TopSolid\Setup\7.17 (or %USERPROFILE%\AppData\Local\TopSolid\Setup\6.24 for TopSolid v6).
  • Open the Setup.log file using a text editor (Notepad or similar).
  • Find all the lines starting with the CreateProcess instruction and copy/paste them into your installation batch file.
  • Delete the CreateProcess instruction and modify the path to the installation media if necessary.
  • Save your installation batch file.

On the slave workstations: Run the installation batch on all the workstations to be installed.

Example of batch setup file of TopSolid 7.17 with the Steel and Cam modules (file 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 ***