Skip to content

Commit

Permalink
Update main script
Browse files Browse the repository at this point in the history
Adding options for portable version
  • Loading branch information
raspiduino authored Nov 25, 2020
1 parent 29a3bf2 commit a2d3889
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions updateinsider.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,43 @@
By @raspiduino on github
Date created 19/11/2020
'''
# Many thanks uupdump.ml, beautifulsoup4, WinCDEmu, and other libs.
# Many thanks whatever127 (uupdump.ml), Leonard Richardson (beautifulsoup), sysprogs.com (WinCDEmu), and other libs.

import admin # https://github.com/raspiduino/pythonadmin
import requests
from bs4 import BeautifulSoup
import os

if not admin.isUserAdmin():
admin.runAsAdmin("python updateinsider.py")
exit(1)

# Settings
arch = "amd64" # Change this to fit your arch (x86, amd64, arm64)
'''
Change this to fit your ring:
arch = "" # Change this to fit your arch (x86, amd64, arm64)
# Change this to fit your ring:
rings = '''
retail : Normal release
rp : Release preview
wis : Slow rings
wif : Fast rings (Default)
'''
ring = "wif"
ring = ""

lang = "en-us" # Pick a language
lang = "" # Pick a language

edition = "professional" # Choose an edition (core, coren, professional, professionaln)
edition = "" # Choose an edition (core, coren, professional, professionaln)

vhd = "D:\\Data\\vm\\Windows10Insider.vhd" # Set the vhd file
vhd = "" # Set the vhd file

driveletter = "V" # Select a drive letter to mount vhd file
driveletter = "" # Select a drive letter to mount vhd file

isodriveletter = "I" # Select a drive letter to mount iso file
isodriveletter = "" # Select a drive letter to mount iso file

# Prompt for informations
arch = input("Enter your arch (x86, amd64, arm64): ")
print(rings)
ring = input("Enter your ring: ")
lang = input("Choose a language ('en-us' for example): ")
edition = input("Choose your edition (core, coren, professional, professionaln): ")
vhd = input("Enter your vhd path (please replace '\\' with '\\\\'): ")
driveletter = input("Choose a driveletter to mount vhd file (for example 'V'). You should use the same letter at all time: ")
isodriveletter = input("Choose a driveletter to mount iso (anything you want but not the existed letter): ")

'''
# Get the version id
if ring == "wif":
# Get the file id
Expand Down Expand Up @@ -72,7 +76,7 @@
os.system("scripts\\files\\wimlib-imagex apply " + isodriveletter + ":\\sources\\install.wim " + driveletter + ":\\") # This might take a while too!

'''
You must set the boot flag for the vhd file
You have to set the boot flag for the vhd file
Please open Command Prompt as Admin and execute:
bcdboot V:\Windows
Replace V with the mounted vhd letter
Expand Down

0 comments on commit a2d3889

Please sign in to comment.