How To Download The Dynamics 365 CE Package Deployer Tool using Powershell?

Microsoft dynamics 365

Package Deployer lets administrators deploy packages on Microsoft Dynamics 365 CE/ Microsoft Dataverse instances.

This article will explain how to download the Package Deployer Tool using Power Shell Script from Nuget.

Follow the below steps to download the same.

Step 1. Create a folder in C Drive (Preferably any Drive other than C Drive) and name it “Dynamics_365_Development_Tools“

Step 2. Click on Windows, search for Windows PowerShell, and open it.

How To Download The Dynamics 365 CE Configuration Migration Tool

Step 3. Type the below command and press Enter to change the directory.

cd C:\Dynamics_365_Development_Tools

How To Download The Dynamics 365 CE Configuration Migration Tool

Directory changed.

How To Download The Dynamics 365 CE Configuration Migration Tool

Step 4. Copy and Paste the below PowerShell script in the PowerShell Window to download the Package Deployer Tool from Nuget.

$sourceNugetExe = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
$targetNugetExe = ".\nuget.exe"
Remove-Item .\Tools -Force -Recurse -ErrorAction Ignore
Invoke-WebRequest $sourceNugetExe -OutFile $targetNugetExe
Set-Alias nuget $targetNugetExe -Scope Global -Verbose

##
##Download Package Deployer 
##
./nuget install Microsoft.CrmSdk.XrmTooling.PackageDeployment.WPF -O .\Tools
md .\Tools\PackageDeployment
$pdFolder = Get-ChildItem ./Tools | Where-Object {$_.Name -match 'Microsoft.CrmSdk.XrmTooling.PackageDeployment.Wpf.'}
move .\Tools\$pdFolder\tools\*.* .\Tools\PackageDeployment
Remove-Item .\Tools\$pdFolder -Force -Recurse

##
##Remove NuGet.exe
##
Remove-Item nuget.exe

Step 5. Click on Paste anyway.

How To Download The Dynamics 365 CE Configuration Migration Tool

Package Deployer download is in progress.

How To Download The Dynamics 365 CE Configuration Migration Tool

Package Deployer will be downloaded successfully.

Step 6. In the Power Shell, Press Enter to delete the nuget.exe file.

Step 7. Go to C:\Dynamics_365_Development_Tools\Tools folder for Package Deployment.

Package development

To get the latest version of this Package Deployer Tool, repeat the steps mentioned above.

I hope you have successfully downloaded the Package Deployer Tool from NuGet using the Powershell script.

Please like and share your valuable feedback on this article.


Similar Articles