Skip to content

Instantly share code, notes, and snippets.

@chechedotmx

chechedotmx/gist:7852449

Last active Dec 30, 2015
Embed
What would you like to do?
CMD Startup Task Azure to Install Crystal Reports and Fonts
@ECHO off
@REM Variables con las credenciales de Azure
set azurestoragename=xxxxxxxxxxxxxx
set azurestoragekey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
set storagecontainername=xxxxx
@REM Azure Drive
@REM (A veces E:, A veces F:)
set drive=%cd:~0,3%
@REM Download Crystal Runtime 13.0.5
@REM from blob storage account
set filename=CRRuntime_32bit_13_0_5.msi
@REM Verifico si existe el archivo instalador, ya que en un reboot al correrse esta tarea podria bajar nuevamente el archivo
IF NOT EXIST %filename% azurepackagedownloader.exe "%azurestoragename%" "%azurestoragekey%" "%storagecontainername%" "%filename%"
@REM Install Crystal Runtime 13.0.5
msiexec.exe /I CRRuntime_32bit_13_0_5.msi /qn
@REM Download Crystal Runtime 13.0.5 64 bits
@REM from blob storage account
set filename=CRRuntime_64bit_13_0_5.msi
@REM Verifico si existe el archivo instalador, ya que en un reboot al correrse esta tarea podria bajar nuevamente el archivo
IF NOT EXIST %filename% azurepackagedownloader.exe "%azurestoragename%" "%azurestoragekey%" "%storagecontainername%" "%filename%"
@REM Install Crystal Runtime 13.0.5
msiexec.exe /I CRRuntime_64bit_13_0_5.msi /qn
@REM Copiando la dll de la funcion towords en espanol a la default que es en ingles
copy "D:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crtowords_en.dll" "D:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crtowords_xx.dll"
copy "D:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crtowords_es.dll" "D:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crtowords_en.dll"
copy "D:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\crtowords_en.dll" "D:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\crtowords_xx.dll"
copy "D:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\crtowords_es.dll" "D:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\crtowords_en.dll"
@REM Instalando los archivos de fuentes en esta carpeta
cd "%ROLEROOT%\approot\fonts"
fontreg.exe /move
@REM Al terminar emito un archivo para saber que se completo el ciclo
echo Finished ... >> FINISHED.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment