https://github.com/pkgstore/pwsh-install
Module for installing third-party modules from GitHub.
https://github.com/pkgstore/pwsh-install
powershell powershell-cmdlets powershell-module powershell-modules powershell-script powershell-scripts pwsh pwsh-module pwsh-scripts windows
Last synced: about 1 month ago
JSON representation
Module for installing third-party modules from GitHub.
- Host: GitHub
- URL: https://github.com/pkgstore/pwsh-install
- Owner: pkgstore
- License: mit
- Created: 2023-11-19T10:37:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T04:35:13.000Z (about 2 years ago)
- Last Synced: 2025-01-20T08:32:52.990Z (about 1 year ago)
- Topics: powershell, powershell-cmdlets, powershell-module, powershell-modules, powershell-script, powershell-scripts, pwsh, pwsh-module, pwsh-scripts, windows
- Language: PowerShell
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# PowerShell Install Module
Module for installing third-party modules from GitHub.
## Install
```powershell
$MOD = "Install"; $PFX = "PkgStore"; $DIR = "$(($Env:PSModulePath -split ';')[0])"; Invoke-WebRequest "https://github.com/pkgstore/pwsh-${MOD}/archive/refs/heads/main.zip" -OutFile (Join-Path $DIR "${MOD}.zip"); Expand-Archive -Path (Join-Path $DIR "${MOD}.zip") -DestinationPath "${DIR}"; if (Test-Path -Path (Join-Path $DIR "${PFX}.${MOD}")) { Remove-Item -Path (Join-Path $DIR "${PFX}.${MOD}") -Recurse -Force }; Rename-Item -Path (Join-Path $DIR "pwsh-${MOD}-main") -NewName (Join-Path $DIR "${PFX}.${MOD}"); Remove-Item -Path (Join-Path $DIR "${MOD}.zip");
```