AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 21.11.2013, 19:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,617 / 848 (80) +++++++
Регистрация: 28.10.2006
crminthefield: Automate creating a CRM 2013 Redist folder to install CRM 2013 without an internet connection
Источник: http://blogs.msdn.com/b/crminthefiel...onnection.aspx
==============

We’re back for another round of using PowerShell to automatically create a Redist folder, but I’ve recently updated it for CRM 2013 (you can find the 2011 version here and for more information on the 2013 downloads go to our other blog post here which lists each file with the detailed download URL). You’ll notice there’s a couple of new pre-requisites and a couple that are no longer needed. Simply take the script from the bottom of the post and paste it into a PowerShell console on a computer that has internet access, it will prompt you for a location to create a “REDIST” folder, it will also automatically create all the subfolders and download all the pre-requisites for you. Once completed this Redist folder can be dropped into the files extracted from the CRM 2013 Trial download – this step will allow the installation to use locally downloaded pre-requisite installation files instead of downloading them from the internet which can save time and is required for installing the CRM Server bits on servers that do not have direct internet access.

Instructions on how to use PowerShell to build your CRM 2013 Redist Folder:
  1. Open PowerShell on the computer you have internet access on (NOTE: if your CRM Server installation language is different from 0x409 & ENU – make sure to update them in the script , here is a list of hex codes and use the matching language identifier from your CRM installation)
  2. Copy the script below top to bottom (from the “#begin script” to the “#end script”) or optionally download the script as a txt file
  3. Paste it right into PowerShell – if it doesn’t execute hit enter to run the “Create-CRM2013Redist” function
  4. This will pop up a folder picker, use this to choose the location of the Redist folder
  5. After you press Ok, the script will create a new Redist folder in the destination you’ve selected it will then proceed to create the directory structure (14 Folders), then download 30 files, this should total about 350MB of disk space when it’s all done.
  6. Finally, once it has completed, copy the redist folder to the install folder containing: Server, Client, EmailRouter, and BIDSExtensions folders
  7. When you’re done copying your install folder should look like the graphic below including your newly created Redist folder:


Download the PowerShell Script as a .txt file.



Sean McNellis

Follow the conversation:
@seanmcne
@pfedynamics | http://www.pfedynamics.com



PowerShellCreateRedistFolderCRM2013.txt script:

#begin Script
#Function to Show an Open Folder Dialog and return the directory selected by the user.
function Read-FolderBrowserDialog([string]$Message, [string]$InitialDirectory)
{
$app = New-Object -ComObject Shell.Application
$folder = $app.BrowseForFolder(0, $Message, 0, $InitialDirectory)
if ($folder) { return $folder.Self.Path } else { return '' }
}
#download pre-req function, also creates the folders
function dlPreReq($root, $folderName, $fileName, $url)
{
$fldr = Join-Path -Path $root -Child $folderName
$dest = Join-Path -Path $fldr -Child $fileName
#create folder if it doesnt exist
if((Test-Path -Path $fldr) -ne $True)
{
New-Item -Path $fldr -ItemType directory | out-null
}
Write-Host ("Downloading {0} to path: {1} " -f $fileName, $fldr)
$wc = New-Object system.net.webclient
$wc.downloadFile($url,$dest)
}
#download each pre-req
function Create-CRM2013Redist()
{
$linkRoot = "http://go.microsoft.com/fwlink/?LinkId="
$langCode = "ENU"
$LHex = 0x409 #must match above langCode
$folderRoot = (Read-FolderBrowserDialog "Pick the location to create the Dynamics CRM 2013 redist folder") #folder root
if(($folderRoot.length) -gt 0)
{
$fr = Join-Path -Path $folderRoot -Child "Redist"
dlPreReq $fr dotNETFX "dotNetFx40_Full_x86_x64.exe" $linkRoot"182091&clcid="$LHex
dlPreReq $fr dotNETFX "NDP40-KB2600211-x86-x64.exe" $linkRoot"299426&clcid="$LHex
dlPreReq $fr WindowsIdentityFoundation Windows5.2-KB974405-x86.exe $linkRoot"200432&clcid="$LHex
dlPreReq $fr WindowsIdentityFoundation Windows5.2-KB974405-x64.exe $linkRoot"200430&clcid="$LHex
dlPreReq $fr WindowsIdentityFoundation Windows6.0-KB974405-x86.msu $linkRoot"190775&clcid="$LHex
dlPreReq $fr WindowsIdentityFoundation Windows6.0-KB974405-x64.msu $linkRoot"190771&clcid="$LHex
dlPreReq $fr WindowsIdentityFoundation Windows6.1-KB974405-x86.msu $linkRoot"190781&clcid="$LHex
dlPreReq $fr WindowsIdentityFoundation Windows6.1-KB974405-x64.msu $linkRoot"190780&clcid="$LHex
dlPreReq $fr SQLNativeClient sqlncli_x64.msi $linkRoot"178252&clcid="$LHex
dlPreReq $fr SQLSharedManagementObjects SharedManagementObjects_x64.msi $linkRoot"293644&clcid="$LHex
dlPreReq $fr SQLSystemCLRTypes SQLSysClrTypes_x64.msi $linkRoot"293645&clcid="$LHex
dlPreReq $fr ReportViewer ReportViewer.exe $linkRoot"193386&clcid="$LHex
dlPreReq $fr SQLExpr SQLEXPR_x86_$langCode.exe $linkRoot"179623&clcid="$LHex
dlPreReq $fr SQLCE SSCERuntime_x86-$langCode.exe $linkRoot"253117&clcid="$LHex
dlPreReq $fr SQLCE SSCERuntime_x64-$langCode.exe $linkRoot"253118&clcid="$LHex
dlPreReq $fr MSI45 Windows6.0-KB942288-v2-x86.msu $linkRoot"139108&clcid=0x409"
dlPreReq $fr MSI45 Windows6.0-KB942288-v2-x64.msu $linkRoot"139110&clcid=0x409"
dlPreReq $fr VCRedist vcredist_x86.exe $linkRoot"195255&clcid="$LHex
dlPreReq $fr VCRedist vcredist_x64.exe $linkRoot"195257&clcid="$LHex
dlPreReq $fr VCRedist9SP1 vcredist_x86.exe $linkRoot"299417&clcid="$LHex
dlPreReq $fr VCRedist9SP1 vcredist_x64.exe $linkRoot"299585&clcid="$LHex
dlPreReq $fr IDCRL wllogin_32.msi $linkRoot"194721&clcid="$LHex
dlPreReq $fr IDCRL wllogin_64.msi $linkRoot"194722&clcid="$LHex
dlPreReq $fr Msoidcrl msoidcli_32bit.msi $linkRoot"317650&clcid="$LHex
dlPreReq $fr Msoidcrl msoidcli_64bit.msi $linkRoot"317651&clcid="$LHex
}
else
{
write-host "No folder selected, operation was aborted. Run Create-CRM2013Redist to retry."
}
}

#kick off the script
Create-CRM2013Redist

#End Script




Источник: http://blogs.msdn.com/b/crminthefiel...onnection.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 15 Blog bot Dynamics CRM: Blogs 1 10.02.2016 10:26
crminthefield: How to install Microsoft Dynamics CRM 2013 without an Internet Connection Blog bot Dynamics CRM: Blogs 0 21.11.2013 19:11
crminthefield: Use PowerShell: build a redist folder to install Dynamics CRM 2011 without an internet connection Blog bot Dynamics CRM: Blogs 0 15.08.2013 01:16
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 13 Blog bot Dynamics CRM: Blogs 0 27.03.2013 22:12
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 10 Blog bot Dynamics CRM: Blogs 0 17.08.2012 03:27
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра
Комбинированный вид Комбинированный вид

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 14:03.