Bentley Redline

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Bentley Redline Complete Viewing, Redlining, and Printing for DGN and DWG Content.


Preparation[edit]

If you haven't done so yet, create packages for Windows Installer 3.1V2, DirectX and Microsoft .NET Framework 2.0 including the language pack. These packages will be used later on as dependencies.

Download Redline and the Prerequisite Pack from Bentley Select (you'll need to create an account to download).

Extract Bentley Redline.msi from the Redline download and the files DhtmlEd.msi, msxmlger.msi, VBAOF11.msi, VBAOF11I.msi and PrerequisitesGUI.hta from the Prerequisites download.


Prerequisite installation[edit]

Take a look at the file PrerequisitesGUI.hta, that's the actual installation procedure, written in HTML and VBScript. The last 100 Lines will show you what is being installed. After all the prerequisite installers have been run, you'll have to create a registry key under HKLM\SOFTWARE\Bentley\XM_Prerequisite indicating the version that has been installed. Search for a line reading: Dim statusRegVal  : statusRegVal = in the PrerequisitesGUI.hta to find out which version you're dealing with. (in this example: 08090401)

<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="redline_prereq"
         name="RedLine Prerequisites"
         revision="08090401"
         reboot="false"
         priority="0">

   <check type="registry" condition="equals" path="HKLM\SOFTWARE\Bentley\XM_Prerequisite\080904xx\InstalledVersion" value="08090401" />

   <install cmd='msiexec /qn /i %SOFTWARE%\bentley\prereq\msxmlger.msi' />
   <install cmd='msiexec /qn /i %SOFTWARE%\bentley\prereq\VBAOF11.MSI' />
   <install cmd='msiexec /qn /i %SOFTWARE%\bentley\prereq\VBAOF11I.MSI' />
   <install cmd='REG ADD HKLM\SOFTWARE\Bentley\XM_Prerequisite\080904xx /v InstalledVersion /t REG_SZ /d 08090401' />

</package>
</packages>

If you are running Vista as client OS, you'll also have to install the DTHML Editing control:

<install cmd='msiexec /qn /i %SOFTWARE%\bentley\prereq\DhtmlEd.msi' />

The process of installing the prerequisites is described in the document Installing MicroStation V8i silently.


Redline installation[edit]

After setting up the Prerequisite package you can now link everything together in the Redline install package. Here the other packages referred to in the preparation section are included as dependencies.

<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="redline"
         name="RedLine"
         revision="08090451"
         reboot="false"
         priority="0">

   <depends package-id="windows_installer_3" />
   <depends package-id="dotnet20" />
   <depends package-id="dotnet20lp" />
   <depends package-id="Microsoft - DirectX 9" />
   <depends package-id="redline_prereq" />

   <check type="uninstall" condition="exists" path="Bentley Redline XM Edition 08.09.04.51" />
	
   <install cmd='msiexec /qn /i %SOFTWARE%\bentley\redline.msi' />
	
</package>
</packages>

Parameters for the Redline silent install can be found in the Redline Help.