Extracting Setup contents and prerequisites

  Applies To 
  Product(s): WaterGEMS, SewerGEMS, CivilStorm, StormCAD, PondPack, SewerCAD, HAMMER, WaterCAD
  Version(s): CONNECT Edition, V8i
  Area:  Installation
  Original Author: Mark Pachlhofer, Bentley Technical Support Group


In some cases, you may need to extract individual prerequisite files from an OpenFlows product installation file. For example if you have an installation script for deploying the products.


Option 1 - extract from the temp folder during installation

When you first run the installation file, the contents (including the prerequisites) are extracted to the Windows temporary folder, from which they can be retrieved:

1) Open a Windows Explorer window and in the top type in "%Temp%" without the quotation marks. This should bring you to your Windows temporary folder (typically "C:\Users\{user name}\AppData\Local\Temp" )

2) From a separate window launch your OpenFlows product installation file by double clicking on it. Let it proceed to the point where the progress bar is up and moving. At that point look in the other windows explorer window you have open from step 1 and locate the folder that should have juts appeared (press F5 to refresh if not). The folder should appear on top of the list and will typically have random series of letters and numbers (a GUID) as the name. The .MSI and any other prerequisites can be copied from that location.

3) Copy the files and then abort or cancel the setup process

Option 2 - extract from the installation file

The contents of the installation file can also be extracted directly.

For more recent releases, you could use the WiX SDK tool called dark.exe to extract the msi. WiX SDK is free: http://wixtoolset.org/releases/ 

Command line format: Dark.exe WaterGEMS_10.03.05.05_en.exe -x .\OutputFolder

For earlier releases, you can use a program such as 7-Zip or WinRAR to open the installation file and extract the .msi file, C++ Redistributables, and the prerequisites.  Right click on the installation file and choose to open Archive. Or, open WinRAR or 7Zip first and select the installation file from the file open dialog. If unsure of which components you need, there is typically a .INI file that will show the order of installation of the prerequisites.

Option 3 - Download the prerequisites separately

For some versions, you may not be able to extract from the installation file or retrieve the files from the temporary folder. In this case:

1) First run the installation file on a computer and let it stay at the first prompt.

2) Navigate to the Windows Temporary folder. Open a Windows Explorer window and in the top type in "%Temp%" without the quotation marks. This should bring you to your Windows temporary folder (typically "C:\Users\{user name}\AppData\Local\Temp" )

3) Locate and open the text file whose name begins with the product in question and ends in .log. Note that you may see another file that ends in .msi.log - open the one that just has .log. For example "WaterGEMS CONNECT Edition Update 3_20200319170351.log"

4) Scroll down to the line that looks similar to "Detected package: Run.bat, state: Present, cached: None" and note the items below it that begin with "detected package". This outlines the individual prerequisites that the installer is trying to deploy.

5) Close the installation file and download the items separately. The following article contains links to most of the prerequisites as of March, 2020: Install and license OpenFlows CONNECT Edition products without an internet connection