Releases: pw4ever/PWDE
Releases · pw4ever/PWDE
The latest release
Usage
First, make sure Execution Policy allows execution of script:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -ForceExecute the following PowerShell command to bootstrap the download/setup in the folder $env:USERPROFILE\Downloads\PWDE
& {
$pwde="$env:USERPROFILE\Downloads\PWDE";
mkdir "$pwde" -Force;
$(New-Object Net.WebClient).DownloadFile("https://raw.githubusercontent.com/pw4ever/PWDE/master/setup.ps1", "$pwde/setup.ps1");
pushd "$pwde";
./setup.ps1 -DownloadFromUpstream -DownloadOnly;
}You should be dropped into $env:USERPROFILE\Downloads\PWDE, which you can later popd to return to previous location.
- Get help.
Get-Help .\setup.ps1 -Full- Install Chocolatey and packages (listed as an array in -ChocoPkgs) from it. Need admin/elevated privilege.
.\setup.ps1 -InstallChocolatey -InstallChocoPkgs- Setup to directory
C:\PWDE.
.\setup.ps1 -Destination C:\PWDE -UnzipPkgs- Setup to directory
C:\PWDEand update user environment variables to make the settings persistent, and additionally create desktop shortcuts and right-mouse-button context menu entries (see the script for details; use [Tab] completion for help typing).
.\setup.ps1 `
-Destination C:\PWDE -UnzipPkgs `
-UpdateUserEnvironment `
-CreateShortcuts -CreateStartupShortcuts -CreateContextMenuEntries- Suppose packages are already unzipped to C:\PWDE, e.g., with a previous "-Destination". Skip unzipping and simply set up the environment.
.\setup.ps1 `
-Destination C:\PWDE `
-UpdateUserEnvironment `
-CreateShortcuts -CreateStartupShortcuts -CreateContextMenuEntries- All in one after downloading the packages.
.\setup.ps1 `
-Destination C:\PWDE `
-InstallChocolatey -InstallChocoPkgs `
-UpdateUserEnvironment `
-CreateShortcuts -CreateStartupShortcuts -CreateContextMenuEntriesNote that -CreateContextMenuEntries edits system registry, so using it requires admin/elevated privilege.
To use PWDE, either -UpdateUserEnvironment or run "$Destination\init.ps1" in PoSH.