Tutorial to create and test automation scripts



Similar documents
Sage Peachtree Installation Instructions

Introduction 1-1 Installing FAS 500 Asset Accounting the First Time 2-1 Installing FAS 500 Asset Accounting: Upgrading from a Prior Version 3-1

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

VMWare Workstation 11 Installation MICROSOFT WINDOWS SERVER 2008 R2 STANDARD ENTERPRISE ED.

Installation Instructions Release Version 15.0 January 30 th, 2011

SOFTWARE INSTALLATION INSTRUCTIONS

Client Program Installation Guide

Acronis Backup & Recovery 11

Installation Instruction STATISTICA Enterprise Small Business

COMBOGARDPRO. 39E Electronic Combination Lock SOFTWARE INSTALLATION INSTRUCTIONS

ECT362 Installing Linux Virtual Machine in KL322

Using. Microsoft Virtual PC. Page 1

MSOW. MSO for the Web MSONet Workstation Configuration Guide

Magaya Software Installation Guide

Keystone 600N5 SERVER and STAND-ALONE INSTALLATION INSTRUCTIONS

WA2192 Introduction to Big Data and NoSQL. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

FAS Asset Accounting FAS CIP Accounting FAS Asset Inventory SQL Server Installation & Administration Guide Version

Land Information New Zealand (LINZ) SALT Database. Migration from original hardware to virtualised hardware: Process Documentation

SOS Suite Installation Guide

Team Foundation Server 2013 Installation Guide

VERITAS Backup Exec 9.1 for Windows Servers Quick Installation Guide

Universal Management Service 2015

Important. Please read this User s Manual carefully to familiarize yourself with safe and effective usage.

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

Pearl Echo Installation Checklist

MLM1000 Multi-Layer Monitoring Software

Symantec Backup Exec 12.5 for Windows Servers. Quick Installation Guide

Team Foundation Server 2012 Installation Guide

STATISTICA VERSION 11 CONCURRENT NETWORK LICENSE WITH BORROWING INSTALLATION INSTRUCTIONS

Installation Instruction STATISTICA. Concurrent Network License with Borrowing Domain Based Registration

4cast Client Specification and Installation

Preparing Your Network for an MDsuite Installation

Server Application. ACTi NVR v2.2. Quick Installation Guide

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

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

All Windows Installations Guide Contents

Table of Contents. CHAPTER 1 About This Guide CHAPTER 2 Introduction CHAPTER 3 Database Backup and Restoration... 15

Core Protection for Virtual Machines 1

Upgrading from MSDE to SQL Server 2005 Express Edition with Advanced Services SP2

Guide to Installing BBL Crystal MIND on Windows 7

Topaz Installation Sheet

Symantec Backup Exec TM 11d for Windows Servers. Quick Installation Guide

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

ScanWin Installation and Windows 7-64 bit operating system

VERITAS Backup Exec TM 10.0 for Windows Servers

NOTE: You may want to choose the Word Wrap option from Notepad Edit menu to make this text more readable.

Remote Desktop access via Faculty Terminal Server Using Internet Explorer (versions 5.x-7.x)

Installation Instruction STATISTICA Enterprise Server

WA1826 Designing Cloud Computing Solutions. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

Backup & Disaster Recovery Appliance User Guide

BillQuick Assistant 2008 Start-Up Guide

Setup Cisco Call Manager on VMware

Virtualization Technology (or how my Windows computer gave birth to a bunch of Linux computers)

DVD MAKER USB2.0 Installation Manual

System Manager Software Installation Notes

Quick Start Guide 0514US

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

Fiery E100 Color Server. Welcome

The Tor VM Project. Installing the Build Environment & Building Tor VM. Copyright The Tor Project, Inc. Authors: Martin Peck and Kyle Williams

Installation / Migration Guide for Windows 2000/2003 Servers

Installation and Deployment

About This Manual. 2 About This Manual

SSH Secure Client (Telnet & SFTP) Installing & Using SSH Secure Shell for Windows Operation Systems

Snow Inventory. Installing and Evaluating

Installation Guide Sybase ETL Small Business Edition 4.2 for Windows

Instructions for accessing the new TU wireless Network

A+ Guide to Software: Managing, Maintaining, and Troubleshooting, 5e. Chapter 3 Installing Windows

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

LOCKSS on LINUX. Installation Manual and the OpenBSD Transition 02/17/2011

Training module 2 Installing VMware View

EZblue BusinessServer The All - In - One Server For Your Home And Business

CYCLOPE let s talk productivity

Installing FileMaker Pro 11 in Windows

Non-ThinManager Components

Introduction and Overview

Oracle Change Management Pack Installation

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

Compiere 3.2 Installation Instructions Windows System - Oracle Database

Mirtrak 6 Powered by Cyclope

RFMS, INC. Reference Library Documentation. Version 10 Conversion Manual. Microsoft SQL

EntraPass WebStation. Installation Manual DN

File Management Utility. T u t o r i a l

LOCKSS on LINUX. CentOS6 Installation Manual 08/22/2013

FrontDesk Installation And Configuration

Scan to PC Desktop Professional 10 Install Instructions

Preparing Your Server for an MDsuite Installation

TECHNICAL NOTE. The following information is provided as a service to our users, customers, and distributors.

Dial-up Installation for CWOPA Users (Windows Operating System)

Installation and Configuration of VPN Software

ilaw Installation Procedure

Poliscript Installation Guide

GUARD1 PLUS SE Administrator's Manual

Using Remote Desktop to access your Office Computer or Faculty Remote Desktop Server August, 2005 This document consists of two main parts and an

Copyrights, Legal Notices, Trademarks and Servicemarks

Microsoft SQL Server Installation Guide

Bosch ReadykeyPRO Unlimited Installation Guide, product version 6.5. This guide is item number DOC , revision 2.029, May 2012.

ShareFile On-Demand Sync can be installed via EXE or MSI. Both installation types can be downloaded from

EZblue BusinessServer The All - In - One Server For Your Home And Business

Installing Novell Client Software (Windows 95/98)

Transcription:

1. Introduction: Tutorial to create and test automation scripts One of the challenges in using the Emulation technique as a Digital Preservation strategy is that the future user will not have the ample knowledge to run the obsolete technology. Hence we create automation scripts that can automate the entire process of installing the software on an operating system without any intervention from the user. This document serves as a complete tutorial to write these scripts and test them. 2. The Setup: VMware: Install VMware Workstation/Server on a Windows/Linux Machine with a Windows- XP Virtual Machine. Windows XP has a fantastic compatibility feature and can be successful in installing many obsolete software. You can download VMware Server for free from VMware Server Download. To download VMware Workstation, you will need a registration key. Please contact Rob Henderson robh@indiana.edu to get the key and download it from VMware Workstation Download. The Windows- XP Virtual Machine can be found at //l/ks/vmware/images.nobackup/windows- XP- Bare- Image on spitz or troy. Use WinSCP or other ssh tools to logon to spitz or troy and copy the image to your local machine. Beware that this is a 10GB image and may take long time to copy, especially if used a wireless network. The steps to create a new virtual machine (VM) on a VMware Server and VMware Workstation can be found at VMware Server setup and VMware Workstation setup respectively. The machines 5ky2wh1, spitz, tendulkar and 5ld1wh1 in LH328 have VMware setup on them. Please remember to add multiple CD drives to the virtual machine to deal with multiple disc set images. ============================================================================== VIRTUAL MACHINE DETAILS ============================================================================== - SERVICE PROVIDER: VMware Server Console - VIRTUAL MACHINE: Windows XP Professional - USERNAME: iucs - PASSWORD: vmware - LOCATION ON MY COMPUTER: C:\Virtual Machines\Windows XP Pro\Windows XP Professional.vmx - LOCATION OF VM DESKTOP: C:\Documents and Settings\iucs\Desktop - > IMPORTANT: Auto Log- in is to be enabled - See: http://www.microsoft.com/windowsxp/using/setup/learnmore/tips/knox2.mspx

- > IMPORTANT: Make sure to read the snapshot details. - > NOTE: Few of these requirements are more suitable to Emulation Assistant but can be helpful in creating automaton scripts. ============================================================================== ISO image: ISO image is an archive file for an optical disc. The CD- ROMs that contain the software or digital objects are converted to the ISO image using appropriate tools and these.iso files are mounted on the VMware virtual machine. MagicISO is software that can convert small discs to ISO image. It can be downloaded at MagicISO install. While operating from the virtual machine, these ISO images just behave similar to the CD- ROMs. More details on the ISO image can be found here. The digital objects that we experiment on are converted in bulk with help of a program and are assigned a 14- digit Bar Code. The ISOs are stored in appropriate folders under //nfs/troy/raid on spitz or troy. Access them using WinSCP or Putty. AutoIt: Once VMware is ready with Windows XP virtual machine running on it, then install AutoIt from here on the virtual machine. AutoIt v3 is a freeware BASIC- like scripting language designed for automating the Windows GUI and general scripting. This link is a complete reference to AuotIt scripting. Snapshot: Install the international language pack on the virtual machine. To do this you will a Windows XP Professional disc, please contact any Windows staff seated in Lindley Hall. Because there are many CDROM images that require international language like Chinese, Japanese etc for the set- up. To install an international language pack: a) Go to Startà Control Panel à Regional and Language options à Languages à Check Install files for East Asian Languages and click OK b) It then prompts to insert the Windows XP Professional disk. Insert the follow the instructions. c) Reboot the machine after you have finished installation. Install Adobe Reader X on the virtual machine. Many CDROM installations need Adobe Reader to open the files. And Adobe Reader X takes long installation time. Hence it is a good idea to have Adobe Reader installed on the virtual machine. The VMware Server has internet adapter settings that enable the web browser usage. Autoit, Adobe can be downloaded on the virtual machine from the respective websites. In case you have difficulty using the browser, convert the executables into iso images and mount them on the virtual machine and then install. Take a snapshot of the virtual machine at this point as shown in Fig 1.

Fig 1: Snapshot details CRUCIAL NOTE: Always take the snapshot when the virtual machine is in powered off state. If the machine is powered on, power it off and then take the snapshot. This creates a baseline that has all the tools needed to create automation scripts. The snapshot feature helps to revert the changes back to the original snapshot in case anything goes wrong, so that we do not lose our initial setup. To revert the snapshot, click on the option Revert the Snapshot provided below the Take Snapshot option. The baseline snapshot can be modified anytime in future to include other software/tools just by taking a new snapshot. But it is important that we do not load our baseline with too many tools or software. Only add the tools those are mandatory and will enhance the emulation process. 3. Storage: The ISOs along with their final install scripts and additional software are store on the AFS system at the path //afs/.iu.edu/public/sudoc/volumes accessed through spitz or troy. AFS, stands for Andrew File System, is a distributed network file system. More details about the Andrew File

System and its installation are discussed in Emulation Assistant documentation. Fig 2 illustrates the layout of AFS archive. 4. Scripting: Fig 2: Organization of Virtual Archive Before starting to write scripts, it is important that you do some research on the digital object like what additional software (Acrobat Reader, QuickTime, etc) are needed, what system settings need to be changed and so on. The best way to gather this information is to browse through the directories on the CD- ROM image or check the read- me files that are on the CD- ROM image. Use AutoIt to write the scripts. AutoIt has a special feature that can convert its au3 file to an executable (.exe) file that can run the script on any machine that does not have AutoIt installed on it. So once you have the script a running successfully, convert the.au3 file to the executable file. One sample script is given below: Example.au3 Run("D:\SETUP.EXE") WinWait("Setup") ControlClick("Setup", "", "Button1") WinWait("", "successfully installed")

ControlClick("", "successfully installed", "Button1", "", 2) WinWait("CD-ROM Delos") ControlListView("CD-ROM Delos", "", "SysListView321", "Select", ControlListView ("CD-ROM Delos", "", "SysListView321", "FindItem", "Delos")) ControlSend("CD-ROM Delos", "", "SysListView321", "!{ENTER}") WinWait("Delos Properties", "Shortcut") WinClose("CD-ROM Delos") ControlCommand("Delos Properties", "Shortcut", "SysTabControl321", "TabRight") WinWait("Delos Properties", "Compatibility") SendKeepActive("Delos Properties", "Compatibility") Send("{TAB}{SPACE}") ControlClick("Delos Properties", "Compatibility", "Button11") ControlClick("Delos Properties", "Compatibility", "Button10") Run("D:\WIN\DELOS.EXE") Tips: 1. AutoIt uses window titles or other information on the window to automate the installation. And it gets hard when the window names are easy to understand. AutoIt Window Info is a nice feature of AutoIt that can capture the entire window information. 2. Do not ignore autorun ISOs. The autorun.inf may fail under Windows XP. Write script to close all the windows opened by autorun and then run the actual setup file or executable on the ISO. In general, most of the complexity of these scripts comes from handling special cases - for example, setting compatibility mode for older Windows programs. Consider the script above. The basic setup is accomplished within the first 6 lines. The remainder of the script is concerned with setting compatibility mode for the installed executable, and then running that executable. Few special cases are discussed below: 1) Run Windows in East Asian Language settings: a) Find the suitable language. This can be found in a separate documentation that is maintained with the ISO while converting the CD- ROM to its equivalent ISO image. b) Install East Asian Languages to support programs in Chinese, Japanese, Korean and other Asian languages. Other languages like German, French did not need any additional package. c) Go to Startà Control Panel à Regional and Language options à Languages à Check Install files for East Asian Languages and click OK d) It then prompts to insert the Windows XP Professional disk. Insert the follow the instructions. e) Reboot the machine after you have finished installation.

f) After rebooting, go to Regional and Language options à Regional Options and you can select the required language and it will work. 2) Freeing 3MB Virtual Memory: a) Control Panel à System à Advanced à (performance) Settings à Performance Options à Advanced à click Change à check No paging file à click Set à click OK b) Restart the machine. 3) Display settings for 16 bit color quality: a) Go to Control Panel à Display à Settings à Color Quality à select Medium (16 bit) à click Apply à Monitor Settings à Click Yes à click Ok. 4) Compatibility Mode: a) Right Click on the file that you wish to open in compatibility mode and click Properties. b) Go to Compatibility option and check Run this Program in compatibility mode for: and select the right option from the provided list of operating systems. c) Click Apply and then OK. 5) Allocate extended memory(xms) a) Go to C:\Windows\system32, right click on command.com and go to Propertiesà Memory. b) Set Expanded (EMS) memory and Extended (XMS) memory to 16384. c) Go to Misc and uncheck Alt+Space, Alt+Esc and Alt+Enter and Click Ok d) Run the program from command.com prompt. Restarting the virtual machine is a special case too. Many of these complicated scripts that managed the intricate requirements of the software have been found to be very useful and re- used in several installation scripts. So we maintain a catalog of these useful scripts and a separate catalog for external software ISOs that has the installers for software like QuickTime (various versions) or any other obsolete software that is hard to find today. Dealing with Multiple ISOs: The digital objects may be published on multiple CD- ROMs where there are cross- disk dependences. For example, a program on one image might require access to a file on another image. As discussed earlier, VMware supports multiple disc drives, so mount all the disks at one time on the VMware Server/ Workstation. Similar strategy can be applied to install additional software that is not present on the CD- ROM image.

5. Testing: Once the automation scripts (.exe) are ready and paired up with their ISOs and additional software ISOs as shown in Fig 2, then test them using emulation assistant. The details can be found in the document for Emulation Assistant. If the scripts work fine with Emulation Assistant, then they are ready to be moved to afs directory. 6. Documentation: Creating and testing the scripts reveal so much information about the digital objects, primarily to evaluate time- based costs. Hence it is important that we document every minute detail while we work on the CD- ROM image. To facilitate this, fill in the following details and put this readme file along with the ISOs and the script (.exe file). 1) CD Bar Code 2) Title 3) Government or Commercial 4) Language 5) Genre 6) Special Cases 7) Publication Date 8) Operating System 9) Additional Software Required 10) Method followed to install the additional software 11) Time taken to autoit the entire installation 12) Reasons (if more time involved) If any ISO turns out to be bad, in the sense that the software does not run on the Windows XP machine, then document as follows: 1) CD Bar Code 2) Title 3) Issues 4) What can be done? 5) What has been done? 6) Final Status of ISO Good/Bad 7. Bibliography 1) http://svp.soic.indiana.edu/svp/ - database containing governmental digital objects

2) http://downloads.vmware.com/d/details/server202/dcpizcvqdgjkzwrq. - VMware Server Download 3) http://downloads.vmware.com/d/details/wkst_714_win/zgolynr0akbizgh0kg - VMware Workstation Download. 4) http://www.basicconfig.com/create_new_virtual_machine_vmware_server - VMware Server setup 5) http://www.vmware.com/support/ws55/doc/ws_newguest_setup_simple_steps.html - VMware Workstation setup 6) //l/ks/vmware/images.nobackup/windows- XP- Bare- Image path for Virtual Machine on spitz or troy 7) http://www.microsoft.com/windowsxp/using/setup/learnmore/tips/knox2.mspx - Auto- login enable on Windows 8) http://www.magiciso.com/download.htm - MagicISO download 9) http://en.wikipedia.org/wiki/iso_image - Documentation for Magic ISO 10) //nfs/troy/raid path to find ISOs whose installation needs to be scripted 11) http://www.autoitscript.com/site/autoit/downloads/ AutoIt download. 12) http://www.autoitscript.com/autoit3/docs/ - AutoIt complete reference. 13) //afs/.iu.edu/public/sudoc/volumes AFS storage 14) <link for useful au3> 15)<link for useful ISOs> 16) <other links if any>