Skip to content

Commit

Permalink
Fix registry subkey declaration for 32-bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
brogers5 committed Jun 3, 2022
1 parent 9638020 commit 54bf4ca
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tools/helpers.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
$registrySubkey = 'HKLM:\SOFTWARE\WOW6432Node\Western Digital\SSD Dashboard'
if ((Get-OSArchitectureWidth -Compare 64))
{
$registrySubkey = 'HKLM:\SOFTWARE\WOW6432Node\Western Digital\SSD Dashboard'
}
else
{
$registrySubkey = 'HKLM:\SOFTWARE\Western Digital\SSD Dashboard'
}

$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

function Get-ShouldInstall()
Expand Down

0 comments on commit 54bf4ca

Please sign in to comment.