Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows installation instructions will not work #170

Open
glennsarti opened this issue Jan 8, 2019 · 1 comment
Open

Windows installation instructions will not work #170

glennsarti opened this issue Jan 8, 2019 · 1 comment

Comments

@glennsarti
Copy link

glennsarti commented Jan 8, 2019

Unfortunately the installation instructions in the release notes for Windows will never work as it appears it's just a copy-n-paste from the linux/mac instructions.

As a windows user
I would like to install reg
On a Windows platform

Note - the windows binaries in the releases are actual windows executables so WSL is not really an option


Also, this tool installs as reg.exe which is the same filename as the OS installed registry tool reg.exe (Back to at least WinXP days). There should be a known issue or release note that you'll need to modify your path appropriately or using fully qualified exe names

@glennsarti
Copy link
Author

Possible PowerShell equivalent

# Export the sha256sum for verification.
$SHA256 = 'aec2ba84a2de95a21f1649e0f398ecf91575c1e1b8994e9589a28d2e32ce2cd8x'

# Download and check the sha256sum.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -URI 'https://github.com/genuinetools/reg/releases/download/v0.16.0/reg-windows-amd64' -UseBasicParsing -OutFile ~/reg.exe
if ((Get-FileHash -Path ~/reg.exe -Algorithm SHA256).Hash -ine $SHA256) { Write-Error "SHA256 does not match"; return }
Write-Output "reg installed!"

# Run it!
~/reg.exe -h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant