RSS

Tag Archives: SCCM silent installation

Installers and Silent Switches

This post will cover the different types of installers I’ve encountered when making automated installations in SCCM.

Installer Types

The types of installers I’ve encountered.

  1. MSI Installers
    • For setup files that use Windows Installer or Microsoft installer, use the following command-line syntax.
    • msiexec /i file.msi /qb
  2. InstallShield variant 1
    • To silently install using installshield, it is necessary to have a “answer file”. A file named “setup.iss” is configured during the record phase. All changes/additions during this manual installation phase will be recorded in the “setup.iss” file.
    • Use the command below.
      setup.exe /r
    • After running through the installation, a file called “setup.iss” will be made in your “C:\Windows” directory. Place this file in the same directory as your setup.exe.
    • Uninstall the program you just installed. This will ensure a clean install.
    • Remove “/r” and replace with “/s”, like so.
      setup.exe /s
  3. InstallShield Variant 2
    • In some versions of InstallShield different switches are used. Its always worth trying one of these commands:
      setup.exe /s
      setup.exe /silent
      setup.exe /quiet
  4. Copy the installation directory.
    • Some programs are portable enough that you can install them manually, zip the installation directory and move it to another machine
    • Use the command xcopy to copy the installation files.
    • XCOPY syntax:
      • XCOPY source [destination] [options]
      • Examples:
        xcopy putty.exe %systemroot%
        xcopy "\*.*' %systemroot%
Please leave a comment for any questions/problems!
 
2 Comments

Posted by on March 20, 2012 in Uncategorized

 

Tags: , , , , , ,

SCCM Packages – ChemBioOffice

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!

 
3 Comments

Posted by on March 16, 2012 in ChemBioOffice, SCCM

 

Tags: , , , ,

SCCM Packages- Gaussian 09W

I’ve been asked to remove this post by the Operations Manager at Gaussian Inc. If you need a SCCM Package of Gaussian products, please contact Gaussian support for more info.

😦

Thanks,

Win1337ist

 
Leave a comment

Posted by on February 12, 2012 in Uncategorized

 

Tags: , , , ,