Avocet Production Data Management System Installation Guide
Avocet Production Data Management System Installation Guide
          Note: To start installing Avocet components immediately, without reviewing preliminaries and
          prerequisites, skip to the Avocet Installer utility section.
   To complete the setup and configuration of some of the components, refer to the following Help topics
   and documents:
Installation Reference Provides guidelines for MS SQL server and Oracle database setup
    Application Servers and Process Groups          Contains configuration steps for setting up Internet Information Services server
                                                    to support the Avocet web services API and the application server
    Avocet Integration: Studio                      Contains installation and configuration information for the Petrel Studio Plug-in
                                                    2015
    Avocet Integration: Oilfield Manager Projects   Contains installation and configuration information for the OFM Plug-in 2014.1,
                                                    2016.1, and 2016.2
                                                    The Avocet Installer does not deploy the Avocet web services independently
    Avocet Web Services
                                                    as its own package because the web services package is designed mainly for
                                                    developers. Refer to the Avocet Web Services documentation for configuration
                                                    details.
                                                                                                                                    3
Supported operating systems, servers, and databases for Avocet desktop
    This topic summarizes the client and server operating systems and the databases that Avocet 2017.2
    supports for the Avocet desktop.
Supported Client OS
Supported Server OS
    The Enterprise editions of the database servers support features such as database partitioning and
    compression. The Standard editions do not support these features though they do support all Avocet
    functionality. When sizing your database, if the Enterprise features are not required, you can use the
    Standard edition.
          Note: While the Enterprise edition of MS SQL Server 2012 SP2 has not been formally certified,
          it is used in test and production deployments.
    As a rule of thumb, you should also use the most recent release of the database server.
    The following SQL database engine has been tested for disconnected desktops:
    • SQLite v.3.7.17
    SQLite is specifically aimed at local installations on disconnected field laptops having single users. Its
    requirements are minimal.
    The following IIS versions are supported for the web services API:
    • IIS 8.0 or 8.5 on Windows server 2012 R2
Operating System Microsoft Windows 7 SP1 64-bit Microsoft Windows 7 SP1 64-bit
Client software Microsoft .NET 4.6.1 Runtime, Microsoft Internet Explorer 8 or later
Microsoft Office 2003 or higher required for integration for Office applications
Database connectivity Required for client machines connecting directly to the database (client/server mode).
                           SQL Server client software is included with Microsoft Vista or later. SQL Server client software
                           matching the database server version is recommended.
                           Oracle Instant Client software is included with the application. Oracle client software deployed
                           on machines is also supported.
      Note: The requirements and recommendations described herein are guidelines. They may vary
      depending on your specific deployment requirements.
Database server specifications will change based on anticipated data requirements and user load.
Specifications here indicate typical configurations. At a minimum, data and indexes should be separated
on two physical disks with their own disk controllers.
The database server can be deployed using vendor-specific high availability solutions for redundancy
and disaster recovery. Proper back-up procedures should be used to provide protection against failures
based on standard IT procedures.
      Note: Beginning with Windows Server version 2008 R2, all Windows Server versions are
      released in 64-bit only.
       Processor             2 Intel Dual x64 Server class    4 Intel Dual x64 Server class CPUs or better
                             CPUs or better
Hard Disk Space 2 x 500 GB or greater The database sizing varies by client.
       Database software     Recommended: Microsoft SQL Server 2012 SP2 Standard Edition or Oracle 12.1.0.2
                             (Oracle 12c) Enterprise Edition
Following your Oracle or MS SQL Server guidelines, you can install and run the database on any
compatible database server.
                                                                                                                          5
    Application server requirements change based on anticipated user load.
    For example, the hard disk space values in the following table assume that a single machine contains
    the application, replication, and web servers and that the client intends to store months of replication
    data.
    The sizing values always vary with the client's business requirements. As always, try to determine the
    scale before deploying Avocet.
    Operating System            Microsoft Windows Server       Microsoft Windows Server 2012 R2 x64
                                2012 R2 x64
    Processor                   Intel Core, AMD Opteron, or 2 Intel Dual x64 Server class CPUs or better
                                equivalent
Server software Microsoft .NET 4.5.2 Runtime, Microsoft Internet Explorer 8 or later
Microsoft Office 2003 or higher required for integration for Office applications
Database connectivity Required for client machines connecting directly to the database (client/server mode).
                                SQL Server client software is included with Microsoft Vista or later. SQL Server client software
                                matching the database server version is recommended.
                                Oracle Instant Client software is included with the application. Oracle client software deployed
                                on machines is also supported.
Operating System Microsoft Windows Server 2012 R2 64-bit Microsoft Windows Server 2012 R2 64-bit
    Processor                   Intel Dual, Quad, or 8-Way Server class         Intel Dual, Quad, or 8-Way Server class CPU’s
                                CPUs or better                                  or better
Server software Microsoft .NET 4.6.1 Runtime, Microsoft Internet Explorer 8 or later
Microsoft Office 2003 or higher required for integration for Office applications
Database connectivity Required for client machines connecting directly to the database (client/server mode).
                                  SQL Server client software is included with Microsoft Windows Vista or later. SQL Server
                                  client software matching the database server version is recommended.
                                  Oracle Instant Client software is included with the application. Oracle client software deployed
                                  on machines is also supported.
Component Description
Avocet desktop client The main client GUI where you perform your production management tasks
    Configuration Tool            Utility that allows administrators to initialize databases, modify the type system, set up units
                                  of measure, and perform a range of administrative tasks
    Database Configuration Tool   Utility that allows administrators to create and initialize fresh database instances and upgrade
                                  existing database with the latest data type definitions
    AvocetWebService              The web services API is addressed to developers to customize and extend their own web
                                  services applications. It does not have its own installation routine. See the Avocet Web
                                  Services documentation in the AvocetVM\Documentation folder.
                                         Note: The Avocet web services API is required for the Avocet application server
                                         deployment and is installed with the application server.
    ClickOnce                     Deployment package that enables an Avocet server to publish files to multiple Avocet clients,
                                  providing for the installation and updating of Avocet clients through a web connection
    Application server            A server that is especially designed to handle the execution of Avocet processes, such as
                                  allocations and data loading. It requires the Avocet web services API and an Internet
                                  Information Services (IIS) server.
                                                                                                                                 7
    Component                        Description
    Redistributables                 Avocet includes several redistributables, such as Microsoft Visual C++ Redistributable for
                                     Visual Studio 2015, .NET Framework 4.6.1, Visual C++ Runtime, Report Viewer, and others.
Plugins Studio and OFM plugins are available for connecting Avocet with Studio and OFM
    Avocet_2017.2_InstallationUtility.zip                        A Windows PowerShell utility from which you can install Avocet
                                                                 prerequisites and components, including the ClickOnce
                                                                 deployment package and Studio and OFM plug-ins
   You can either refer to the corresponding Microsoft websites for downloading and verifying the
   installation of the components or run the Avocet Installer utility.
                                                                                                        9
     Run PowerShell with administrator privileges for Windows 8
     This task shows how to modify the Windows PowerShell so it always runs with administrator privileges.
     Thereby you do not have to select Run as Administrator even if you are already an administrator on
     the system.
     On a Windows 8 system, when launching the PowerShell window you may get an error when running
     the script. To run the script successfully, you have to select Run as Administrator even if you are
     the administrator on the system. To avoid this extra step, you can modify the Windows PowerShell
     shortcut so that it always runs with the administrator privilege.
1. Right-click the Windows PowerShell shortcut to display the flyout menu, and choose Properties.
     2. In the Shortcut tab of the Windows PowerShell Properties dialog, choose Advanced… .
     3. In the Advanced Properties pop-up, select the Run as administrator check box.
                                                                                                              11
           Note: The Avocet web services API is installed as part of the application server installation. It
           does not have its own installation routine. You must manually deploy the web services API if
           you want to use it to extend or customize web applications other than the application server.
Upgrade prerequisites
     This procedure provides guidelines for what you must do if you have an existing implementation that
     you are upgrading.
     Before upgrading any aspect of Avocet, do the following:
Files to download
     This task lists which files to download and then shows how to download them from the Schlumberger
     Integrated Solutions (SIS) Software Download Center.
     From the Schlumberger Integrated Solutions (SIS) Software Download Center (SIS Software Download
     Center), download the following zipped files:
     •   Avocet_2017.2_Full_Release.zip
         This contains the Avocet content folders AvocetVM, AvocetWebService, and AppServer.
     •   Avocet_2017.2_InstallationUtility.zip
         This contains the Avocet Installer components, including prerequisites and utilities.
     •   Avocet_2017.2_Prerequisites.zip
         A convenience package, this zipped file contains the Avocet prerequisites, also contained in the
         Avocet_2017.2_InstallationUtility.zip file. You can copy this package to multiple machines to lay
         down the Avocet prerequisites.
    1. Extract the contents of the zipped Installer package to the temporary folder.
       The file contents, which are contained in a single Installer folder, are displayed below:.
    2. Copy the Avocet content folders you extracted from the Avocet_2017.2_Full_Release.zip file to
       the Avocet subfolder that resides within the Installer folder.
       The Installer\Avocet subfolder should display the contents as shown in the following screenshot:
    3. Paste your customized Avocet files to their respective subfolders in the Installer folder.
    4. Optional. After you copy the Avocet content folders to the Avocet subfolder, you can copy and
       move the Installer folder to different supported systems to install different components.
                                                                                                            13
        The following diagram outlines how the Avocet Installer deploys the Avocet content folders to a
        specified deployment folder:
                                                                                                    15
     Option               Description                                              Additional configuration
     Avocet               the AvocetVM folder and contents                         The Installer checks for and prompts you to install
                                                                                   any missing prerequisites, including
                                                                                   • Microsoft Visual C++ Redistributable for Visual
                                                                                     Studio 2015
                                                                                   • Microsoft .NET Framework 4.6.1 or later
                                                                                   • Microsoft ReportViewer 2010 Redistributable
                                                                                   • Microsoft ReportViewer 2012 Redistributable
                                                                                   • Microsoft Visual C++ 2008 Runtime Libraries (x64)
                                                                                   • Microsoft Visual C++ 2008 Runtime Libraries (x86)
                                                                                   • Microsoft Visual C++ 2010 Runtime Libraries (x64)
                                                                                   • Microsoft Visual C++ 2010 Runtime Libraries (x86)
                                                                                   • Microsoft Visual C++ 2012 Runtime Libraries (x64)
                                                                                   • Microsoft Visual C++ 2012 Runtime Libraries (x86)
                                                                                   • Microsoft Access Database Engine Redistributable
                                                                                     2010
     ClickOnce for        the ClickOnce deployment package                         Setup instructions are described herein.
     AvocetClient
     Avocet AppServer     the Avocet application server, including the             The Avocet application server requires Windows
                          scheduler process.The application server manages         server 2012 R2. After installing the application server,
                          resource-intensive processes such as data loading,       refer to the Help topic Application servers and
                          allocations, and so forth. These processes can be        process groups for setup and configuration
                          served on separate systems, apart from the system        instructions.
                          where the Avocet client resides.
     Schlumberger       This is the 2017.1 version of the Schlumberger             You manually configure the license utility after it is
     Licensing Software Licensing utility. The Installer deploys it in its         installed.
                        default location, ignoring the value in the
                        Deployment location field.
     Studio and OFM       The Studio plug-in is an integration component that      If necessary, you can copy the extracted folder to
     plug-ins             lets you load Avocet well bore and completion            the target systems. Each plugin utility folder contains
                          items into Petrel for analysis.The two OFM plug-ins      an MSI installer file. You manually launch the MSI
                          enable the export of forecast data from OFM to           file to install the plugin. Refer to the Help topics
                          Avocet. You can install both OFM plug-ins on the         Avocet Integration: Studio and Avocet Integration:
                          same system if you have the corresponding OFM            OFM.
                          versions installed. Each plugin folder is extracted
                          to the path specified in the Deployment location
                          field.
     Deployment           the file path for installing the selected options. The
     location             Installer does not read the Deployment location
                          value for the Schlumberger Licensing and plug-in
                          selections.
                                                                                                   17
     Be sure that your user and system variables are entered correctly. This will depend on the type of
     license that you have selected.
     As an example, the port number and domain name are entered as both user and system variables in
     the Environment Variables dialog under the Advanced tab of your computer’s System Properties
     definition.
     Schlumberger Licensing can run on your local machine or on a license server. Therefore, use one of
     the following workflows:
     • To use a local license file, install and set up Schlumberger Licensing on your local machine.
     • To use a server license file, install and set up Schlumberger Licensing on your licensing server
       machine and on your local machine.
1. Choose Start > Programs > Schlumberger > Schlumberger Licensing 2017.1 > Schlumberger
   Licensing from your Start menu.
   The Schlumberger Licensing window opens.
2. Enter your license server name in the All License Servers section, and then click Add License
   Server.
3. Click Apply.
4. Click OK to close the Schlumberger Licensing window.
                                                                                                       19
Install Avocet
     This set of tasks shows how to install Avocet from the Installer, launch Avocet for the first time, and
     prepare your new or existing database.
     1. To deploy the AvocetVM folder to the target directory specified under Deployment location, do the
        following:
        a) Select Avocet.
        b) Verify the deployment location.
        c) Select the Terms & Conditions and safety acknowledgement check boxes.
        d) Click Install.
        Windows Powershell is displayed. You are prompted to install any prerequisites. If the deployment
        is successful, you receive a message saying that the setup is finished and specifying the location
        of the log file. You are returned to the directory path of the Installer folder.
        The Avocet Installer should copy your customized files to their respective folders.
     2. Verify that your customized files were successfully deployed to their respective folders.
     3. Exit Windows Powershell by typing Exit at the directory prompt.
Proceed to generate replication triggers for your database instance if you intend to use the Avocet
replication scenarios.
Windows authentication and connection string syntax
Microsoft recommends using Windows authentication to connect to your database server.
If you choose Windows authentication as your connection method, you must first ensure that the
Windows authentication user account is defined on your database server. For example, in MS SQL
Server you can launch Microsoft SQL Server Management Studio, connect to your database server,
and verify the Windows user account under the Security > Logins subfolder:
                                                                                                      21
     You must include an Integrated Security attribute (or Trusted_Connection depending on your data
     provider) in your connection string. You can refer to the following table, which is described in this
     MSDN web page.
     OleDb
                                   Integrated Security=SSPI;
Odbc Trusted_Connection=yes;
     When constructing your connection string using Windows authentication, you can omit the user name
     and password.
     The following example shows an MS SQL server database connection string for Windows authentication:
     <connectString>Network Library=DBMSSOCN;Data Source=DatabaseServer,1433;
     Initial Catalog=DatabaseName;Integrated Security=SSPI;Application Name=AVM</connectString>
     The next example shows an Oracle database connection string for Windows authentication:
     <connectString>Data Source=MyOracleDB:1521;Integrated Security=yes;</connectString>
             Note: If upgrading from an earlier Avocet version, refer to the Help topic Avocet upgrade
             scenarios in the Installation Reference section.
           Note: If you are upgrading from Avocet 2012.1 or Avocet 2012.1 SP 1, you have to first execute
           specified preliminary upgrade scripts before continuing to the formal database upgrade. Refer
           to the Help topic "Database upgrade from Avocet 2012.1 or Avocet 2012.1 SP 1" in the Installation
           Reference section for more information.
                                                                                                         23
     This task shows how to perform a script upgrade and how to tell if the script ran successfully, failed,
     or was not run.
     3. From the App Id drop-down list, select the application Id to connect to.
        The application Id references the database you want to upgrade.
        The Upgrade Manager displays the corresponding scripts having the updates that you can apply
        to the target database. All scripts are selected by default.
              Note: This list may differ from the default list depending how long it has been since your last
              upgrade.
     4. Review the selected scripts and de-select the ones you do not want to submit for upgrading in the
        current session.
   When a selected script fails the upgrade, it is noted with an X mark against a red background, as
   shown in this example taken from a different upgrade session:
   You can click on the X to view the accompanying error message. An example error message is
   shown below:
                                                                                                      25
     You can export these errors to an Excel spreadsheet by clicking the Export Errors to Excel button
     at the bottom of the panel.
     Any unselected scripts that are part of the upgrade session are marked with an X against a black
     background. The flyout message Not Run is displayed when the mouse pointer hovers over the X.
     To summarize, scripts that are included in an upgrade session can have a status of
     •   success
     1. In the Upgrade Manager, select an application Id (database) from the database drop-down list.
     2. Click Home > Show Applied Updates in the ribbon toolbar.
        The scripts that have been executed against the database or that have been designated Never
        Run are listed in the left-hand panel, as shown in this example:
                                                                                                      27
        Any upgrade or other action does not affect the scripts that have already been applied to the
        database.
     3. Deselect Show Applied Updates to return to the list of available upgrade scripts.
Never Run
           Note: Be careful which script or scripts you designate as Never Run because they are removed
           from the list of available upgrade scripts for the application ID.
     1. In the list of scripts to upgrade, select the script you do not want to execute against the application
        ID.
     2. In the ribbon toolbar, choose Home > Never Run.
        The script designated Never Run is removed from the list of scripts to upgrade for the specific
        application ID and database. When you select Home > Show Applied Updates, the Never Run
        script is displayed at the bottom of the list of scripts that have been applied to the database.
     3. For future reference, note the script or scripts that you have designated as Never Run.
     4. If in a later upgrade session you decide to run the upgrade script, do the following:
        a) Choose Home > Show Applied Updates, and scroll to the upgrade script you designated as
             Never Run.
        b) Select the script, and click Home > Upgrade.
        The script is executed against the database. In the status list on the right-hand panel, scroll to the
        bottom of the list to verify that the script upgrade was successful.
     Some script upgrades can fail because of errors similar to the following:
     • Column names in each table must be unique. Column name 'CHAR11' in table 'ITEM_EVENT_EXT'
       is specified more than once.
     • Column names in each table must be unique. Column name 'VAL61' in table 'ITEM_EVENT_EXT'
       is specified more than once.
     If the types of errors listed above appear during the upgrade process, it means that the columns already
     exist in the specified table.You can contact the Schlumberger deployment team to address any issues.
     Initialize the existing database with the latest definitions from the type system
     This task shows how to initialize your existing database with the latest definitions from the type system.
                                                                                                            29
     2. Log into your application ID.
     3. Access the Database Initializer screen (Database Tools > Database Initializer).
     4. Verify that the layers you want to initialize are marked for import.
     After initializing your database with the latest type definitions, you should
     • remove references to deprecated features
     • generate replication triggers if you haven't done so
     Remove references to deprecated features
     Upgrade users must delete certain configuration files and remove tags that point to deprecated features.
     Effective Avocet 2017.1 onwards, the Avocet UA Server and Visualization Designer have been
     deprecated. Consequently, as an upgrade user, you should remove configuration files and settings
     that point to these features.
     5. Open your vmConfig_ProjectLayer.xml file, remove the following entries, and save the file:
        • node type definition for TreeNode.Visualization
        • corresponding screen configuration ID
          Slb.Avocet.OPCUA.Client.Screens.VisualizationWellOverview
1. Open the Avocet Configuration Tools utility (ConfigTools.exe), and in the Navigation Tree, access
   Replication > Trigger Manager to open the Trigger Manager screen.
2. Check whether the Home > Replication Triggers > Create Publisher Database option is enabled.
   If it is greyed out, go to step 3. Otherwise, click Create Publisher Database.
   The publisher database is created.
3. Click Create Replication Triggers to generate the SQL Server replication triggers, as shown in
   this screen excerpt:
                                                                                                       31
Microsoft ClickOnce
     Avocet is a Microsoft Windows Presentation Foundation & Windows Forms application, which you can
     publish using ClickOnce technology.
     ClickOnce is a deployment technology that allows you to create a self-updating Avocet deployment
     that can be installed and run with minimal user interaction.
     You can publish a ClickOnce application in two different ways: from a web page or from a network file
     share. A ClickOnce application can be installed on an end-user's computer and be run locally even
     when the computer is offline, or it can be run in an online-only mode without permanently installing
     anything on the end user's computer.
     An Avocet ClickOnce deployment is self-updating. It can check for newer versions as they become
     available and automatically replace any updated files. The deployment can specify the update behavior.
     A network administrator can also control update strategies, for example, marking an update as
     mandatory. Updates can also be rolled back to a previous version by the end user or by an administrator.
     An Avocet ClickOnce deployment is inherently isolated; therefore, installing or running an Avocet
     ClickOnce deployment cannot break existing applications. Avocet is completely self-contained; each
     application is installed to and run from a secure per-user, per-application cache.
     The ClickOnce deployment package consists of files that support the deployment of a current Avocet
     implementation from a shared folder on a server system to multiple client workstations.
     1   Using the Avocet Installer utility, install the ClickOnce deployment package, including the AvocetVM content, in a test
         folder on a server system.
     2   To publish the ClickOnce content from a production environment, create a shared folder either through a network file
         share or through an IIS web server with an application folder. Client workstations can access the Avocet content from
         the shared folder.
     3   Copy the contents of the ClickOnce deployment folder from the test folder to the shared folder in the production
         environment.
     4   Maintain product and configuration updates in the ClickOnce deployment. Launch the Installer to update the ClickOnce
         content in the test folder, and copy the updated content to the shared folder in the production environment.
     1. Copy the AvocetVM folder of the Avocet installation package and paste it to the Avocet subfolder
        of your Installer directory, as indicated in the following screenshot:
                                                                                                     33
     You will need to have the URL by which the client workstation connects with the ClickOnce deployment
     server.
Note: If you are updating the project file after the initial ClickOnce installation, go to step 8.
              Note: Specify the http protocol for the ComponentsUrl tag. Do not enter https here. At the
              file share site or IIS web server, you can add the https binding.
     1. On your Windows system, access the Start > Administrative Tools > Computer Management
        > System Tools node, and double-click the Shared Folders entry.
     2. Right-click the Shares folder to display the fly-out menu, and select New Share… .
4. Specify the permissions on the Shared Folder Permissions pane, and click Finish.
   The shared folder is created.
5. Right click the newly created share, and choose Properties from the flyout menu.
   The Properties tab is displayed.
6. Access the Share Permissions and Security tabs to verify or update permissions, and click OK
   when done.
7. Verify your Windows Firewall settings to ensure that they enable the correct levels of access.
8. Copy the contents of the Publish_x nn folder to the specified network share.
   Depending on network and security settings, your file share link will be similar to
   \\serverName\DisplayName. Remote clients can access the Avocet content to deploy and update
   it on their systems.
1. Create the folder to be shared on the appropriate drive. Note its physical path.
2. Go to Start > All Programs > Accessories, and right-click Command Prompt to display the fly-out
   menu.
3. Click Run as Administrator to display the Command Prompt window.
4. At the prompt, enter
   net share <sharename=drive:path>
   where sharename is the network name of the shared folder and drive:path is the absolute physical
   path of the shared folder: for example, ClickOnce=C:\AvocetDeployment\ClickOnce\Publish_xNN.
Note: You can type net share ? to display help for the net share syntax.
5. Copy the contents of the Publish_x nn folder to the specified network share.
   Depending on network and security settings, your file share link will be similar to
   \\serverName\DisplayName. Remote clients can access the Avocet content to deploy and update
   it on their systems.
                                                                                                        35
           Note: For the ClickOnce web server application, you will need to edit the IIS > Request Filtering
           rules to ensure all filtering options are enabled.
           Note: Do NOT delete or manually modify the web.config file outside the IIS environment.
           Otherwise, you have to recreate your settings and customizations within IIS.
     1. Launch IIS, and in the connection tree, right-click on the Sites > Default Web Site node of your
        server to display the flyout menu.
     2. Choose Add Application... .
        The Add Application dialog is displayed.
     3. In the Add Application dialog, complete the following fields:
Alias Enter the display name of the deployment: for example, ClickOnce.
   Application pool     To select an application pool other than the default value, click the Select… button to choose
                        from the Application Pool drop-down list.
   Physical path        Specify the physical path to include the Publish_x nn subfolder: for example,
                        C:\rootDirectory\Publish_x nn.
The content view of the ClickOnce application will look similar to the following:
                                                                                                                         37
     5. Enable Windows authentication (IIS > Authentication) and directory browsing (IIS > Directory
        Browsing).
     6. Double-click IIS > Request Filtering to display the Request Fitlering pane.
     7. Under the Actions column, choose Edit Feature Settings... .
        The Edit Request Filtering Settings dialog is displayed.
     8. Under the General heading, verify that all filtering options are selected, as in the following screenshot:
9. Click OK.
     1. Choose IIS > Default Document to display the Default Document panel, and choose Add… from
        the Actions column to add avocet.htm as the default launch document.
                                                                                                              39
Set the security bindings
      For your ClickOnce web server application, you can enable the HTTPS binding.
     The ComponentsUrl tag in the COgenV4_x NN.proj project file must be specified with the http protocol.
     1. In the IIS connection tree, select the Default Web Site node.
     2. Under the Actions column, select Edit Site > Bindings... to open the Site Bindings dialog.
     3. Choose Add... to open the Edit Site Binding dialog, and complete the following:
        a) Choose https in the Type drop-down list.
        b) Leave the IP address as All Unassigned.
        c) Specify a port number. You can use the default 443 if it is not is use.
        d) Choose the machine certificate as the SSL certificate selection.
        e) Click OK to return to the Site Bindings dialog.
        f) Click Close.
     4. In the connection tree, choose your ClickOnce application folder, and then select IIS > SSL
        Settings.
     5. In the SSL Settings pane, make sure that the Require SSL check box is deselected.
     6. Under the Actions column, choose Manage Application > Advanced Settings... to open the
        Advanced Settings dialog.
     7. Next to Enabled Protocols, enter http, and click OK.
     Client workstations can access the ClickOnce deployment site using either http or https protocol. If
     using https protocol, then in the URL string the client must specify the server name as listed in the
     machine certificate.
     Install the ClickOnce deployment on client workstations
     In the production environment of a ClickOnce deployment, client workstations connect to an Avocet
     production database through a network share or web server application folder.
     The Avocet.htm launch document gives clients the option to install the Avocet runtime prerequisites.
                                                                                                   41
     2. If this is a first-time installation on the workstation, select the 32-bit or 64-bit installation prerequisite
        option, and follow the prompts.
               Note: The Install Prerequisites (64-bit) option installs all components, including the 32-bit
               runtime files.
               During the installation of the runtime libraries, you may be asked to close certain Microsoft
               applications. Otherwise a reboot is required. To avoid a reboot, close any open Microsoft
               Word, Visual Basic, or Internet Explorer instances.
        a) Execute the Run command to start the Avocet Setup for the selected option.
        b) For each prerequisite, accept the license agreement, and click Install and follow any prompts.
     3. Click the
     1. From the Start menu choose the Avocet entry, or from the Desktop choose the Avocet icon.
        The application will launch and display the Login dialog.
     2. Enter the login credentials and choose other options as required.
1. From the Start menu, select Control Panel > Add/Remove Programs.
2. Right-click Avocet from the list of installed programs, and choose Uninstall.
   A prompt dialog is displayed.
3. Select Remove the application from this computer.
4. Click OK to continue uninstalling the program.
   By repeating the ClickOnce for AvocetClient installation option, you are creating an updated
   Publish_xNN folder. Moving the existing Publish_xNN folder ensures that any outdated files are
   removed.
2. Copy the updated content and any custom configuration files to their appropriate locations in the
   Avocet folder under the Installer directory, as suggested by this screenshot:
                                                                                                     43
     5. Under Deployment location, click Browse to locate the deployment folder where your ClickOnce
         files reside.
     6. Select the check boxes to accept the terms and conditions and the safety acknowledgment.
     7. Click Install.
         The Windows PowerShell window is launched, and updated Publish_xNN subfolders are created
         in the deployment folder.
     8. Compare the new Publish_xNN subfolders against the previous ones to note any changes.
     9. Review the updated content and custom configuration files under the AvocetVM subfolder to ensure
         that no errors exist.
     10. After checking for errors, point the network file share or IIS web server application in the production
         environment to the updated Avocet ClickOnce deployment package.
        The latest updates are available to the ClickOnce clients for download.
                Note: ClickOnce clients should also back up custom configuration files before downloading
                the latest content.
     Client unable to install Avocet from IIS web server application If the Application Install dialog does not launch, then check
     folder                                                          your web browser's security settings.
     Client unable to install Avocet from network share             Browse to the sharedFolder \Publish_xnn\AvocetVM folder,
                                                                    and click the AvocetVM.application manifest file.
Click Install.
     Client unable to install prerequisites                         Verify that the COgenV4_xNN.proj file's ComponentsUrl
                                                                    and ComponentsLocation attributes are updated.
    1. To install the application server to the target directory specified under Deployment location, do the
       following:
       a) Select AppServer
       b) Verify the deployment location.
       c) Select the Terms & Conditions and safety acknowledgement check boxes.
       d) Click Install.
           A prompt is displayed, asking for the port and path to the Schlumberger License server.
    2. Specify the port number, host, and file path to the Schlumberger License server.
       The default port number is 27000.
       Windows Powershell is displayed. You are prompted to install any prerequisites.
    3. At the Avocet AppServer Setup prompt, click Yes to attach your domain computer certificate to the
       IIS https binding.
       If you have third-party or custom certificates, click No. You must manually configure the IIS https
       binding with the certificate.
    4. Exit Windows Powershell by typing Exit at the directory prompt.
    If you have not already done so, define an LDAP user with pass-through authentication.
    You must edit the DeploymentFolder\AppServer\Web.config file.
    Refer to the Application servers and process groups Help topic for configuration information.
    1. To deploy the Petrel Studio Plug-in 2015 to the target directory specified under Deployment location,
       do the following:
       a) Under Extended options, select Petrel Studio Plug-in 2015.
       b) Verify the deployment location.
       c) Select the Terms & Conditions and safety acknowledgement check boxes.
                                                                                                         45
        d) Click Install.
        Windows Powershell is displayed. You are prompted to install any prerequisites. If the deployment
        is successful, you receive a message saying that the setup is finished and specifying the location
        of the log file. You are returned to the directory path of the Installer folder.
     2. Refer to the Help topic Avocet Integration: Studio to complete the installation and configuration.
           Note: You can install both OFM Plug-in 2014.1, 2016.1, or 2016.2 on the same system running
           Avocet 2017.2.Your configuration must also have the compatible OFM versions (2014.n, 2016.1,
           2016.2) installed on the same or different systems. As a best practice, both OFM integrations
           should connect with the identical Avocet database.
Refer to the Help topic Avocet Integration: Oilfield Manager Projects for a complete list of prerequisites.
     1. To deploy the OFM Plug-in 2014.1, OFM Plug-in 2016.1, or OFM Plug-in 2016.2 to the target
        directory specified under Deployment location, do the following:
        a) Under Extended options, select OFM Plug-in 2014.1, OFM Plug-in 2016.1, and/or OFM Plug-in
            2016.2.
        b) Verify the deployment location.
        c) Select the Terms & Conditions and safety acknowledgement check boxes.
        d) Click Install.
        Windows Powershell is displayed. You are prompted to install any prerequisites. If the deployment
        is successful, you receive a message saying that the setup is finished and specifying the location
        of the log file. You are returned to the directory path of the Installer folder.
     2. Refer to the Help topic Avocet Integration: Oilfield Manager Projects to complete the installation
        and configuration.
                                                                                                      47
        If there are no patches installed on your system, follow the steps as mentioned below:
     4. On your system taskbar, click Search Windows.
     5. Type gpedit.msc in the box and press Enter.
        The Group Policy Editorwindow is displayed.
     6. Go to Computer Configuration then Administrative Templates and then click System.
     7. On the right-hand side pane, double-click Specify settings for optional component installation
        and component repair. By default, it is set to Not Configured.
     8. Select Enabled, click Apply, and then click OK.
Post-installation considerations
     After you install your Avocet components and define your project layer files, you can specify the
     production day for collecting and aggregating data and a timeout interval for the Avocet client.
     You define these parameters in the AppConfig_ProjectLayer .xml file of your implementation.
Note: Because the end time is exclusive, the actual end time is 11:59:59 PM (23:59:59).
    The calculations return the values for the specific day, not for individual hours. Monthly allocation
    calculations use similar inclusive start times and exclusive end times. They start at 12:00 PM (00:00:00)
    of the first day of the month and end at 12:00 PM (00:00:00) of the last day of the month. The
    calculations return the values for the specific month.
    The production day itself extends for 24 hours. When you specify a start time for the production day,
    the system assumes the end time of the production day is 24 hours later. For example, if the production
    day's inclusive start time is 6:00 AM (06:00:00), then the production day's exclusive end time is 6:00
    AM (06:00:00) of the following day.
          Note: The actual start and end times in this example are 6:00 AM (06:00:00) and 5:59 AM
          (05:59:59).
    In allocation processing, the default daily calculations are distinguished from the production day
    calculations. The production day calculation values are aggregated for the specified production day
    period, which excludes part of the current day and extends to the following day.
    In the example outlined above, the production day calculations ignore values collected before 06:00:00
    of the current day, as they belong to the previous production day.
    You enable a production day data collection period by specifying the start time in the AppConfig_
    ProjectLayer .xml.
                                                                                                            49
     1. In your AppConfig_ ProjectLayer .xml file, locate the section containing the application ID of the
        database to which you are connecting.
     2. At an appropriate level in the XML hierarchy, add the <prodDayStart> tag, and specify a numerical
        value between 00:00:00 and 23:59:59.
          <prodDayStart>06:00:00</prodDayStart>
          <firstDayOfWeek>Monday</firstDayOfWeek>
          <fileLoaderConfig>LoaderConfig.xml</fileLoaderConfig>
          <downtimeLevels>3</downtimeLevels>
          <orgUnitLevels>4</orgUnitLevels>
          The system automatically defaults to an exclusive end time that is set 24 hours after the
          <prodDayStart> time.
     3. Save theAppConfig_ ProjectLayer .xml file.
     4. Start or restart the Avocet application to initialize the change.
        The allocation process uses the production day start value to calculate and aggregate data for the
        defined production day.
          Note: See the Release Notes for instructions on linking to the standard Avocet Help that is
          packaged with the installation.
    You can link your custom help files to Avocet screens through the Home > Navigation > Add Context
    Help Link ribbon toolbar option. Your custom help file overrides the existing help link. You can store
    the help files locally, or you can link to external sites, such as Sharepoint. You can modify the
    AppConfig_xxx.xml of an existing database to enable the context help feature. You invoke the help
    content from the Help icon on the screen.
    You should be familiar with the structure of the vmConfig.xml file before linking the help to a screen
    type. Place your help file or help files in the desired location.
    To define links to custom screen-level help files, follow these steps:
    1. To be able to see the Add Context Help Link option, select the Diagnostic node in the Login
       dialog when logging into the Avocet client.
    2. On the screen or screen type that you wish to link the help file, click Home > Navigation > Add
       Context Help Link to open the Custom Dialog Window.
    3. Click the Type drop-down list to display the selection of screen types to which you can assign the
       screen-level help. You can assign the help to a specific screen or to a group of related screens.
        Node                 Assigns the help file to a specific tree node. Note that a custom deployment with different tree
                             node IDs would break any assigned help links.
        Screen               Assigns the help file to designated <screen> node for the currently displayed screen. This help
                             might be available to multiple screens defined under the <screen> node.
        Screen_Config        Assigns the help file to a <screenConfig> node that references the <screen> node of the currently
                             displayed screen.This assignment is more specific than the <screen> node assignment.Typically
                             you would use this assignment for a specific Item Editor screen type because Item Editor screens
                             reference the same <screen> node
        Class                Assigns the help file to the class name to which the currently displayed screen belongs. If
                             assigned to the class, the screen-level help will work in all configurations as long as the class
                             is not reused for multiple screen types: for example, Item Editor, Data Entry, Transaction, and
                             so forth
                                                                                                                             51
     4. Accept the corresponding ID value in the ID field.
        It is tied to the screen type selection.
     5. In the Link field, specify the location of the help file.
        It can a relative path on your local system—for example, ..\\AvocetVM\Help. It can be an internal
        URL, such as to a company’s Sharepoint site. Or, if your security permits, it can be an external
        link.
     6. Click OK.
     7. Restart the Avocet client to initialize the change.
     8. To display the linked help file, click the Help icon in the upper right-hand corner of the screen.
     1. Open your project layer AppConfig_ProjectLayer.xml file under ..\AvocetVM\Config, and locate the
        application ID definition that contains the database to which you connect.
     2. At the same level as the <database> node, enter the following XML markup, highlighted in yellow
        in the following example: <contextHelp>contextHelp.xml</contextHelp>.
        <application id="ProjectLayerAppID">
         <description>ProjectLayerAppID</description>
         <database>
         <driver>SQLSERVER</driver>
         <sqlsyntax>SQLSERVER</sqlsyntax>
         <connectString>Network Library=DBMSSOCN;Data Source=localhost,
         1433;Initial Catalog=DatabaseName;User ID=sa;Password=MyPassword;
         Application Name=AVM</connectString>
         </database>
         <contextHelp>contextHelp.xml</contextHelp>