RSS

SCCM Packages – ChemBioOffice

16 Mar

This is a short blog post about silently installing a program that uses Windows Installer or .msi files. The end goal of this post will be to install a program silently or unattended on a target machine. This will allow us to automate the install on new lab machines that we recieve. For this blog we will be installing “ChemBioOffice” as our example program.

Overview

  1. Figure out the silent install mechanism.
  2. Create and test a silent install script.
  3. Figure out the silent license activation mechanism.
  4. Add license configuration to install script and test.

Notes & Sites of reference:

Manual installation

First, I will install the ChemBioOffice program manually to to familiarize myself with the application and its installer.This will also tell us where the application will install to by default.

  1. If you are installing on a Virtual Machine, it is a great idea to make a snapshot before you continue.This will enable us to quickly try the silent install multiple times if needed, without having to uninstall the program each time. Sometimes uninstallers don’t remove everything. This can affect the silent install package and make you think it is working when really, the silent install package created is dependent on something that the previous installer left behind. Better to start with a clean image each test.
  2. Double click the “cbdu1202.exe” and the setup will start. The first menu will ask you to “have your serial number ready”, hit “OK” to continue.
  3. Immediatily after hitting “OK”, setup will start extracting files.
  4. The setup wizard will appear, followed by the “CambridgeSoft Software Activation” screen. Fill this out and click “Activate over internet”.
  5. The message box “Software Activation Complete” will appear, click “OK” to continue.
  6. Next, the  ChemBioOffice install wizard should appear. Click “Next”.
  7. Accept the license agreement and click “Next”.
  8. On the “Setup Type” screen, leave the defaults and click “Next”.
  9. On the “Select Features – CambridgeSoft” screen, uncheck the box next to “E-Notebook 12.0”, then click “Next”.
  10. On the “Select Features -Third Party” screen, uncheck the “MNova NMR Lite” option and click “Next”.
  11. On the “Ready to Install” screen, click “Install”.
  12. The installation will begin and should look similar to the following image.
  13. When finished the “Installation Complete” screen will appear, click “Finish”.
  14. Check which directory the “ChemBioOffice” program installed to.
  15. Open your “ChemBioDraw” application to see if it works. It should look similar to the screen below.

Get Licensing Information

  1. To silently register ChemBioOffice licensing information, CambridgeSoft requires that you email support fora custom registry file. At the end of the silent installation of ChemBioOffice you will import the registry file. Email Cambridge support at “activate@cambridgesoft.com” for your activation file.
  2. Save this file to your “C:\workingtemp\ChemBioOffice” folder and name it “importChemLicense.reg”

Preparing your Source Directory

  1. Make a new folder called “ChemBioMedia” at “C:\workingtemp\ChemBioMedia”.
  2. Extract the “cbdu1202.exe” file, using 7zip to C:\workingtemp\ChemBioMedia.
  3. The ChemBioMedia folder should look like this after you extract the setup file.
  4. The file tree for this folder will look like this, the objects bolded and in Italics are the files that we need.

C:\workingtemp\ChemBioMedia

  • \_images
  • \Cambridgesoft
    • \Activation
    • \ChemOffice
      • CambridgeSoft_ChemBioDraw_Ultra_12.0.msi
      • CambridgeSoft_ChemDraw_ActiveX_Enterprise_Constant_12.0.msi
    • \ENotebook
    • SharedAddIn
      • SharedAddIn.msi
  • \DatatManagement Server Setup
  • \SQLInstaller
  • \ThirdParty
  • install.exe
  • install.ini

  1. Now to make life easy copy the following code into a batch file and run it. This will put all the neccessary installer files into “C:\workingtemp\ChemBioOffice”.
    REM Copy FIles
    mkdir "C:\workingtemp\ChemBioOffice"
    xcopy /y "C:\workingtemp\ChemBioMedia\Cambridgesoft\ChemOffice\CambridgeSoft_ChemBioDraw_Ultra_12.0.msi" "C:\workingtemp\ChemBioOffice\"
    xcopy /y "C:\workingtemp\ChemBioMedia\Cambridgesoft\ChemOffice\CambridgeSoft_ChemDraw_ActiveX_Enterprise_Constant_12.0.msi" "C:\workingtemp\ChemBioOffice\"
    xcopy /y "C:\workingtemp\ChemBioMedia\Cambridgesoft\SharedAddIn\SharedAddIn.msi" "C:\workingtemp\ChemBioOffice\"
  2. Note: For my installation I needed to install only 3 parts of the ChemBioOffice. These 3 parts are; ChemBioDraw Ultra 12.0, ChemDraw ActiveX Enterprise and SharedAddIn. These and the registry file should be the only 4 things in your “C:\workingtemp\ChemBioOffice” folder.
  3. Your folder will look like this.

Creating a Batch File

  1. Navigate to your “C:\workingtemp\ChemBioOffice” folder.
  2. Create a new text document in this folder and name it  “Install_ChemBioOffice.cmd”. The ending “.cmd” will make this a batch file.
  3. Copy and paste the following commands into your batch file.
    REM Installing ChemBioOffice
    REM Main Install
    start /wait msiexec /i CambridgeSoft_ChemBioDraw_Ultra_12.0.msi /qb
    start /wait msiexec /i CambridgeSoft_ChemDraw_ActiveX_Enterprise_Constant_12.0.msi /qb
    start /wait msiexec /i SharedAddIn.msi /qb
    REM Licensing
    REGEDIT /s importChemLicense.reg

At this point your batch file should be ready to test.

Testing the batch file

  1. Navigate to “C:\workingtemp\ChemBioOffice”.
  2. Open a command prompt as “Administrator” and type the following command to change directories.
    cd C:\workingtemp\ChemBioOffice
  3. Now that we are in the correct directory type in the batch file name we are using.
    Install_ChemBioOffice.cmd
  4. Hit Enter and the installation will begin, it will look similar to the following image.
  5. Next, the application should start just as it did after the manual installation we did earlier.

If there are any problems\concerns\questions with this post, please leave a comment!

Advertisements
 
3 Comments

Posted by on March 16, 2012 in ChemBioOffice, SCCM

 

Tags: , , , ,

3 responses to “SCCM Packages – ChemBioOffice

  1. click here

    June 7, 2012 at 5:21 am

    Wanted to drop a remark and let you know your Rss feed isnt working today. I tried adding it to my Google reader account and got absolutely nothing.

     
    • win1337ist

      June 8, 2012 at 8:54 pm

      Thanks for letting me know! Ill get this fixed asap.

       
    • win1337ist

      June 11, 2012 at 4:49 pm

      Should be fixed, let me know if its working for you.

       

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

 
%d bloggers like this: