******** Batch file contents ********
Rem This batch file removes some of the unnecessary components that are bundled with RealPlayer prior to completing the repackaging event
rem Created 9/20/2006
rem modified by tx_admin 05/25/2011 for Realplayer 14.0
rem the version number is 14.x but it references everything as version 12 in the registry
rem @echo off
rem install realplayer silently and wait for install to finish
robocopy \\network\dfs\install\realplayer %temp% realplayer.exe
rem delay until all files are installed - note that start /wait didn't work from prism because of an install error
if exist "c:\program files\real\realplayer\update\r1puninst.exe" goto complete
rem pause 5 more seconds just to be sure
rem after install, remove extras and updater
rem How to cripple the Music store
del "C:\Program Files\Real\RealPlayer\DataCache\mstore\mstore.ini"
del "C:\Program Files\Real\RealPlayer\DataCache\mstore\mstore.ver"
del "C:\Program Files\Real\RealPlayer\DataCache\mstore\mstorehome.ini"
rem How to cripple the "RollingStone" in Music store
rem del C:\Program Files\Real\RealPlayer\DataCache\RollingStone
rd /s /q "C:\Program Files\Real\RealPlayer\DataCache\RollingStone"
rem Gracefully disable Real Guide, Music & My Library, and Music store buttons (web search too)
rem gracefully disable Real Guide, Music & My Library, Music store, web search too!
rem BUT keep \Prefs (keeps prefs menu in order)
rem and keep \Formats (CD in Prefs menu will blow up without it)
xcopy "C:\Program Files\Real\RealPlayer\DataCache\prefs\." "%TEMP%\DataCache\prefs\" /s /v
xcopy "C:\Program Files\Real\RealPlayer\DataCache\Formats\." "%TEMP%\DataCache\Formats\" /s /v
rd /s /q "C:\Program Files\Real\RealPlayer\DataCache"
xcopy "%TEMP%\DataCache\." "C:\Program Files\Real\RealPlayer\DataCache\" /s /v
rd /s /q %TEMP%\DataCache
Del /q "C:\Program Files\Real\RealPlayer\DataCache\Formats\*.bmp"
rem Disable the call home on first run
rem not in 12.0
rem rd /s /q "C:\Program Files\Real\RealPlayer\Firstrun"
rem Gracefully disable Message Center completely *
rem not in 12.0 del /q "C:\Program Files\Common Files\Real\Update_OB\rnms3270.dll
rem not in 12.0 del /q "C:\Program Files\Common Files\Real\Update_OB\RealOneMessageCenter.exe
rd /s /q "%USERPROFILE%\AppData\Roaming\Real\Msg"
rem Garbage to take out if repackaging
rem rd /s /q "C:\Program Files\Real\RealPlayer\Setup"
rem Not needed, file are created on the fly. No config info here either
rem rd /s /q "C:\Documents and Settings\%USERNAME%\Application Data\Real"
rem rd /s /q "C:\Documents and Settings\%USERNAME%\Cookies"
rem Files -> Delete
del /q "c:\Program Files\Real\RealPlayer\subscription.rnx"
del /q "c:\Program Files\Common Files\Real\Update_OB\r1puninst.exe"
rem Delete just the Desktop shortcut
del /q "C:\Users\Public\Desktop\RealPlayer.lnk"
rem Delete all shortcuts - tx_admin - disabled by me
rem del /q C:\Documents and Settings\Administrator\Start Menu\Programs\Accessories\Entertainment\RealPlayer.lnk
rem del /q C:\Documents and Settings\All Users\Start Menu\Programs\Realplayer.lnk
rem rd /s /q C:\Documents and Settings\All Users\Start Menu\Programs\Real
rem disable RealPlayer taking over all media formats
reg add HKCU\Software\RealNetworks\RealPlayer\12.0\Preferences\UniversalPlayback /t REG_SZ /d 0 /f
rem delete the RealPlayer Update manager from running at startup
reg delete HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v TkBellExe /f
rem del /q "C:\Program Files\Real\RealPlayer\Update\realsched.exe"
rem add a runonce key to delete the tkbell run entry AGAIN
rem Realplayer adds tkbell - realsched back as soon as you run Realplayer, the second deletion gets rid of it perm.
Following on the excellent work done in the Package KB for RealPlayer 10.x, I'm posting here what I did to get a silent install working for RealPlayer 184.108.40.2067
Note that all references in the registry indicate version 12, but if you go into help...about it shows 220.127.116.117.
We use Prism deploy in our environment and I ended up using a batch file to install and make all appropriate settings. The batch file
1) installs silently
2) makes registry settings to disable the music store
3) accepts EULA
4) disables the autoupdate feature
I give full credit for most of this batch file to the work done on the Realplayer 10.x Notes. I just made modifications.
Note that the environment for this was Windows 7 32 bit with Prism deploy.
I ran into a problem where Prism wouldn't run the install properly with network admin credentials. I set it to run as the currently logged on user (which does NOT have local admin rights) and it worked fine. That's the opposite of what would make sense, but I decided to try it because the batch file would run fine interactively, but not from Prism.
Note that we have UAC turned off if that matters. But again users do NOT have local admin rights.
I talked to a Customer Service rep about possible flags, and he said the only available flags are -s (silent) and -p (progress).
The other configuration options (Disabling Desktop Shortcuts, Prevent RealPlayer from claiming MIME types) are only available if you install interactively via the GUI. These should be easy enough to clean up post-install in a batch script though.
IF EXIST "%ALLUSERSPROFILE%\Desktop\RealPlayer.lnk DEL "%ALLUSERSPROFILE%\Desktop\RealPlayer.lnk
IF EXIST "%ALLUSERSPROFILE%\Desktop\Free Movies & Games.lnk DEL "%ALLUSERSPROFILE%\Desktop\Free Movies & Games.lnk