Mostrando entradas con la etiqueta Mime Type mcml. Mostrar todas las entradas
Mostrando entradas con la etiqueta Mime Type mcml. Mostrar todas las entradas

Publicación Sitio Web Windows Media Center (WMC)

0 comentarios

Windows Media Center esta disponibles en los SO Windows Home Premiun y Ultimate.

Los pasos a Seguir para la publicación de una aplicación Windows Media Center Presentation Layer Web applications en Windows Vista Ultimate son los siguientes:

1. Crear en un nuevo Directorio Virtual en IIS, luego convertirlo a Application. El path debe ser el directorio físico que contiene los archivos mcml.

2. Agregar un nuevo Mime Type ".mcml - text/xml" para el sitio como se muestra en la imagen siguiente.



3. Ir a Menú Inicio - All Programs - Accesories y ejecutar como administrador el Command Prompt.

4. Debemos contar con archivo DivInstall.cmd el que instalará en la GAC la dll del proyecto y registrará la aplicación en WMC. EL codigo del DivInstall.cmd deberá ser algo así como esto:


@ECHO OFF
ECHO.
ECHO.Usage: DevInstall.cmd [/u][/debug]
ECHO.
ECHO.This script requires Administrative privileges to run properly.
ECHO.Start > All Programs > Accessories> Right-Click Command Prompt > Select 'Run As Administrator'
ECHO.

set CompanyName=MyCompany
set AssemblyName=MyMediaCenter
set RegistrationName=Registration
set ProgramImage=img_Application.png

ECHO.Determine whether we are on an 32 or 64 bit machine
if "%PROCESSOR_ARCHITECTURE%"=="x86" if "%PROCESSOR_ARCHITEW6432%"=="" goto x86
set ProgramFilesPath=%ProgramFiles(x86)%
ECHO.

goto unregister

:x86

ECHO.On an x86 machine
set ProgramFilesPath=%ProgramFiles%
ECHO.

:unregister

ECHO.*** Unregistering and deleting assemblies ***
ECHO.

ECHO.Unregister and delete previously installed files (which may fail if nothing is registered)
ECHO.

ECHO.Unregister the application entry points
%windir%\ehome\RegisterMCEApp.exe /allusers "%ProgramFilesPath%\%CompanyName%\%AssemblyName%\%RegistrationName%.xml" /u
ECHO.

ECHO.Remove the DLL from the Global Assembly cache
"%ProgramFilesPath%\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" /u "%AssemblyName%"
ECHO.

ECHO.Delete the folder containing the DLLs and supporting files (silent if successful)
rd /s /q "%ProgramFilesPath%\%CompanyName%\%AssemblyName%"
rd /s /q "%ProgramFilesPath%\%CompanyName%
ECHO.

REM Exit out if the /u uninstall argument is provided, leaving no trace of program files.
if "%1"=="/u" goto exit

:releasetype

if "%1"=="/debug" goto debug
set ReleaseType=Release
ECHO.
goto checkbin

:debug
set ReleaseType=Debug
ECHO.

:checkbin

if exist ".\bin\%ReleaseType%\%AssemblyName%.dll" goto register
ECHO.Cannot find %ReleaseType% binaries.
ECHO.Build solution as %ReleaseType% and run script again.
goto exit

:register

ECHO.*** Copying and registering assemblies ***
ECHO.

ECHO.Create the path for the binaries and supporting files (silent if successful)
md "%ProgramFilesPath%\%CompanyName%\%AssemblyName%"
ECHO.

ECHO.Copy the binaries to program files
copy /y ".\bin\%ReleaseType%\%AssemblyName%.dll" "%ProgramFilesPath%\%CompanyName%\%AssemblyName%\"
ECHO.

ECHO.Copy the registration XML to program files
copy /y ".\%RegistrationName%.xml" "%ProgramFilesPath%\%CompanyName%\%AssemblyName%\"
ECHO.

ECHO.Copy the program image to program files
copy /y ".\Images\%ProgramImage%" "%ProgramFilesPath%\%CompanyName%\%AssemblyName%\"
ECHO.

ECHO.Register the DLL with the global assembly cache
"%ProgramFilesPath%\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" /if "%ProgramFilesPath%\%CompanyName%\%AssemblyName%\%AssemblyName%.dll"
ECHO.

ECHO.Register the application with Windows Media Center
%windir%\ehome\RegisterMCEApp.exe /allusers "%ProgramFilesPath%\%CompanyName%\%AssemblyName%\%RegistrationName%.xml"
ECHO.

:exit


5. En el command Prompt dirigirnos al path que contiene el archivo DivInstall.cmd (aplicando los comandos CD correspondientes para cambiar de directorio) y ejecutar el mencionado archivo escribiendo DivInstall.cmd.