SCCM Packages – Pasco DataStudio

I’m honestly not sure exactly what Pasco DataStudio does, but here’s how to package and license it.

Resources

General Info

Pasco Datastudio requires that it be installed manually with the /r switch to record a setup.iss file. The installshield /s switch will then work. The software is licensed via a registry file that can be created by hand.

Process

  1. Copy the Pasco Datastudio install executable to C:\temp\pascods.
  2. Run the following command to begin a recorded manual install:
    ds198r10.exe -r
  3. Once the install is complete, run the following command:
    xcopy /y %systemroot%\setup.iss C:\temp\pascods
  4. Create a reg file with the following contents named “License-PascoDataStudio.reg” in your source directory.
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PASCO scientific\DataStudio\SerialNumber]
    @="YourSerialNumber"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PASCO scientific\DataStudio\LicenseKey]
    @="YourLicenseKey"
  5. Create a batch file with the following contents named “Install-PascoDS.cmd” in your source directory.
    @echo installing Pasco DataStudio
    ds198r10.exe -s
    
    REM Licensing
    regedit.exe /s License-PascoDataStudio.reg
    
    REM Shortcuts
    IF NOT EXIST "%allusersprofile%\Microsoft\Windows\Start Menu\Programs\Chemistry Applications\" MKDIR "%allusersprofile%\Microsoft\Windows\Start Menu\Programs\Chemistry Applications\"
    powershell -noprofile -command "& {$a = get-executionpolicy;If((get-executionpolicy) -ne 'Unrestricted'){set-executionpolicy unrestricted -force;}; .\Make-Shortcuts_PascoDS.ps1; set-executionpolicy $a}"
    rmdir /s /q "%allusersprofile%\Microsoft\Windows\Start Menu\Programs\DataStudio"
    del /q "C:\users\public\desktop\datastudio.lnk"
    del /q "C:\users\public\desktop\xplorer glx simulator.lnk"
    
    REM Cleanup
    del /q "%allusersprofile%\Microsoft\Windows\Start Menu\Programs\Startup\PASPortal.lnk"
  6. Create a script named “Make-Shortcuts_PascoDS.ps1″ that creates the Pasco DataStudio 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)\Pasco scientific\DataStudio\DataStudio.exe"
    Shortcut Name: "Pasco DataStudio.lnk"
  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-pascods.cmd”. The following is a screen shot of my final source folder.

Happy hunting.

Advertisements

One thought on “SCCM Packages – Pasco DataStudio

  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