SCCM Package – JMOL

I’m making a series of posts describing the package creation process for the applications my current lab image. This post is about JMOL.

References

General Info

JMOL is a java application distributed as a zip file with no actual installer. To run the application, we need to create a shortcut to the JMOL jar file.

Process

  1. Download the latest JMOL from the website above.
  2. Extract the JMOL zip file to C:\temp\jmol.
  3. Use WinRAR to create an SFX file named “Install_JMOL.exe” with the contents of C:\temp\jmol. Use the following parameters:
    Path to Extract — choose “create in program files” then enter “jmol”
    Silent mode – hide start dialog
    Update – overwrite existing files
  4. The final SFX should look like the following image and be named jmol.exe.
  5. Create a script named “Make-Shortcuts_jmol.ps1″ that creates the JMOL shortcuts. For help creating a shortcut script see my previous blog post “Creating Shortcuts for SCCM Packages“.
    Use the following parameters:
    Target Path: “C:\Program Files (x86)\JMOL\jmol.jar”
    Icon Path: “C:\Program Files (x86)\JMOL\jmol.ico”
    Shortcut Name: JMOL.lnk
  6. Create a batch file named “Install-jmol.cmd” with the following contents:
    REM Main Install
    JMOL.exe
    
    REM Shortcuts
    powershell -noprofile -command "& {If((get-executionpolicy) -ne 'Unrestricted'){$a = get-executionpolicy; set-executionpolicy unrestricted -force;}; .\Make-Shortcuts_JMOL.ps1; set-executionpolicy $a}"
  7. Assemble the files into a single source folder then create a SCCM package and program. The program’s command line action should be “install-jmol.cmd”. The following is a screen shot of my final source folder.

Another one down. 🙂

Advertisements

One thought on “SCCM Package – JMOL

  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