File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,7 +79,9 @@ Copy-Item -Path (Join-Path $roleTailoredClientFolder "*office*.dll") -Destinatio
7979# Due to dependencies from finsql.exe, we have to copy hlink.dll and ReportBuilder in place inside the container
8080Copy-Item - Path (Join-Path $runPath ' Install\hlink.dll' ) - Destination (Join-Path $roleTailoredClientFolder ' hlink.dll' )
8181Copy-Item - Path (Join-Path $runPath ' Install\hlink.dll' ) - Destination (Join-Path $serviceTierFolder ' hlink.dll' )
82- Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
82+ if (! (Test-Path " c:\windows\system32\t2embed.dll" )) {
83+ Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
84+ }
8385
8486$reportBuilderPath = " C:\Program Files (x86)\ReportBuilder"
8587$reportBuilderSrc = Join-Path $runPath ' Install\ReportBuilder'
Original file line number Diff line number Diff line change @@ -99,7 +99,9 @@ Copy-Item -Path (Join-Path $roleTailoredClientFolder "*office*.dll") -Destinatio
9999# Due to dependencies from finsql.exe, we have to copy hlink.dll and ReportBuilder in place inside the container
100100Copy-Item - Path (Join-Path $runPath ' Install\hlink.dll' ) - Destination (Join-Path $roleTailoredClientFolder ' hlink.dll' )
101101Copy-Item - Path (Join-Path $runPath ' Install\hlink.dll' ) - Destination (Join-Path $serviceTierFolder ' hlink.dll' )
102- Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
102+ if (! (Test-Path " c:\windows\system32\t2embed.dll" )) {
103+ Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
104+ }
103105Copy-Item - Path (Join-Path $runPath ' Install\Microsoft.IdentityModel.dll' ) - Destination (Join-Path $serviceTierFolder ' Microsoft.IdentityModel.dll' )
104106
105107$reportBuilderPath = " C:\Program Files (x86)\ReportBuilder"
Original file line number Diff line number Diff line change @@ -102,7 +102,9 @@ Copy-Item -Path (Join-Path $roleTailoredClientFolder "*office*.dll") -Destinatio
102102# Due to dependencies from finsql.exe, we have to copy hlink.dll and ReportBuilder in place inside the container
103103Copy-Item - Path (Join-Path $runPath ' Install\hlink.dll' ) - Destination (Join-Path $roleTailoredClientFolder ' hlink.dll' )
104104Copy-Item - Path (Join-Path $runPath ' Install\hlink.dll' ) - Destination (Join-Path $serviceTierFolder ' hlink.dll' )
105- Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
105+ if (! (Test-Path " c:\windows\system32\t2embed.dll" )) {
106+ Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
107+ }
106108Copy-Item - Path (Join-Path $runPath ' Install\Microsoft.IdentityModel.dll' ) - Destination (Join-Path $serviceTierFolder ' Microsoft.IdentityModel.dll' )
107109
108110$reportBuilderPath = " C:\Program Files (x86)\ReportBuilder"
Original file line number Diff line number Diff line change @@ -164,7 +164,9 @@ Write-Host "Copying dependencies"
164164$serviceTierFolder = (Get-Item " C:\Program Files\Microsoft Dynamics NAV\*\Service" ).FullName
165165# Due to dependencies from finsql.exe, we have to copy hlink.dll and ReportBuilder in place inside the container
166166Copy-Item - Path (Join-Path $runPath ' Install\hlink.dll' ) - Destination (Join-Path $serviceTierFolder ' hlink.dll' )
167- Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
167+ if (! (Test-Path " c:\windows\system32\t2embed.dll" )) {
168+ Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
169+ }
168170Copy-Item - Path (Join-Path $runPath ' Install\Microsoft.IdentityModel.dll' ) - Destination (Join-Path $serviceTierFolder ' Microsoft.IdentityModel.dll' )
169171
170172Write-Host " Copying ReportBuilder"
Original file line number Diff line number Diff line change @@ -105,7 +105,9 @@ $serviceTierFolder = (Get-Item "C:\Program Files\Microsoft Dynamics NAV\*\Servic
105105
106106# Due to dependencies from finsql.exe, we have to copy hlink.dll and ReportBuilder in place inside the container
107107Copy-Item - Path (Join-Path $runPath ' Install\hlink.dll' ) - Destination (Join-Path $serviceTierFolder ' hlink.dll' )
108- Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
108+ if (! (Test-Path " c:\windows\system32\t2embed.dll" )) {
109+ Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
110+ }
109111Copy-Item - Path (Join-Path $runPath ' Install\Microsoft.IdentityModel.dll' ) - Destination (Join-Path $serviceTierFolder ' Microsoft.IdentityModel.dll' )
110112
111113$reportBuilderPath = " C:\Program Files (x86)\ReportBuilder"
Original file line number Diff line number Diff line change @@ -164,7 +164,9 @@ Write-Host "Copying dependencies"
164164$serviceTierFolder = (Get-Item " C:\Program Files\Microsoft Dynamics NAV\*\Service" ).FullName
165165# Due to dependencies from finsql.exe, we have to copy hlink.dll and ReportBuilder in place inside the container
166166Copy-Item - Path (Join-Path $runPath ' Install\hlink.dll' ) - Destination (Join-Path $serviceTierFolder ' hlink.dll' )
167- Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
167+ if (! (Test-Path " c:\windows\system32\t2embed.dll" )) {
168+ Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
169+ }
168170Copy-Item - Path (Join-Path $runPath ' Install\Microsoft.IdentityModel.dll' ) - Destination (Join-Path $serviceTierFolder ' Microsoft.IdentityModel.dll' )
169171
170172Write-Host " Copying ReportBuilder"
Original file line number Diff line number Diff line change @@ -105,7 +105,9 @@ $serviceTierFolder = (Get-Item "C:\Program Files\Microsoft Dynamics NAV\*\Servic
105105
106106# Due to dependencies from finsql.exe, we have to copy hlink.dll and ReportBuilder in place inside the container
107107Copy-Item - Path (Join-Path $runPath ' Install\hlink.dll' ) - Destination (Join-Path $serviceTierFolder ' hlink.dll' )
108- Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
108+ if (! (Test-Path " c:\windows\system32\t2embed.dll" )) {
109+ Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
110+ }
109111Copy-Item - Path (Join-Path $runPath ' Install\Microsoft.IdentityModel.dll' ) - Destination (Join-Path $serviceTierFolder ' Microsoft.IdentityModel.dll' )
110112
111113$reportBuilderPath = " C:\Program Files (x86)\ReportBuilder"
Original file line number Diff line number Diff line change @@ -155,7 +155,9 @@ if ($installersFolder) {
155155
156156Write-Host " Copying dependencies"
157157$serviceTierFolder = (Get-Item " C:\Program Files\Microsoft Dynamics NAV\*\Service" ).FullName
158- Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
158+ if (! (Test-Path " c:\windows\system32\t2embed.dll" )) {
159+ Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
160+ }
159161
160162Write-Host " Importing PowerShell Modules"
161163try {
@@ -372,3 +374,4 @@ if (!$skipDb -and ($multitenant -or $installOnly -or $licenseFilePath -ne "" -or
372374$timespend = [Math ]::Round([DateTime ]::Now.Subtract($startTime ).Totalseconds)
373375Write-Host " Installation took $timespend seconds"
374376Write-Host " Installation complete"
377+
Original file line number Diff line number Diff line change @@ -155,7 +155,9 @@ if ($installersFolder) {
155155
156156Write-Host " Copying dependencies"
157157$serviceTierFolder = (Get-Item " C:\Program Files\Microsoft Dynamics NAV\*\Service" ).FullName
158- Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
158+ if (! (Test-Path " c:\windows\system32\t2embed.dll" )) {
159+ Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
160+ }
159161
160162Write-Host " Importing PowerShell Modules"
161163try {
Original file line number Diff line number Diff line change @@ -161,7 +161,9 @@ if ($installersFolder) {
161161
162162Write-Host " Copying dependencies"
163163$serviceTierFolder = (Get-Item " C:\Program Files\Microsoft Dynamics NAV\*\Service" ).FullName
164- Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
164+ if (! (Test-Path " c:\windows\system32\t2embed.dll" )) {
165+ Copy-Item - Path (Join-Path $runPath ' Install\t2embed.dll' ) - Destination " c:\windows\system32\t2embed.dll"
166+ }
165167
166168Write-Host " Importing PowerShell Modules"
167169try {
You can’t perform that action at this time.
0 commit comments