Creating and Deploying a Customized Installer
You can add and remove applications from the Creo View Adapters installation. For instance, the users in your organization have the following needs:
Required
Not Required
Using Creo View Adapters
Microsoft Visual Studio C++ 2015–2019 Runtime Redistributable
Generating Microsoft Edge Webview2 Runtime for PDF document thumbnail
In this case, you may want to customize the installer in these ways:
Install the Microsoft Edge Webview2 Runtime component with Creo View Adapters Installers. It allows you to generate the thumbnails for Office documents that are converted to PDF formats.
Remove Microsoft Visual Studio C++ 2015–2019 Runtime Redistributable because you have already deployed it.
Accomplish the customization by performing two basic tasks:
1. Prepare the directory structure by adding and removing installer files.
2. Modify CreoSetup.ini to run the installers correctly.
After you complete these tasks, you can deploy the software. The procedures in the next sections contain instructions for completing the tasks above, and for and the deployment.
Preparing the Directory Structure
Follow the steps below to customize the installation directory.
1. Create an empty directory (<directory>).
2. Copy these subdirectories and files into your empty directory:
\prereqs subdirectory
\creoview_adapters subdirectory
Setup.exe
CreoSetup.ini
3. Under the \prereqs subdirectory, remove the Microsoft Visual Studio 2015–2019 C++ Redistributable x64. It is called vcredist_x64.exe. Make sure you have the required Microsoft Edge Webview2 Runtime in this directory. The file is called MicrosoftEdgeWebview2RuntimeInstaller.exe.
The directory is now ready. Continue to the next section to customize the INI file.
Modifying CreoSetup.ini
You must now modify CreoSetup.ini to make these changes to the default installation directives. You can delete unnecessary lines and sections from the file, or you can modify them. In this example, they are modified.
Add new directives to run the Microsoft Edge WebView2 Runtime installer
Remove or disable the vc_redist.x64.exe directives.
Follow the next steps to update the INI file accordingly.
1. Open CreoSetup.ini in a text editor.
2. In the [Other Applications] section, find the line VCREDIST_X64=YES and replace it with VCREDIST_X64=NO and the line VCREDIST_X86=YES with VCREDIST_X86=NO.
3. Make sure you have the default line MSEDGEWEBVIEW2=YES and its matching section MSEDGEWEBVIEW2 in the file. This ensures that Microsoft Edge WebView2 Runtime component is installed or updated when needed.
4. Save CreoSetup.ini and close the text editor.
You have now defined the installation in the INI file:
For more information on the INI file, skip to the section Understanding the CreoSetup.ini File.
To begin deployment, skip to the section Deploying Creo View Adapters with the Customized Installer below.
Understanding the CreoSetup.ini File
Each application in the file’s [Other Applications] section has a YES or NO value. A YES value does not necessarily mean the application’s installer will always be executed. Instead, each application with a YES value is a potential installation. If your system has an installation that matches the product code line, then nothing is done. If your system does not have a matching installation, the application is installed.
The PRODUCTCODE line for each application is optional. In all cases, the application is installed automatically when your system does not have the same version installed. Providing a product code minimizes the time the installation takes to complete.
The value for the PROGRAM line must be a *.exe file or a *.msi file.
Deploying Creo View Adapters with the Customized Installer
You have now prepared the directory and modified the INI file. In this example, deploy the applications with a passive installation. You may use one or both of these strategies:
Run Setup.exe directly from the network location.
Create a new, self-extracting archive from the modified directory. Make sure the self-extractor calls CreoSetup.exe to chain all the installations to deploy.
The call to CreoSetup.exe must include, in the command line, all MSI arguments for the base Creo View Adapters installer. At this time, you cannot embed the Creo View Adapters MSI arguments directly in CreoSetup.ini.
To perform the passive installation, open a command shell and enter the following command:
CreoSetup.exe /vADDLOCAL="ALL" APPLICATIONFOLDER="C:\ptc\mycreoviewadapters" /qb!
* 
Make sure there is no space between /v and the next character in the command.
Creo View Adapters and the Microsoft Edge WebView2 Runtime are installed with a progress bar, but no Cancel button. For more information on common examples of options for a silent installation, see Deploying Creo View Adapters Using a Silent Installation.
Was this helpful?