README.md

August 25, 2016 ยท View on GitHub

This is a sample PackageManagement provider. It discovers photos in your remote file repository and installs them to your local folder. The purpose of this provider is trying to provide some help for people to get started with writing a PackageManagement provider in PowerShell.

Let's try it out

####1. Search and Install the MyAlbum provider####

PS C:\>find-packageprovider -name MyAlbum
PS C:\>install-packageprovider -name MyAlbum -force

####2. Create a local repository####

PS C:\>mkdir c:\test
PS C:\>New-Item seattle.png
PS C:\>New-Item "new york.png"

####3. Register a repository

Register-PackageSource -Name album -ProviderName myalbum -Location  C:\test

####4. Find packages

Find-Package -ProviderName myalbum