Skip to content

Commit 66618d1

Browse files
committed
Extract D365 binaries from LCS deployable package
1 parent af8b29a commit 66618d1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

extractBinariesFromD365Package.ps1

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## this refers to your custom metadata directory
2+
3+
$PLD="C:\MyPackagesLocalDirectory"
4+
5+
## this refers to the binary package you want to extract
6+
7+
$FILES=(Get-ChildItem "C:\Temp\<binary package name>\AOSService\Packages\files")
8+
9+
10+
11+
foreach ($file in $FILES) {
12+
13+
$folder=$file.Name.Replace('dynamicsax-', '')
14+
15+
$folder=$folder.Split('.',2)[0]
16+
17+
write-output "mkdir $PLD/$folder"
18+
19+
New-Item -Type directory -Path "$PLD/$folder"
20+
21+
write-output "unzip $file"
22+
23+
Expand-Archive -Path $file -DestinationPath $PLD/$folder
24+
25+
}

0 commit comments

Comments
 (0)