Guest User

Untitled

a guest
Mar 12th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.08 KB | None | 0 0
  1. #Requires -Version 3
  2. param(
  3. [string]$SiteName = "ConnectSite",
  4. [string]$SiteHostHeaderName = "sxa.storefront.local",
  5. [string]$SqlDbPrefix = $SiteName,
  6. [string]$CommerceSearchProvider = "SOLR"
  7. )
  8.  
  9. $global:DEPLOYMENT_DIRECTORY = Split-Path $MyInvocation.MyCommand.Path
  10. $modulesPath = ( Join-Path -Path $DEPLOYMENT_DIRECTORY -ChildPath "Modules" )
  11. if ($env:PSModulePath -notlike "*$modulesPath*") {
  12. $p = $env:PSModulePath + ";" + $modulesPath
  13. [Environment]::SetEnvironmentVariable("PSModulePath", $p)
  14. }
  15.  
  16.  
  17. $params = @{
  18. Path = Resolve-Path '.ConfigurationCommerceMaster_SingleServer.json'
  19. SiteName = $SiteName
  20. SiteHostHeaderName = $SiteHostHeaderName
  21. InstallDir = "$($Env:SYSTEMDRIVE)inetpubwwwroot$SiteName"
  22. XConnectInstallDir = "$($Env:SYSTEMDRIVE)inetpubwwwroot$($SiteName)_xconnect"
  23. CertificateName = $SiteName
  24. CommerceServicesDbServer = $($Env:COMPUTERNAME)
  25. CommerceServicesDbName = "SitecoreCommerce9_SharedEnvironments"
  26. CommerceServicesGlobalDbName = "SitecoreCommerce9_Global"
  27. SitecoreDbServer = $($Env:COMPUTERNAME)
  28. SitecoreCoreDbName = "$($SqlDbPrefix)_Core"
  29. CommerceSearchProvider = $CommerceSearchProvider
  30. SolrUrl = "https://localhost:8983/solr"
  31. SolrRoot = "D:Sitecoresolr-6.6.2solr-6.6.2"
  32. SolrService = "solr622"
  33. SolrSchemas = ( Join-Path -Path $DEPLOYMENT_DIRECTORY -ChildPath "SolrSchemas" )
  34. SearchIndexPrefix = ""
  35. AzureSearchServiceName = ""
  36. AzureSearchAdminKey = ""
  37. AzureSearchQueryKey = ""
  38. CommerceEngineDacPac = Resolve-Path -Path "C:deployAssetsSitecore.Commerce.Engine.DB.dacpac"
  39. CommerceOpsServicesPort = "5015"
  40. CommerceShopsServicesPort = "5005"
  41. CommerceAuthoringServicesPort = "5000"
  42. CommerceMinionsServicesPort = "5010"
  43. SitecoreCommerceEngineZipPath = Resolve-Path -Path "C:deploySitecore.Commerce.Engine.SDK.2.0.1922"
  44. SitecoreBizFxServicesContentPath = Resolve-Path -Path "C:deploySitecore.BizFX.1.0.572"
  45. SitecoreIdentityServerZipPath = Resolve-Path -Path "C:deploySitecore.IdentityServer.1.0.65.zip"
  46. CommerceEngineCertificatePath = Resolve-Path -Path "C:deploySitecore.cer"
  47. SiteUtilitiesSrc = ( Join-Path -Path $DEPLOYMENT_DIRECTORY -ChildPath "SiteUtilityPages" )
  48. HabitatImagesModuleFullPath = Resolve-Path -Path "C:deploySitecore.Commerce.Habitat.Images-1.0.0.zip"
  49. AdvImagesModuleFullPath = Resolve-Path -Path "C:deployAdventure Works Images.zip"
  50. CommerceConnectModuleFullPath = Resolve-Path -Path "C:deploySitecore Commerce Connect Core 11.0.192.zip"
  51. CEConnectPackageFullPath = Resolve-Path -Path "C:deploySitecore.Commerce.Engine.Connect.2.0.835.update"
  52. PowerShellExtensionsModuleFullPath = Resolve-Path -Path "C:deployAssetsSitecore PowerShell Extensions-4.7.2 for Sitecore 8.zip"
  53. SXAModuleFullPath = Resolve-Path -Path "C:deployAssetsSitecore Experience Accelerator 1.6 rev. 180103 for 9.0.zip"
  54. SXACommerceModuleFullPath = Resolve-Path -Path "C:deploySitecore Commerce Experience Accelerator 1.0.2184.zip"
  55. SXAStorefrontModuleFullPath = Resolve-Path -Path "C:deploySitecore Commerce Experience Accelerator Storefront 1.0.2184.zip"
  56. SXAStorefrontThemeModuleFullPath = Resolve-Path -Path "C:deploySitecore Commerce Experience Accelerator Storefront Themes 1.0.2184.zip"
  57. SXAStorefrontCatalogModuleFullPath = Resolve-Path -Path "C:deploySitecore Commerce Experience Accelerator Habitat Catalog 1.0.2184.zip"
  58. MergeToolFullPath = Resolve-Path -Path "C:deployAssetsMicrosoft.Web.XmlTransform.dll"
  59. UserAccount = @{
  60. Domain = $Env:COMPUTERNAME
  61. UserName = 'CSFndRuntimeUser'
  62. Password = 'Pu8azaCr'
  63. }
  64. BraintreeAccount = @{
  65. MerchantId = ''
  66. PublicKey = ''
  67. PrivateKey = ''
  68. }
  69. SitecoreIdentityServerName = "SitecoreIdentityServer"
  70. }
  71.  
  72. if ($CommerceSearchProvider -eq "SOLR") {
  73. Install-SitecoreConfiguration @params
  74. }
  75. elseif ($CommerceSearchProvider -eq "AZURE") {
  76. Install-SitecoreConfiguration @params -Skip InstallSolrCores
  77. }
  78.  
  79. **********************
  80. Windows PowerShell transcript start
  81. Start time: 20180313130237
  82. Username: AFSHIN-DELLAfshin
  83. RunAs User: AFSHIN-DELLAfshin
  84. Configuration Name:
  85. Machine: AFSHIN-DELL (Microsoft Windows NT 10.0.16299.0)
  86. Host Application: C:WindowsSystem32WindowsPowerShellv1.0powershell.exe
  87. Process ID: 1896
  88. PSVersion: 5.1.16299.248
  89. PSEdition: Desktop
  90. PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.16299.248
  91. BuildVersion: 10.0.16299.248
  92. CLRVersion: 4.0.30319.42000
  93. WSManStackVersion: 3.0
  94. PSRemotingProtocolVersion: 2.3
  95. SerializationVersion: 1.1.0.1
  96. **********************
  97. Transcript started, output file is C:deploySIF.Sitecore.Commerce.1.0.1748SXAStorefront.CreateBinding.180313.log
  98. ************************************
  99. Sitecore Install Framework
  100. Version - 1.1.0
  101. ************************************
  102.  
  103.  
  104. WorkingDirectory : C:deploySIF.Sitecore.Commerce.1.0.1748
  105. LogPath : C:deploySIF.Sitecore.Commerce.1.0.1748SXAStorefront.CreateBinding.180313.log
  106. WhatIf : False
  107. Verbose : SilentlyContinue
  108. Configuration : C:deploySIF.Sitecore.Commerce.1.0.1748ConfigurationCommerceSXAStorefrontSXAStorefront.CreateBinding.json
  109. Debug : SilentlyContinue
  110. WarningAction : Continue
  111. ErrorAction : Stop
  112. InformationAction : Continue
  113.  
  114.  
  115.  
  116.  
  117. [---------------------------------------------------- CreatePaths : EnsurePath -----------------------------------------------------]
  118. [CreatePaths]:[Create] c:certificates
  119.  
  120. [----------------------------------------------- CreateSignedCert : NewSignedCertificate -------------------------------------------]
  121.  
  122. FileInfo Certificate
  123. -------- -----------
  124. C:certificatesConnectSite.crt [Subject]...
  125.  
  126.  
  127.  
  128. [---------------------------------------------------- StopWebsite : ManageWebsite --------------------------------------------------]
  129. [StopWebsite]:[Stop] ConnectSite
  130. **********************
  131. Command start time: 20180313130239
  132. **********************
  133. PS>TerminatingError(Get-WebItemState): "Cannot find path 'IIS:SitesConnectSite' because it does not exist."
  134. >> TerminatingError(Get-WebItemState): "Cannot find path 'IIS:SitesConnectSite' because it does not exist."
  135. >> TerminatingError(Get-WebItemState): "Cannot find path 'IIS:SitesConnectSite' because it does not exist."
  136. >> TerminatingError(Invoke-ManageWebsiteTask): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot find path 'IIS:SitesConnectSite' because it does not exist."
  137. >> TerminatingError(Invoke-ManageWebsiteTask): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot find path 'IIS:SitesConnectSite' because it does not exist."
  138. Install-SitecoreConfiguration : Cannot find path 'IIS:SitesConnectSite' because it does not exist.
  139. At C:Program FilesWindowsPowerShellModulesSitecoreInstallFramework1.1.0PublicInstall-SitecoreConfiguration.ps1:253 char:21
  140. + & $entry.Task.Command @paramSet | Out-Default
  141. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  142. + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  143. + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration
  144.  
  145. [TIME] 00:00:02
  146. **********************
  147. Windows PowerShell transcript end
  148. End time: 20180313130239
  149. **********************
Add Comment
Please, Sign In to add comment