Open kirasan6 opened 5 months ago
the same happens to me
Hello I have developed a script to solve your issue (not tested becareful) here it is
import argparse
import subprocess
import requests
import zipfile
import os
import shutil
versions = {
"v1.18.10.04": "https://sourceforge.net/projects/mcbe-versions/files/Release/x64/MCBE_v1.18.10.04_x64.appx",
"v1.17.10.01": "https://sourceforge.net/projects/mcbe-versions/files/Release/x64/MCBE_v1.17.10.01_x64.appx",
"v1.16.220.02": "https://sourceforge.net/projects/mcbe-versions/files/Release/x64/MCBE_v1.16.220.02_x64.appx",
"v1.16.210.05": "https://sourceforge.net/projects/mcbe-versions/files/Release/x64/MCBE_v1.16.210.05_x64.appx",
"v1.16.100.4": "https://sourceforge.net/projects/mcbe-versions/files/Release/x64/MCBE_v1.16.100.4_x64.appx",
"v1.16.40.20": "https://sourceforge.net/projects/mcbe-versions/files/Release/x64/MCBE_v1.16.40.20_x64.appx",
}
crack_url = "https://github.com/ultimate120/bedrock-crack/releases/download/v1.0.1/WinEdition-Crack.zip"
def download_file(url, local_filename):
response = requests.get(url, stream=True)
if response.status_code == 200:
with open(local_filename, "wb") as file:
for chunk in response.iter_content(chunk_size=8192):
file.write(chunk)
else:
raise Exception(f"Failed to download file from {url}")
def extract_zip(zip_path, extract_to):
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
zip_ref.extractall(extract_to)
def replace_dll(dll_source, dll_dest):
if os.path.isfile(dll_source):
shutil.copy(dll_source, dll_dest)
def install_crack():
crack_zip = "WinEdition-Crack.zip"
download_file(crack_url, crack_zip)
extract_zip(crack_zip, "WinEdition-Crack")
system32_dll = "WinEdition-Crack/System32/Windows.ApplicationModel.Store.dll"
syswow64_dll = "WinEdition-Crack/SysWOW64/Windows.ApplicationModel.Store.dll"
replace_dll(system32_dll, "C:\\Windows\\System32\\Windows.ApplicationModel.Store.dll")
replace_dll(syswow64_dll, "C:\\Windows\\SysWOW64\\Windows.ApplicationModel.Store.dll")
def download_appx(version):
url = versions[version]
response = requests.get(url)
if response.status_code == 200:
file_path = f"MCBE_{version}.appx"
with open(file_path, "wb") as file:
file.write(response.content)
return file_path
else:
raise Exception("Failed to download appx file")
def install_appx(file_path):
ps_script = f'Add-AppxPackage -Path "{file_path}"'
subprocess.run(["powershell", "-Command", ps_script], check=True)
def launch_game():
game_command = 'powershell -Command "Start-Process -FilePath \\"C:\\Program Files\\WindowsApps\\MinecraftBedrockEdition\\MinecraftBedrockEdition.exe\\" -Verb runAs"'
subprocess.Popen(game_command, shell=True)
def main():
parser = argparse.ArgumentParser(description="Minecraft Bedrock Launcher")
parser.add_argument("version", choices=versions.keys(), help="Version of Minecraft Bedrock to install")
parser.add_argument("--crack", action="store_true", help="Install crack and replace system files")
args = parser.parse_args()
try:
print(f"Downloading and installing Minecraft Bedrock version {args.version}...")
file_path = download_appx(args.version)
install_appx(file_path)
if args.crack:
print("Installing crack and replacing system files...")
install_crack()
print("Crack installed and system files replaced successfully.")
else:
print("Minecraft installed successfully.")
print("Launching Minecraft...")
launch_game()
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
main()
I did all the steps but when I got to MCBE vX\2.Crack Launcher--Installer\MCLauncher.exe it don't want to open