Installing Perkin Elmer Spectrum with an SCCM Task Sequence

Perkin Elmer Spectrum is an instrument control software that we deploy on several workstations connected to Spectrum 100 iR machines. I’m not a Chemist, and don’t entirely understand what the machines do, but here’s some information on automating the install process.

I could not get a silent installer to work properly, so I chose to use Auto-It. This is somewhat limiting, since you can only deploy through a Task Sequence, and that the deployment is really only reliable during OSD. For us, re-imaging these workstations isn’t a problem though.

Additional Software Information

There are three choices for the security module: no password, windows password, or PE password. The “Windows Password” feature has two important limitations: it does not support domain\username combinations greater than 31 characters in length, and it does not support passwords longer than 15 characters. In our environment, this makes the “Windows Password” feature useless.

The Process

  1. Download and Install AutoIt v3.
  2. Copy the manuals off of the separate manuals CD, and use WinRAR to create a self-extracting SFX. The manuals should extract to C:\PostInstall\Manuals. Save this SFX file in your package source directory.
  3. Copy the instrument’s .cfg file to your package source directory. The install batch file will copy this to C:\PostInstall.
  4. Copy setup.exe from the Installer CD to your package source directory. It should be about 800MB.
  5. Create the following AU3 script file and name it InstallSpectrumSoftware.au3.
    ;Run Setup
    ShellExecute("setup.exe");Welcome Screen
    WinWaitActive("PerkinElmer Spectrum - InstallShield Wizard","WARNING: This program is protected by copyright law")
    ControlClick("PerkinElmer Spectrum - InstallShield Wizard","WARNING: This program is protected by copyright law","Button1")
    
    ;License Agreement
    WinWaitActive("PerkinElmer Spectrum - InstallShield Wizard","I &do not accept the terms in the license agreement")
    ControlClick("PerkinElmer Spectrum - InstallShield Wizard","I &do not accept the terms in the license agreement","Button3")
    ControlClick("PerkinElmer Spectrum - InstallShield Wizard","I &do not accept the terms in the license agreement","Button5")
    
    ;Feature Selection
    WinWaitActive("PerkinElmer Spectrum - InstallShield Wizard","Choose an appropriate installation configuration for Spectrum")
    ControlCommand("PerkinElmer Spectrum - InstallShield Wizard","Choose an appropriate installation configuration for Spectrum","ComboBox1","selectString","Spectrum Series/Raman Series/Microscope")
    ControlClick("PerkinElmer Spectrum - InstallShield Wizard","Choose an appropriate installation configuration for Spectrum","Button2")
    
    ;Ready to Install Screen
    WinWaitActive("PerkinElmer Spectrum - InstallShield Wizard","The wizard is ready to begin installation.")
    ControlClick("PerkinElmer Spectrum - InstallShield Wizard","The wizard is ready to begin installation.","Button1")
    
    ;Perkin Elmer Directories
    WinWaitActive("Specify Directories","Common Sample Table Setups Directory")
    ControlClick("Specify Directories","Common Sample Table Setups Directory","[NAME:NextButton]")
    
    ;;Finish Screen
    WinWaitActive("PerkinElmer Spectrum - InstallShield Wizard","The InstallShield Wizard has successfully installed PerkinElmer Spectrum.")
    ControlClick("PerkinElmer Spectrum - InstallShield Wizard","The InstallShield Wizard has successfully installed PerkinElmer Spectrum.","Button5")
    ControlClick("PerkinElmer Spectrum - InstallShield Wizard","The InstallShield Wizard has successfully installed PerkinElmer Spectrum.","Button1")
    
    ;;Do not restart
    WinWaitActive("PerkinElmer Spectrum Installer Information","You must restart your system for")
    ControlClick("PerkinElmer Spectrum Installer Information","You must restart your system for","Button2")
  6. Compile the script and place it in your package source directory.
  7. Create the following AU3 script and name it ConfigureSpectrumSoftware.au3. This script will disable the Windows Authentication account used for the “Windows Password” security model, then set a new admin password for the spectrum software.
    ;Disable 21cfr account created by spectrum software
    ;This is used by 'windows logon' security, which we're not using.
     Run(@ComSpec & " /c net user 21Cfr /active:no")
    
    ;Run Spectrum Software
     ShellExecute("C:\Program Files (x86)\PerkinElmer\Spectrum\IRWinLab.exe")
    
    ;;Login at Password Screen
    WinWaitActive("PerkinElmer Login")
    ControlSetText("PerkinElmer Login","","[CLASS:Edit; INSTANCE:1]","administrator")
    ControlSetText("PerkinElmer Login","","[CLASS:Edit; INSTANCE:2]","administrator")
    ControlClick("PerkinElmer Login","","Button2")
    
    ;Open Users and Password Control
    WinWaitActive("PerkinElmer Spectrum","TwoDGraphWnd")
    Send("{ALT}+S")
    Send("{RIGHT}")
    Send("{ENTER}")
    
    ;Edit Admin User
    WinWaitActive("Users and Password Control")
    ControlCommand("Users and Password Control","","ComboBox1","selectString","Administrator")
    ControlClick("Users and Password Control","","Button7")
    
    ;Change Admin User Password
    WinWaitActive("Edit User")
    ControlSetText("Edit User","","[CLASS:Edit; INSTANCE:3]","YourNewPassword")
    ControlSetText("Edit User","","[CLASS:Edit; INSTANCE:4]","YourNewPassword")
    ControlClick("Edit User","","Button4")
    
    ;;Close Users and Password Control
    WinWaitActive("Users and Password Control")
    ControlClick("Users and Password Control","","Button3")
    
    ;;Edit PEService User
    ; WinWaitActive("Users and Password Control")
    ; ControlCommand("Users and Password Control","","ComboBox1","selectString","PEService")
    ; ControlClick("Users and Password Control","","Button7")
    
    ;Close Spectrum
    WinWaitActive("PerkinElmer Spectrum","TwoDGraphWnd")
    Send("{ALT}+F")
    Send("X")
    WinWaitActive("Save Options")
    ControlClick("Save Options","","[CLASS:WindowsForms10.Window.8.app.0.2004eee; INSTANCE:8]")
  8. Compile the script and place it in your package source directory.
  9. Create the following batch file to put all the pieces together. Name it “Install-Spectrum.cmd”.
    @ECHO OFF
    ECHO Installing Perkin Elmer Spectrum 10.3.7
    ECHO Do not close this window. It will close when the install is finished.
    REM Main Install
    InstallSpectrumSoftware.exe
    SpectrumManuals.exe
    ConfigureSpectrumSoftware.exe
    IF NOT EXIST C:\PostInstall MKDIR C:\PostInstall
    COPY /Y *.cfg C:\PostInstall

Congrats, enjoy your new mostly-automated install.

Advertisements

One thought on “Installing Perkin Elmer Spectrum with an SCCM Task Sequence

  1. Pingback: Table of Contents | windowsmasher

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s