Deployment Examples
The command below is prefixed with start /w to force one process to finish before another one is started. This is useful for scripting installations.
The following examples illustrate three different scenarios:
Example 1
Installs everything with the metafeature “ALL”. Makes the installation process completely silent with the MSI argument "/qn" and logs the details of the MSI installation log file "%TEMP%\pvadapters.log:
start /B /WAIT C:\ptc\downloaded\jtadapter\Setup.exe /f
/vADDLOCAL="ALL" /l*v "%TEMP%\pvjtadapter.log" /qn
Example 2
Controls the installation of some features, the JT adapter is added, and the WorkerDaemon as a Service feature is enabled. Shows a brief and non-interactive progress dialog during the MSI process "/qb":
start /w Setup.exe /v
ADDLOCAL="main,workerdaemon,jtadapter" /qb
Example 3
Controls the installation of some features and directly uses the MSI package because the administrator deploys all other prerequisites manually at first. Uses the start command "/D" argument to set the working directory to the location of the MSI file, and instructs the MSI engine to avoid prompting for a reboot in case some in-use files are updated. Note that this means that the exit code of the msiexec can be either 0 or 3010. While both codes indicate a successful installation, the latter indicates that a reboot is expected:
start /B /WAIT /D C:\ptc\downloads\jtadapter\creoview_jtadapter
%WinDir%\system32\msiexec.exe /I CreoView_JTAdapter.msi
ADDLOCAL="ALL" REBOOT="ReallySuppress" /l*v
"%TEMP%\pvjtadapter.log" /qn
Was this helpful?