You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because cmd.exe is still the default Windows command prompt which, arguably, makes it more user-friendly to run the installer in cmd.exe rather than powershell.exe.
More choices for our users: Some people dislike cmd, some dislike powershell. By providing both, more people are gonna be happy, potentially.
Because we can. :)
How?
In order to do this, the .cmd installer would have to have the same capabilities as the .ps1 installer. Some of these are:
Download files via Invoke-WebRequest
Extract a .zip archive via Expand-Archive or [System.IO.Compression.ZipFile]::ExtractToDirectory
Add to the session's %Path% via $Env:Path and to the user's %Path% via [System.Environment]::SetEnvironmentVariable
As brought up in #153, since early 2018, curl and tar are available on Windows 10 by default. Thus, on a modern Windows 10 installation, curl could be used to download files and tar could be used to extract a .zip file.
Manipulating the session %Path% can be done via set Path=... (or path). Manipulating the users's %Path% can be done using reg, reading and writing to the Path value of the HKEY_CURRENT_USER\Environment registry path.
Note that I'm not suggesting to drop the PowerShell installer, I'm simply suggesting that we could add an additional Command Prompt installer.
The text was updated successfully, but these errors were encountered:
Why?
cmd.exe
is still the default Windows command prompt which, arguably, makes it more user-friendly to run the installer incmd.exe
rather thanpowershell.exe
.cmd
, some dislikepowershell
. By providing both, more people are gonna be happy, potentially.How?
In order to do this, the
.cmd
installer would have to have the same capabilities as the.ps1
installer. Some of these are:Invoke-WebRequest
.zip
archive viaExpand-Archive
or[System.IO.Compression.ZipFile]::ExtractToDirectory
%Path%
via$Env:Path
and to the user's%Path%
via[System.Environment]::SetEnvironmentVariable
As brought up in #153, since early 2018,
curl
andtar
are available on Windows 10 by default. Thus, on a modern Windows 10 installation,curl
could be used to download files andtar
could be used to extract a.zip
file.Here's a short example:
Manipulating the session
%Path%
can be done viaset Path=...
(orpath
). Manipulating the users's%Path%
can be done usingreg
, reading and writing to thePath
value of theHKEY_CURRENT_USER\Environment
registry path.Note that I'm not suggesting to drop the PowerShell installer, I'm simply suggesting that we could add an additional Command Prompt installer.
The text was updated successfully, but these errors were encountered: