Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Requires -Version 3
- param(
- [string]$SiteName = "ConnectSite",
- [string]$SiteHostHeaderName = "sxa.storefront.local",
- [string]$SqlDbPrefix = $SiteName,
- [string]$CommerceSearchProvider = "SOLR"
- )
- $global:DEPLOYMENT_DIRECTORY = Split-Path $MyInvocation.MyCommand.Path
- $modulesPath = ( Join-Path -Path $DEPLOYMENT_DIRECTORY -ChildPath "Modules" )
- if ($env:PSModulePath -notlike "*$modulesPath*") {
- $p = $env:PSModulePath + ";" + $modulesPath
- [Environment]::SetEnvironmentVariable("PSModulePath", $p)
- }
- $params = @{
- Path = Resolve-Path '.ConfigurationCommerceMaster_SingleServer.json'
- SiteName = $SiteName
- SiteHostHeaderName = $SiteHostHeaderName
- InstallDir = "$($Env:SYSTEMDRIVE)inetpubwwwroot$SiteName"
- XConnectInstallDir = "$($Env:SYSTEMDRIVE)inetpubwwwroot$($SiteName)_xconnect"
- CertificateName = $SiteName
- CommerceServicesDbServer = $($Env:COMPUTERNAME)
- CommerceServicesDbName = "SitecoreCommerce9_SharedEnvironments"
- CommerceServicesGlobalDbName = "SitecoreCommerce9_Global"
- SitecoreDbServer = $($Env:COMPUTERNAME)
- SitecoreCoreDbName = "$($SqlDbPrefix)_Core"
- CommerceSearchProvider = $CommerceSearchProvider
- SolrUrl = "https://localhost:8983/solr"
- SolrRoot = "D:Sitecoresolr-6.6.2solr-6.6.2"
- SolrService = "solr622"
- SolrSchemas = ( Join-Path -Path $DEPLOYMENT_DIRECTORY -ChildPath "SolrSchemas" )
- SearchIndexPrefix = ""
- AzureSearchServiceName = ""
- AzureSearchAdminKey = ""
- AzureSearchQueryKey = ""
- CommerceEngineDacPac = Resolve-Path -Path "C:deployAssetsSitecore.Commerce.Engine.DB.dacpac"
- CommerceOpsServicesPort = "5015"
- CommerceShopsServicesPort = "5005"
- CommerceAuthoringServicesPort = "5000"
- CommerceMinionsServicesPort = "5010"
- SitecoreCommerceEngineZipPath = Resolve-Path -Path "C:deploySitecore.Commerce.Engine.SDK.2.0.1922"
- SitecoreBizFxServicesContentPath = Resolve-Path -Path "C:deploySitecore.BizFX.1.0.572"
- SitecoreIdentityServerZipPath = Resolve-Path -Path "C:deploySitecore.IdentityServer.1.0.65.zip"
- CommerceEngineCertificatePath = Resolve-Path -Path "C:deploySitecore.cer"
- SiteUtilitiesSrc = ( Join-Path -Path $DEPLOYMENT_DIRECTORY -ChildPath "SiteUtilityPages" )
- HabitatImagesModuleFullPath = Resolve-Path -Path "C:deploySitecore.Commerce.Habitat.Images-1.0.0.zip"
- AdvImagesModuleFullPath = Resolve-Path -Path "C:deployAdventure Works Images.zip"
- CommerceConnectModuleFullPath = Resolve-Path -Path "C:deploySitecore Commerce Connect Core 11.0.192.zip"
- CEConnectPackageFullPath = Resolve-Path -Path "C:deploySitecore.Commerce.Engine.Connect.2.0.835.update"
- PowerShellExtensionsModuleFullPath = Resolve-Path -Path "C:deployAssetsSitecore PowerShell Extensions-4.7.2 for Sitecore 8.zip"
- SXAModuleFullPath = Resolve-Path -Path "C:deployAssetsSitecore Experience Accelerator 1.6 rev. 180103 for 9.0.zip"
- SXACommerceModuleFullPath = Resolve-Path -Path "C:deploySitecore Commerce Experience Accelerator 1.0.2184.zip"
- SXAStorefrontModuleFullPath = Resolve-Path -Path "C:deploySitecore Commerce Experience Accelerator Storefront 1.0.2184.zip"
- SXAStorefrontThemeModuleFullPath = Resolve-Path -Path "C:deploySitecore Commerce Experience Accelerator Storefront Themes 1.0.2184.zip"
- SXAStorefrontCatalogModuleFullPath = Resolve-Path -Path "C:deploySitecore Commerce Experience Accelerator Habitat Catalog 1.0.2184.zip"
- MergeToolFullPath = Resolve-Path -Path "C:deployAssetsMicrosoft.Web.XmlTransform.dll"
- UserAccount = @{
- Domain = $Env:COMPUTERNAME
- UserName = 'CSFndRuntimeUser'
- Password = 'Pu8azaCr'
- }
- BraintreeAccount = @{
- MerchantId = ''
- PublicKey = ''
- PrivateKey = ''
- }
- SitecoreIdentityServerName = "SitecoreIdentityServer"
- }
- if ($CommerceSearchProvider -eq "SOLR") {
- Install-SitecoreConfiguration @params
- }
- elseif ($CommerceSearchProvider -eq "AZURE") {
- Install-SitecoreConfiguration @params -Skip InstallSolrCores
- }
- **********************
- Windows PowerShell transcript start
- Start time: 20180313130237
- Username: AFSHIN-DELLAfshin
- RunAs User: AFSHIN-DELLAfshin
- Configuration Name:
- Machine: AFSHIN-DELL (Microsoft Windows NT 10.0.16299.0)
- Host Application: C:WindowsSystem32WindowsPowerShellv1.0powershell.exe
- Process ID: 1896
- PSVersion: 5.1.16299.248
- PSEdition: Desktop
- PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.16299.248
- BuildVersion: 10.0.16299.248
- CLRVersion: 4.0.30319.42000
- WSManStackVersion: 3.0
- PSRemotingProtocolVersion: 2.3
- SerializationVersion: 1.1.0.1
- **********************
- Transcript started, output file is C:deploySIF.Sitecore.Commerce.1.0.1748SXAStorefront.CreateBinding.180313.log
- ************************************
- Sitecore Install Framework
- Version - 1.1.0
- ************************************
- WorkingDirectory : C:deploySIF.Sitecore.Commerce.1.0.1748
- LogPath : C:deploySIF.Sitecore.Commerce.1.0.1748SXAStorefront.CreateBinding.180313.log
- WhatIf : False
- Verbose : SilentlyContinue
- Configuration : C:deploySIF.Sitecore.Commerce.1.0.1748ConfigurationCommerceSXAStorefrontSXAStorefront.CreateBinding.json
- Debug : SilentlyContinue
- WarningAction : Continue
- ErrorAction : Stop
- InformationAction : Continue
- [---------------------------------------------------- CreatePaths : EnsurePath -----------------------------------------------------]
- [CreatePaths]:[Create] c:certificates
- [----------------------------------------------- CreateSignedCert : NewSignedCertificate -------------------------------------------]
- FileInfo Certificate
- -------- -----------
- C:certificatesConnectSite.crt [Subject]...
- [---------------------------------------------------- StopWebsite : ManageWebsite --------------------------------------------------]
- [StopWebsite]:[Stop] ConnectSite
- **********************
- Command start time: 20180313130239
- **********************
- PS>TerminatingError(Get-WebItemState): "Cannot find path 'IIS:SitesConnectSite' because it does not exist."
- >> TerminatingError(Get-WebItemState): "Cannot find path 'IIS:SitesConnectSite' because it does not exist."
- >> TerminatingError(Get-WebItemState): "Cannot find path 'IIS:SitesConnectSite' because it does not exist."
- >> 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."
- >> 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."
- Install-SitecoreConfiguration : Cannot find path 'IIS:SitesConnectSite' because it does not exist.
- At C:Program FilesWindowsPowerShellModulesSitecoreInstallFramework1.1.0PublicInstall-SitecoreConfiguration.ps1:253 char:21
- + & $entry.Task.Command @paramSet | Out-Default
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration
- [TIME] 00:00:02
- **********************
- Windows PowerShell transcript end
- End time: 20180313130239
- **********************
Add Comment
Please, Sign In to add comment