SCCM Package – Casa XPS 2.3.16

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

References:

General Info

Casa XPS doesn’t have an actual installer. It just needs extracted, licensed, and the shortcuts made.

Info on Licensing

This software licenses itself through an HKCU license key. This means that every user needs to install the license separately. Alternatively, this can be done with a login script. If required, email the developer and explain that you’re trying to deploy the software and need the license to work per-computer instead of per-user. He may decide to send you a custom-built executable that is pre-licensed for your company.

Process

  1. Download the latest Casa XPS from the website above.
  2. Extract the zip file to C:\temp\casaxps
  3. Overwrite casaxps.exe in C:\temp\casaxps with the pre-licensed executable from the developer.
  4. Use WinRAR to create a SFX with the following options:
    Path to Extract — choose “create in program files” then enter “CasaXPS”
    Silent mode – hide start dialog
    Update – overwrite existing files
  5. The final SFX should look like the following image and be named CasaXPS-2316.exe.
  6. Create a script named “Make-Shortcuts_CasaXPS.ps1” that creates the Casa XPS 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)\CasaXPS\CasaXPS.exe”
    Shortcut Name: CasaXPS.lnk
  7. Create a batch file named “Install-Casaxps.cmd” with the following contents:
    @ECHO OFF
    ECHO Installing CasaXPS 2.3.16
    ECHO Do not close this window. It will close when the install is finished.
    
    CasaXPS-2316.exe
    powershell -noprofile -command "& {$a = get-executionpolicy;If((get-executionpolicy) -ne 'Unrestricted'){set-executionpolicy unrestricted -force;}; .\Make-Shortcuts_CasaXPS.ps1; set-executionpolicy $a}"
    
    REM Associations
    assoc .vms=CasaXPSDocument
    ftype CasaXPSDocument="C:\Program Files (x86)\casaxps\casaxps.exe" "%%1"
  8. Assemble the files into a single source folder then create a SCCM package and program. The program’s command line action should be “install-casaxps.cmd”. The following is a screen shot of my final source folder.

Have fun! John.

Advertisements

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