Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions v1/BetterRTX_Installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ if ($True -eq (($null -ne $minecraftVersion) -and ($null -ne $filesLocation))) {
$installationLocation = Get-AppxPackage -Name "Microsoft.MinecraftWindowsBeta*" | Select-Object -ExpandProperty InstallLocation;
continue
}
$numeral3 {
# Minecraft Education
$installationLocation = Get-AppxPackage -Name "Microsoft.MinecraftEducation*" | Select-Object -ExpandProperty InstallLocation;
continue
}
$numeral4 {
# Minecraft Education Preview
$installationLocation = Get-AppxPackage -Name "Microsoft.MinecraftEducationPreview*" | Select-Object -ExpandProperty InstallLocation;
continue
}
}

}
Expand Down Expand Up @@ -59,10 +69,14 @@ logo14 = |_____________________________________________________________________
installerLocationChoice = Choose installation location:
installerLocationChoice1 = 1): Minecraft Bedrock Edition (Default)
installerLocationChoice2 = 2): Minecraft Preview Edition (Advanced) (Not Recommended as features can change before we can update BetterRTX for it)
installerLocationChoice3 = 3): Minecraft Education (Windows Store)
installerLocationChoice4 = 4): Minecraft Education Preview
installerLocationInvalid = Invalid Selection
installerLocationPrompt = Selection
installerLocationChoice1Numeral = 1
installerLocationChoice2Numeral = 2
installerLocationChoice3Numeral = 3
installerLocationChoice4Numeral = 4

checkingForIOBitUnlocker = Checking for IOBit Unlocker...
IOBitUnlockerCheckPass = IObit Unlocker is installed, Continuing...
Expand Down Expand Up @@ -149,8 +163,12 @@ Write-Host ""
Write-Host $lang.installerLocationChoice
Write-Host $lang.installerLocationChoice1
Write-Host $lang.installerLocationChoice2
Write-Host $lang.installerLocationChoice3
Write-Host $lang.installerLocationChoice4
$numeral1 = [int]$lang.installerLocationChoice1Numeral
$numeral2 = [int]$lang.installerLocationChoice2Numeral
$numeral3 = [int]$lang.installerLocationChoice3Numeral
$numeral4 = [int]$lang.installerLocationChoice4Numeral

$location = Read-Host -Prompt $lang.installerLocationPrompt
Switch ($location) {
Expand All @@ -164,6 +182,16 @@ Switch ($location) {
$installationLocation = Get-AppxPackage -Name "Microsoft.MinecraftWindowsBeta*" | Select-Object -ExpandProperty InstallLocation;
continue
}
$numeral3 {
# Minecraft Preview Edition
$installationLocation = Get-AppxPackage -Name "Microsoft.MinecraftEducation*" | Select-Object -ExpandProperty InstallLocation;
continue
}
$numeral4 {
# Minecraft Preview Edition
$installationLocation = Get-AppxPackage -Name "Microsoft.MinecraftEducationPreview*" | Select-Object -ExpandProperty InstallLocation;
continue
}
default {
Write-Error $lang.installerLocationInvalid
Start-Sleep -Seconds 5
Expand Down