Sparx Systems Enterprise Architect as an unattended Windows Service on Windows Server 2008R2 and higher VERSION 1.0

Similar documents
This document describes the installation of the Web Server for Bosch Recording Station 8.10.

SPARX SYSTEMS ENTERPRISE ARCHITECT GOES CLOUD USING MICROSOFT AZURE AND MICROSOFT SQL AZURE VERSION 2.1

OBJECTIVE1: Understanding Windows Forms Applications

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

How to Configure a Stress Test Project for Microsoft Office SharePoint Server 2007 using Visual Studio Team Suite 2008.

SQL Server 2008 R2 Express Edition Installation Guide

AdminToys Suite. Installation & Setup Guide

Team Foundation Server 2012 Installation Guide

Team Foundation Server 2013 Installation Guide

Installation Instruction STATISTICA Enterprise Small Business

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

TecLocal 4.0 MultiUser Database

LDAP Server Configuration Example

SAS Installation Instructions Windows 2003, XP, 2000, NT. SAS Client Server Installation. Introduction:

WCFStormHost User Guide

TrueEdit Remote Connection Brief

Nobeltec TZ: Microsoft SQL Server problems

How to Configure Terminal Services for Pro-Watch in Remote Administration Mode (Windows 2000)

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

Health Monitor. Setup and Configuration

White Paper. Network Installation of ScanSoft PDF Create! 2

Ad Hoc Transfer Plug-in for Outlook Installation Guide

Deploying WinLIMS Web v7.2 to a Windows 2008 x64 box. Table of Contents. Deploying WinLIMS Web v7.2 to a Windows 2008 x64 box... 1

Installing Cobra 4.7

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

DCOM Setup. User Manual

Client Installation Guide. Version 6.0 SP1

JAVS Scheduled Publishing. Installation/Configuration... 4 Manual Operation... 6 Automating Scheduled Publishing... 7 Windows XP... 7 Windows 7...

Summary This article contains information about an installation of EdgeSight 5.4 Web Server using SQL 2008 R2 (DB and RS) in a lab environment.

Embarcadero Performance Center 2.7 Installation Guide

Metalogix SharePoint Backup. Advanced Installation Guide. Publication Date: August 24, 2015

Toolbox 3.3 Client-Server Configuration. Quick configuration guide. User manual. For the latest news. and the most up-todate.

How to configure the DBxtra Report Web Service on IIS (Internet Information Server)

Team Foundation Server 2010, Visual Studio Ultimate 2010, Team Build 2010, & Lab Management Beta 2 Installation Guide

Server Configuration and Deployment (part 1) Lotus Foundations Essentials

Both MS Windows 2000 Server and MS System Management Server (SMS) support this type of network installation.

Backing up IMail Server using Altaro Backup FS

How to Install CS OrthoTrac on a New Server and Copy the Data from the Old Server to the New Version 12 and higher

UltraSite32 Network Installation Guidelines

Exchange Server Backup and Restore

Technology Corner. IIS Configuration for Sage ACT! Premium A Review in Pictures

TECHNICAL DOCUMENTATION SPECOPS DEPLOY / APP 4.7 DOCUMENTATION

Linko Software Express Edition Typical Installation Guide

Non-ThinManager Components

For Active Directory Installation Guide

Nagios XI Monitoring Windows Using WMI

STATISTICA VERSION 11 CONCURRENT NETWORK LICENSE WITH BORROWING INSTALLATION INSTRUCTIONS

You may have been given a download link on your trial software . Use this link to download the software.

SETTING UP ACTIVE DIRECTORY (AD) ON WINDOWS 2008 FOR EROOM

5. At the Windows Component panel, select the Internet Information Services (IIS) checkbox, and then hit Next.

Snow Inventory. Installing and Evaluating

Installing and Configuring a. SQL Server 2012 Failover Cluster

Virtual CD v10. Network Management Server Manual. H+H Software GmbH

Insight Video Net. LLC. CMS 2.0. Quick Installation Guide

Rogue Wave HostAccess 7.40J Installation Guide... 1

Helpdesk Support Tool Administrator s Guide

Automating client deployment

A-AUTO 50 for Windows Setup Guide

This document describes the software upgrade of BRS Appliance from v8.9 to v8.10.

Introduction and Overview

Test instructions & HW/SW specifications Contents

Procedure to Install Printer to the LifeWindow 6000 Rev 3.

How to Install and Setup IIS Server

Citrix and Windows Servers

Consolidated Monitoring, Analysis and Automated Remediation For Hybrid IT Infrastructures. Goliath Performance Monitor Installation Guide v11.

Installation Guide for Crossroads Software s Traffic Collision Database

Setting Up the Device and Domain Administration

How to use the VMware Workstation / Player to create an ISaGRAF (Ver. 3.55) development environment?

Installation Guide for Pulse on Windows Server 2012

Contents. Hardware Configuration Uninstalling Shortcuts Black...29

Creating client-server setup with multiple clients

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

Web Deployment on Windows 2012 Server. Updated: August 28, 2013

Last edited on 7/30/07. Copyright Syncfusion., Inc

AzMERIT Secure Browser Installation Manual For Technology Coordinators

Installation Guide for Pulse on Windows Server 2008R2

Sitecore Ecommerce Enterprise Edition Installation Guide Installation guide for administrators and developers

Network Shutdown Module V3 Extension of the User Manual for IBM BladeCenter architecture

Setting Up a Backup Domain Controller

Mapping the ITS File Server Folders to Mosaic Windows

System Administration Training Guide. S100 Installation and Site Management

Network Installation Guide. windows and mac

About This Manual. 2 About This Manual

All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

IN STA LLIN G A VA LA N C HE REMOTE C O N TROL 4. 1

Quick Start Guide for the SupportDesk Web Interface

Configuring.NET based Applications in Internet Information Server to use Virtual Clocks from Time Machine

Installing and Configuring DB2 10, WebSphere Application Server v8 & Maximo Asset Management

All Windows Installations Guide Contents

XF Extracellular Flux Analyzer. Installation and Troubleshooting Guide

BUILDER 3.0 Installation Guide with Microsoft SQL Server 2005 Express Edition January 2008

Direct Storage Access Using NetApp SnapDrive. Installation & Administration Guide

Nipper Studio Beginner s Guide

QUANTIFY INSTALLATION GUIDE

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

Known Issues and Work Around

Secret Server Installation Windows 8 / 8.1 and Windows Server 2012 / R2

HOW TO SETUP AN APACHE WEB SERVER AND INTEGRATE COLDFUSION

Knowledge Base Article: Article 218 Revision 2 How to connect BAI to a Remote SQL Server Database?

Transcription:

VERSION 1.0 Sparx Systems Enterprise Architect as an unattended Windows Service on Windows Server 2008R2 and higher 2012 LieberLieber Software GmbH www.lieberlieber.com

1 INHALT Windows Server 2008R2 and higher... 2 Executive Summary... 2 Preparations... 2 Step by step Assistance... 3 STEP 0: Operating Systems, Paths and Applications... 3 Step 1: Configuration of DCOM/COM+ for EA.App... 4 STEP 2: Create a Windows Service with Visual Studio... 5 Step 2: A Quick and dirty verification... 8 Step 2: Develop a WCF Service to access Enterprise Architect over the Wire... 9 Step 3: Configuring the WCF Service... 9 Step 4: Developing a Test Application... 9 End of Document... 9

2 SPARX SYSTEMS ENTERPRISE ARCHITECT AS AN UNATTENDED WINDOWS SERVICE ON WINDOWS SERVER 2008R2 AND HIGHER Author: Peter Lieber, August 2012 EXECUTIVE SUMMARY This whitepaper describes how to run Enterprise Architect as an unattended Windows Service on. Before that Server Version it was much easier to run any automation interface based application on a Windows Server environment but at the end running such applications that are not designed and developed for servers are not only dangerous for instable usage of that application itself it is even dangerous for the complete server system that may fail because of such constellations. If you know that risk and you can handle the consequences, then go on reading this document and handle with care and document carefully what you have done otherwise hands off. Read this first: http://support.microsoft.com/kb/257757/en-us For Windows Server constellations before Windows Server 2008R2 just do that: http://blog.lieberlieber.com/2009/09/16/running-enterprise-architect-on-a-server/ PREPARATIONS Ok you have reached this line: this document is a visual guideline and the required environment is (all configurations, paths are related to the default installation): Windows Server 2008R2 x32/x64 or higher o Application Server Role installed (needed for DCOM/COM+) o optional: Web Server Role installed Enterprise Architect 8.0 or higher o Installed for all users o with a valid named user license Optional: Visual Studio 2008 Professional or higher you need the capability to develop Windows (NT) Services

3 STEP BY STEP ASSISTANCE STEP 0: OPERATING SYSTEMS, PATHS AND APPLICATIONS Generally the following paths are used: PATH OS DESCRIPTION C:\Windows\System32 X32 Hosts any of the OS related applications for 32 bit C:\Windows\SysWOW64 X64 Hosts any of the OS related applications for 64 bit C:\Windows\Microsoft.NET\ Any Hosts all the.net related Framework stuff and helpers of the.net Framework C:\Windows\Microsoft.NET\Framework\[Version] (here we typically use v2.0.50727) For easier usage create desktop links including administrative permissions to: APPLICATION OS PATH COMMAND LINE Component X32 comexp.exe Services X64 comexp.exe /32 Command Line Any cmd.exe.net Windows (NT) Service Install Util Any There you can find the installutil.exe that we have to use later on DESCRIPTION We need the 32 bit Version of the Component Services, because the COM Interface of EA is 32 bit.net installutil.exe You can use any installutil.exe of any.net framework version Shortcut on desktop for using comexp with administrative rights (Advanced Advanced Properties Run as administrator).

4 STEP 1: CONFIGURATION OF DCOM/COM+ FOR EA.APP Start compexp.exe and open the treeview to DCOM Config. Then search for EA.App and open the properties dialog (right mouse button properties) By default you can access EA already (if you change the identity to interactive user), but you must be logged on (since Windows Server 2008R2) and this is not really what we want for a server environment to achieve an unattended server environment is what we want. In this case we don t have to change anything, because we are going to run EA in a Local System context and this is the highest security level even higher than administrator, but you should know where to configure the access/launching rights.

5 STEP 2: CREATE A WINDOWS SERVICE WITH VISUAL STUDIO Please read very carefully and don t leave a step out. If you don t want to touch Visual Studio we can provide the cmdlaunchservice.exe for any kind of donation just send an email to: sales@lieberlieber.com. DESCRIPTION Launch Visual Studio to create a new windows service File New Project - opens the create new project dialog Choose C# Windows Windows Service to create a windows service Choose the.net Framework (here we take 2.0 because it is the minimum requirement) Enter cmdlaunchservice as name OK SCREENSHOT Then rename Service1.cs to cmdlaunchservice.cs (don t forget the.cs) accept that VS will rename all relations to that name. Right mouse button in the Design Area of the cmdlauncservice.cs (marked with a red cross) Add Installer Now you have a ProjectInstaller.cs Set the property Account of serviceprocessinstaller to LocalSystem (this is the security context of the Service) Set the property ServiceName of serviceinstaller to cmdlauncherservice Open the code file of the cmdlaunchservice.cs (this code will execute on Service s startup using the given security context of the Service) protected override void OnStart(string[] args) { Process cmdtool = new Process(); cmdtool.startinfo.filename = "cmd.exe"; cmdtool.start(); }

6 Build solution by default you will find the exe in the following path: C:\Users\[User]\- Documents\Visual Studio 2008\Projects- \cmdlaunchservice- \cmdlaunchservice- \bin\debug Copy the cmdlaunchservice.exe to the Server (here: c:\temp) Open CMD.EXE (of course with administrative rights) Goto the path using CD c:\temp Run [.NET Framework Path]\Installutil cmdlaunchservice.exe Goto Services Set Properties of cmdlaunchservice to allow the service to be interactive Start cmdlaunchservice Accept the Windows Warning (View the message), that there is an interactive command Now you have a CMD running in Local System security context

7 To get the complete explorer for Local System you just type in the CMD Window: explorer Verify if the explorer runs in Local System context Launch Enterprise Architect and enter the license key of a named user (that license key allows to use EA in that context) Go through the wizards (Interface customization wizard) of EA (whatever you might want as primary configuration is ok) Close EA, CMD Quit the cmdlauncherservice in Services Windows Task Manager shows the security context of EA:

8 STEP 2: A QUICK AND DIRTY VERIFICATION EA is running now in the Local System context. To access EA you need an environment that will also run under Local System one possibility is to develop a classic Windows Service hey we have one: For that story we can reuse our cmdlauncherservice and change the OnStart behaviour to do something with EA. For demonstrating that EA is working just reference the EA.App (either via COM or using EA.tlb Import or provided by Sparx Systems you can also use Interop.EA.dll) and use that sample code: // instance of EA and a repository to get the ProjectGUID EA.App a = new EA.AppClass(); EA.Repository r = a.repository; string ProjectGuid; if (r.openfile("c:\\temp\\eaexample.eap")) { ProjectGuid = r.projectguid; r.closefile(); } // clean up GC.Collect(); GC.WaitForPendingFinalizers(); TextWriter tw = new StreamWriter("c:\\temp\\guids.txt"); // write a line of text to the file, just to have a easy to access info tw.writeline(datetime.now); tw.writeline(projectguid); // close the stream tw.close(); So requisites are to have a c:\temp folder and the eaexample.eap there. You must take care in your code, that EA is not accessed by more than one calling instance at the same time. In this sample it is not relevant but keeps in mind that you have to define/design/develop such a queuing scenario. Then change the load behaviour of your service in the service configuration to automatic. To verify a standalone run enable access to the c:\temp (as file share) from another machine and then reboot the server. After reboot watch the directory c:\temp and voilà the guids.txt will raise.

9 STEP 3: DEVELOP A WCF SERVICE TO ACCESS ENTERPRISE ARCHITECT OVER THE WIRE tbc STEP 4: CONFIGURING THE WCF SERVICE tbc STEP 5: DEVELOPING A WCF CLIENT APPLICATION tbc Welcome Enterprise Architect to run on Windows Server 2008R2 as a windows service END OF DOCUMENT