You are on page 1of 12

AVEVA™ Dynamic Simulation

Silent Install Guide


Version 2022
April 2022

aveva.com
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved.

No part of this documentation shall be reproduced, stored in a retrieval system, or transmitted by any means,
electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of AVEVA.
No liability is assumed with respect to the use of the information contained herein.
Although precaution has been taken in the preparation of this documentation, AVEVA assumes no responsibility
for errors or omissions. The information in this documentation is subject to change without notice and does not
represent a commitment on the part of AVEVA. The software described in this documentation is furnished under
a license agreement. This software may be used or copied only in accordance with the terms of such license
agreement.
ArchestrA, Avantis, Citect, DYNSIM, eDNA, EYESIM, InBatch, InduSoft, InStep, IntelaTrac, InTouch, OASyS,
PIPEPHASE, PRiSM, PRO/II, PROVISION, ROMeo, SIM4ME, SimCentral, SimSci, Skelta, SmartGlance, Spiral
Software, WindowMaker, WindowViewer, and Wonderware are trademarks of AVEVA and/or its subsidiaries. An
extensive listing of AVEVA trademarks can be found at: https://sw.aveva.com/legal. All other brands may be
trademarks of their respective owners.
Publication date: Friday, March 25, 2022
Contact Information
AVEVA Group plc
High Cross
Madingley Road
Cambridge
CB3 0HB. UK
https://sw.aveva.com/
For information on how to contact sales and customer training, see https://sw.aveva.com/contact.
For information on how to contact technical support, see https://sw.aveva.com/support.
To access the AVEVA Knowledge and Support center, visit https://softwaresupport.aveva.com.
Contents

AVEVA Dynamic Simulation 2022 Silent Install...................................................... 4


AVEVA Dynamic Simulation Prerequisites ..............................................................................................4
AVEVA Dynamic Simulation 2022 Command Line Install .........................................................................5
AVEVA Dynamic Simulation 2022 Command Line Install Install Options ................................................. 5
Command Line Example ............................................................................................................................... 6
Silent Install through a Batch File ................................................................................................................. 7
AVEVA Dynamic Simulation 2022 Prerequisite ............................................................................................ 7
AVEVA Dynamic Simulation 2022 Install ...................................................................................................... 9
AVEVA Dynamic Simulation 2022 Uninstall ............................................................................................... 11
Log Files ...................................................................................................................................................... 12

Version 2022
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 3
AVEVA Dynamic Simulation 2022 Silent
Install

The AVEVA™ Dynamic Simulation 2022 silent install does not install its dependencies. Ensure that these
dependencies are installed before using the silent install of AVEVA Dynamic Simulation 2022. The commands
below show how to install the AVEVA Dynamic Simulation 2022 dependencies and AVEVA Dynamic Simulation
2022 silently. Note that the [AVEVA Dynamic Simulation 2022 setup folder] below is where the AVEVA Dynamic
Simulation 2022 install setup.exe is copied, and that the whole path has to be surrounded by double quotes if it
contains a space.
NOTE: The command prompt should be opened in the Administrator mode for the commands to execute
without prompting the user for any action.
The whole silent install process is divided into two different scripts and should be run in sequence. After running
the AVEVA Dynamic Simulation pre requisite script, the system has to reboot to take effect of necessary pre
requisite installation. The AVEVA Dynamic Simulation install script should be run after rebooting the system.
o AVEVA Dynamic Simulation Pre requisite script
o AVEVA Dynamic Simulation Install script
Please refer the sample install scripts text files kept in install kit under the name of "Sample_dynsim_install"and
"Sample_dynsim_prerequisite" .
You can modify these files and save it to ".bat" and execute on command line as an Administrator.

AVEVA Dynamic Simulation Prerequisites


1. Install .NET 4.7.2 (Mandatory)
[AVEVA Dynamic Simulation 2022 setup folder]\Microsoft .NET Framework 4.7.2
Setup\NDP472-KB4054530-x86-x64-AllOS-ENU.exe /q"
(This installation might not be required as this comes along with Operating System from Windows 10
onwards.)
2. Install Microsoft Visual C++ 2008 SP1 Redistributable (Mandatory).
[AVEVA Dynamic Simulation 2022 setup
folder]\Microsoft.2008.C++.Runtime\vcredist_x86-2008.exe/qn
3. Install Microsoft Visual C++ 2010 Redistributable (Mandatory)

Version 2022
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 4
AVEVA™ Dynamic Simulation Silent Install Guide
AVEVA Dynamic Simulation 2022 Silent Install

[AVEVA Dynamic Simulation 2022 setup folder]\Microsoft.2010.C++.Runtime \vcredist_x86.exe/q


4. Install Microsoft Visual C++ 2013 Redistributable (Mandatory)
[AVEVA Dynamic Simulation 2022 setup
folder]\Microsoft.2013.C++x86.Runtime\vcredist_x86.exe/q
5. Install Microsoft Visual C++ 2015-2019 X64 Redistributable (Mandatory)
[AVEVA Dynamic Simulation 2022 setup
folder]\Microsoft..2015-2019.C++x64.Runtime\vc_redist.x64.exe/q
6. Install USB driver 7.6.8 (Conditional). Note that this is needed only if you are going to run AVEVA Dynamic
Simulation using USB for security.
"[AVEVA Dynamic Simulation 2022 setup folder]\Sentinel USB Driver 7.6.8\Sentinel Protection
Installer 7.6.8.exe/qn

AVEVA Dynamic Simulation 2022 Command Line Install


Install Options
1. EXEROOT - AVEVA Dynamic Simulation 2022 install location for executables (default: C:\Program files
(x86)\SIMSCI). Use double quotes around the path if it contains a space. Example: EXEROOT=”C:\Simsci”
2. PROGDATAROOT - AVEVA Dynamic Simulation 2022 install location for program data (default: C:\Program
files(x86)\SIMSCI). Use double quotes around the path if it contains a space. Example:
PROGDATAROOT=”C:\Simsci”
3. USERDATAROOT - AVEVA Dynamic Simulation 2022 install location for user data (default: C:\Program
files(x86)\SIMSCI). Use double quotes around the path if it contains a space. Example:
USERDATAROOT=”C:\Simsci”
4. SECURITY_TYPE - AVEVA Dynamic Simulation 2022 security type, such as FNP1116,TOKEN1116 (default:
FNP1116). Example: SECURITY_TYPE=FNP1116
5. IPASSI_LICENSE_FILE - FLEXlm/TOKEN license manager (default: none). No need to specify this if you are
going to use USB for security. Example: IPASSI_LICENSE_LICENSE_FILE=@FLEXlmServer
6. ADDLOCAL – To specify which all features of AVEVA Dynamic Simulation 2022 to install. If this option is not
used in the AVEVA Dynamic Simulation 2022 silent install, the program will install MSDE2000Feature,
UserFiles, UAS, PDTS, and PFE_Editor. Features that can be specified include MSDE2000Feature, ABSimGUI,
AMG, Dynsim, Dynsim_ALL, Dynsim_Checkout, Translator_Server, Dynsim_Lite, Dynsim_Power, ETS,
OLGAInterfaceEngine, Excel_Engine_Link, OPC_Server_Engine, BulkConfigurator, ChangeManagement, SHM,
UAM, OpcUaServer.
NOTE:Unless ADDLOCAL=ALL is used, feature MSDE2000Feature must always be included in the list when
using the ADDLOCAL option. Examples: To install all features, use ADDLOCAL=ALL. To install just the AVEVA
Dynamic Simulation engine ADDLOCAL=MSDE2000Feature,Dynsim.

Version 2022
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 5
AVEVA™ Dynamic Simulation Silent Install Guide
AVEVA Dynamic Simulation 2022 Silent Install

7. MULTIINSTALL - to specify whether AVEVA Dynamic Simulation 2022 can be run on single machine or
multiple machine. By default, the Multi Box option is No - Simulation can be run on a single machine only. To
install AVEVA Dynamic Simulation 2022 on single box, use REMOVE=NamingSVC MULTIINSTALL="False"
MULTIINSTALLSTATE="First". To install AVEVA Dynamic Simulation 2022 on multi-box, use
MULTIINSTALL="True" MULTIINSTALLSTATE="First".

Command Line Example


For SQL install
1. Install SQL Server Express 2014 (Mandatory for migration from s4m to js4m )
Extract SQL Express Payload to Local Folder
[Local folder]\SQL2014\sqlexpr_x86_enu.exe /q /x:"%cd%\SQL2014\Extract"
2. Run the SQL Setup form extracted Payload Setup.exe
[Local folder]\SQL2014\Extract\Setup.exe
/Configurationfile="%cd%\SQL2014\configurationFile_install63.ini"
/IAcceptSQLServerLicenseTerms="TRUE"

NOTE: From AVEVA Dynamic Simulation 2022 default file extension for new and migrated simulation files is
"Js4m". If there is no need to migrate existing "s4m" format to "Js4m" then SQL server 2014 need not be
installed. If you do not want to install SQL 2014 while installing AVEVA Dynamic Simulation 2022 silently, you
must comment the above-mentioned scripts.

AVEVA Dynamic Simulation install


Example of Single-Box installation
msiexec.exe /i [AVEVA Dynamic Simulation 2022 setup folder]\AVEVADynamicSimulation2022.msi/qn
EXEROOT="C:\SIMSCI" PROGDATAROOT="C:\SIMSCI" USERDATAROOT="C:\SIMSCI" FNP1116
IPASSI_LICENSE_FILE=@FNPServer ADDLOCAL=ALL REMOVE=NamingSVC SETFOLDERPERMISSIONS=NO
SHAREDDIR=%ARG1% MULTIINSTALL="False" MULTIINSTALLSTATE="First"
popd

Example of Multi-Box installation


msiexec.exe /i [AVEVA Dynamic Simulation 2022 setup folder]\AVEVADynamicSimulation2022.msi/qn
EXEROOT="C:\SIMSCI" PROGDATAROOT="C:\SIMSCI" USERDATAROOT="C:\SIMSCI" FNP1116
IPASSI_LICENSE_FILE=@FNPServer ADDLOCAL=ALL REMOVE=NamingSVC SETFOLDERPERMISSIONS=NO
SHAREDDIR=%ARG1% MULTIINSTALL="True" MULTIINSTALLSTATE="First"
popd
The command above uses FNP1116 for security, installs AVEVA Dynamic Simulation 2022 to C:\SIMSCI, and uses
machine @FNPServer for the FNP security. It also installs the AVEVA Dynamic Simulation engine, the Excel
engine and user added models support.

Version 2022
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 6
AVEVA™ Dynamic Simulation Silent Install Guide
AVEVA Dynamic Simulation 2022 Silent Install

Silent Install through a Batch File


All the above commands can be written to a single text file and saved as a batch file. This batch file can be run
through the command prompt (Run as Administrator) and the installation will be done with single action.
A snapshot of the batch file is given below.
The "start /wait" argument at the start of every command will launch the respective msiexec.exe and then it will
wait for the install to finish before returning.
The batch commands that detect the SQL Server instance are written immediately after the SQL 2014 Server
installation commands. This reports unsuccessful installation of SQL and abort the installation.

AVEVA Dynamic Simulation 2022 Prerequisite


@echo on
rem ***************************START AVEVA Dynamic Simulation PRE-REQUISITES*****************
rem
rem The AVEVA Dynamic Simulation 2022 silent install does not install its dependencies.Ensure
that the dependencies are installed before doing the silent install of AVEVA Dynamic Simulation
2022
rem Below are the commands to silently install the AVEVA Dynamic Simulation 2022 dependencies.
rem Comment or Uncomment the below section based on whether you need to install the
pre-requisites or not.
rem
rem !!IMPORTANT!! The command prompt should be opened in Administrator mode for the commands
to be executed silently without prompting the user for any action.
rem
rem Note that the [INSTALLKITLOCATION] below is where the AVEVA Dynamic Simulation 2022 install
setup.exe is and the whole path has to be surrounded by double quotes if it contains a space.
rem To execute the silent install script,please save this sample file as a batch script and
execute.This batch file is used
@echo on

rem Please modify the location of Install kit where you copied.
set INSTALLKITLOCATION="C:\Installs\X64"
set KITPATH=%INSTALLKITLOCATION:"=%

pushd %KITPATH%

Version 2022
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 7
AVEVA™ Dynamic Simulation Silent Install Guide
AVEVA Dynamic Simulation 2022 Silent Install

rem .Net 4.7.2 installation


start /wait "%INSTALLKITLOCATION%\Microsoft .NET Framework 4.7.2
Setup\NDP472-KB4054530-x86-x64-AllOS-ENU.exe /q"

rem Microsoft Visual C++ 2008 SP1 Redistributable (Mandatory)


start /wait Microsoft.2008.C++.Runtime\vcredist_x86-2008.exe /qn

rem Microsoft Visual C++ 2010 Redistributable (Mandatory)


start /wait Microsoft.2010.C++.Runtime\vcredist_x86.exe /q

rem Microsoft Visual C++ 2013 Redistributable (Mandatory)


start /wait Microsoft.2013.C++x86.Runtime\vcredist_x86.exe /q

rem Microsoft Visual C++ 2013 Redistributable (Mandatory)


start /wait Microsoft.2013.C++x64.Runtime\vcredist_x64.exe /q

rem Microsoft Visual C++ 2015-2019 X86 Redistributable (Mandatory)


start /wait Microsoft..2015-2019.C++x86.Runtime\vc_redist.x86.exe /q

rem Microsoft Visual C++ 2015-2019 X64 Redistributable (Mandatory)


start /wait Microsoft..2015-2019.C++x64.Runtime\vc_redist.x64.exe /q

rem USB driver 7.6.8 (Conditional). Note that this is needed only if you are going to run DYNSIM
using USB for security.
rem start /wait"%INSTALLKITLOCATION%\Sentinel USB Driver 7.6.8\Sentinel Protection Installer
7.6.8.exe" /qn

popd

rem rem ************End of AVEVA Dynsim Simulation PRE-Requisite


**************************************

shutdown -r -t 10

Version 2022
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 8
AVEVA™ Dynamic Simulation Silent Install Guide
AVEVA Dynamic Simulation 2022 Silent Install

AVEVA Dynamic Simulation 2022 Install


-rem ***************************AVEVA Dynamic Simulation
INSTALLOPTIONS*************************
rem *****Location where AVEVA Dynamic Simulation kit copied.Please modify if location and name
do not match. Also keep
rem *"" if name has space
set INSTALLKITLOCATION="C:\Installs\X64"
set KITPATH=%INSTALLKITLOCATION:"=%

pushd %KITPATH%

rem SQL Server Express 2014 (Mandatory)

:: Extract SQL Express Payload to Local Folder


start /wait SQL2014\sqlexpr_x86_enu.exe /q /x:"%cd%\SQL2014\Extract"

:: Run the SQL Setup form extracted Payload Setup.exe


start /wait SQL2014\Extract\Setup.exe
/Configurationfile="%cd%\SQL2014\configurationFile_install63.ini"
/IAcceptSQLServerLicenseTerms="TRUE"

popd

@echo off
rem IF %PROCESSOR_ARCHITECTURE%==x86 (
rem reg query "HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL" /v SSI_DSS63
> NUL 2>&1
rem ) else (
reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server\Instance Names\SQL" /v
SSI_DSS63 > NUL 2>&1
rem )

if %ERRORLEVEL%==0 goto INSTALLDYNSIM


echo SQL Server instance not installed. Aborting AVEVA Dynamic Simulation installation.
goto DONE

Version 2022
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 9
AVEVA™ Dynamic Simulation Silent Install Guide
AVEVA Dynamic Simulation 2022 Silent Install

rem ***********************FINISH SQL


Installation***********************************************

EXEROOT - AVEVA Dynamic Simulation 2022 install location for executables (default: C:\Program
files (x86)\SIMSCI). Use double quotes around the path if it contains a space. Example:
EXEROOT=”c:\simsci”
rem PROGDATAROOT - AVEVA Dynamic Simulation 2022 install location for program data (default:
C:\Program files(x86)\SIMSCI). Use double quotes around the path if it contains a space. Example:
PROGDATAROOT=”c:\simsci”
rem USERDATAROOT - AVEVA Dynamic Simulation 2022 install location for user data (default:
C:\Program files(x86)\SIMSCI). Use double quotes around the path if it contains a space. Example:
USERDATAROOT=”c:\simsci”
rem SECURITY_TYPE - AVEVA Dynamic Simulation 2022 security type, such as FNP1116,TOKEN1116
(default: FNP1116). Example: SECURITY_TYPE=FNP1116
rem IPASSI_LICENSE_FILE - FLEXlm/TOKEN license manager (default: none). No need to specify
this if you are going to use USB for security. Example:
IPASSI_LICENSE_LICENSE_FILE=@FLEXlmServer
rem ADDLOCAL – to specify what AVEVA Dynamic Simulation 2022 features to install. If this option
is not used in the AVEVA Dynamic Simulation 2022 silent install, the program will install
MSDE2000Feature, UserFiles, UAS, PDTS, and PFE_Editor. Features that can be specified include
MSDE2000Feature, ABSimGUI, AMG, Dynsim, Dynsim_ALL, Dynsim_Checkout, Translator_Server,
Dynsim_Lite, Dynsim_Power, ETS, OLGAInterfaceEngine, Excel_Engine_Link, OPC_Server_Engine,
BulkConfigurator, ChangeManagement, SHM, UAM, OpcUaServer. Note that unless ADDLOCAL=ALL is
used, feature MSDE2000Feature must always be included in the list when using the ADDLOCAL option.
Examples: To install all features, use ADDLOCAL=ALL. To install just the AVEVA Dynamic Simulation
engine in multibox ADDLOCAL=MSDE2000Feature,Dynsim,NamingSVC. To install just the AVEVA Dynamic
Simulation engine in singlebox ADDLOCAL=MSDE2000Feature,Dynsim,
rem for single box install REMOVE=NamingSVC MULTIINSTALL="False" MULTIINSTALLSTATE="First"
rem for multibox install MULTIINSTALL="True" MULTIINSTALLSTATE="First"

:INSTALLDYNSIM

set INSTALLFOLDER="C:\SIMSCI"
set VAR1=%INSTALLFOLDER:"=%

SET REGCMD=0
SET ARG1=0
IF %PROCESSOR_ARCHITECTURE%==x86 (
SET ARG1="%CommonProgramFiles%\SIMSCI"
) else (
SET ARG1="%CommonProgramFiles(x86)%\SIMSCI"
)

Version 2022
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 10
AVEVA™ Dynamic Simulation Silent Install Guide
AVEVA Dynamic Simulation 2022 Silent Install

pushd %KITPATH%
msiexec.exe /i "MSI\AVEVADynamicSimulation2022.msi" /qn EXEROOT="%VAR1%" PROGDATAROOT="%VAR1%"
USERDATAROOT="%VAR1%" SECURITY_TYPE=FNP1116 IPASSI_LICENSE_FILE=@FNPServer ADDLOCAL=ALL
REMOVE=NamingSVC SETFOLDERPERMISSIONS=NO SHAREDDIR=%ARG1% MULTIINSTALL="False"
MULTIINSTALLSTATE="First"
popd

:DONE
@echo on

rem *************FINISH INSTALLATION with ALL AVEVA Dynamic Simulation


FEATURES***************************

rem ******************END SILENT INSTALL*****************************

AVEVA Dynamic Simulation 2022 Uninstall


@echo off
rem ***********************UNINSTALL AVEVA Dynamic Simulation 2022***************************
rem
rem !!IMPORTANT!! The command prompt should be opened in Administrator mode for the commands
to be executed silently without prompting the user for any action.
rem
rem Unlike the uninstall after installing from the GUI, the SQL Server instance is not
uninstalled automatically as part of the AVEVA Dynamic Simulation 2022 uninstall.
rem
rem Note that the [INSTALLKITLOCATION] below is where the AVEVA Dynamic Simulation 2022 install
setup.exe is and the whole path has to be surrounded by double quotes if it contains a space.
@echo on
set INSTALLKITLOCATION="C:\Installs\X64"
set KITPATH=%INSTALLKITLOCATION:"=%

:UNINSTALLDYNSIM

@echo on
pushd %KITPATH%
msiexec.exe /x "MSI\AVEVADynamicSimulation2022.msi" /qn /forcerestart

Version 2022
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 11
AVEVA™ Dynamic Simulation Silent Install Guide
AVEVA Dynamic Simulation 2022 Silent Install

popd

:DONE
@echo on

rem*****************FINISH UNINSTALLATION OF AVEVA Dynamic Simulation


2022******************************

Log Files
The AVEVA Dynamic Simulation install logs are written to the temporary folder
"C:\Users\usernamexxx\AppData\Local\Temp." The file name usually starts with MSI~.LOG.
The SQL Server installation logs are usually available at "C:\Program Files\Microsoft SQL Server\100\Setup
Bootstrap\Log".

Version 2022
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 12

You might also like