Skip to content

Commit

Permalink
Add 64/32 bit check to reg scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Psychlist1972 committed Dec 2, 2024
1 parent a642d69 commit 6de9dac
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dev-tools/reg-helpers/midi-list-reg.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
Write-Host "you will need to run the dev-prep script before running the installer." -ForegroundColor DarkCyan
Write-Host

if (!([Environment]::Is64BitProcess))
{
Write-Host
Write-Host "This appears to be a 32-bit host. This script must be run from a 64-bit elevated shell." -ForegroundColor Red
Write-Host
Exit
}

# display info about the MIDI Service that is installed

Expand Down
10 changes: 10 additions & 0 deletions src/dev-tools/reg-helpers/midi-pre-install-reg-steps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ Write-Host
Write-Host "These actions are not easily reversible without reinstalling Windows." -ForegroundColor DarkCyan
Write-Host

if (!([Environment]::Is64BitProcess))
{
Write-Host
Write-Host "This appears to be a 32-bit host. This script must be run from a 64-bit elevated shell." -ForegroundColor Red
Write-Host
Exit
}



$confirmation = Read-Host "Do you want to continue? (y/n)"
if ($confirmation -eq 'y' -or $confirmation -eq 'Y')
{
Expand Down

0 comments on commit 6de9dac

Please sign in to comment.