Monday, September 8, 2014

Silently Deploy CyberLink PowerDVD with SCCM


Edit: Soon after finishing this post we updated to version 14 and I also changed the Active Setup to open PowerDVD when a blu ray disc is put in the blu ray player so i adjusted the script a bit to reflect the changes.

We purchased CyberLink PowerDVD software in order to play Blu-ray’s on our classroom computers that are connected to projectors. This is how I silently deploy it while handling the first run prompts. We will remove the Welcome Screen and turn off the prompt to join the Product Improvement program. Luckily, when you purchase the software from Cyberlink, the MSI has an in-built key so you don’t not have to handle registration.
First create a file called “db.ini” that contains
[Setup]
init=1
Next create a reg file that contains
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\CyberLink\PowerDVD13]
"UIEnableCEIP"=dword:00000000

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection]
@=""

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayBluRayOnArrival]
@="PowerDVD14.0PlayBluRayOnArrival"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayDVDMovieOnArrival]
@="PowerDVD14.0PlayDVDMovieOnArrival"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayEnhancedDVDOnArrival]
@="PowerDVD14.0PlayDVDMovieOnArrival"
I called my reg file “HKCU_POWERDVD.reg”

Then create your “install.cmd” file which contains
REM Installs PowerDVD and removes first run prompts.
:@ECHO OFF
:Location
Set loc=%~dp0
:Install
msiexec /i "%loc%PowerDVD14_3917_CorpBD_DVD140303-05.msi" /qn
:Configure
XCOPY "%loc%db.ini" "%SystemDrive%\Users\Default\AppData\Local\CyberLink\PowerDVD14\DB1038\" /Y
XCOPY "%loc%HKCU_POWERDVD.reg" "%ProgramFiles(x86)%\CyberLink\PowerDVD14\" /Y
REG ADD "HKLM\Software\Microsoft\Active Setup\Installed Components\HSU-PowerDVD" /v "StubPath" /t REG_SZ /d "CMD /C REG IMPORT \"%%ProgramFiles(x86)%%\CyberLink\PowerDVD14\HKCU_POWERDVD.reg\"" /f
REG ADD "HKLM\Software\Microsoft\Active Setup\Installed Components\HSU-PowerDVD" /v "Version" /t REG_SZ /d "2,0,0,0" /f
:CLEANUP
if exist "%PUBLIC%\Desktop\CyberLink PowerDVD 14.lnk" del "%PUBLIC%\Desktop\CyberLink PowerDVD 14.lnk"
GOTO END
:END
Put the 3 files you created along with the MSI in your SCCM Source location
(I know these photos are from our version 13 install, but you get the idea)


Create your Application and Deployment Type like so






The installer is an MSI so the detection method is easy, I love it.



Distribute the content to your Distribution Points and deploy!

2 comments: