mirror of
https://github.com/JDM170/win_update_script
synced 2025-12-10 05:57:17 +07:00
Added print final command
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
4
main.py
4
main.py
@@ -69,7 +69,8 @@ dism /unmount-wim /mountdir:"{mntpath}" /commit
|
||||
|
||||
dism /cleanup-wim
|
||||
"""
|
||||
# dism /export-image /sourceimagefile:"{wimpath}" /sourceindex:1 /destinationimagefile:"{wimpath}.esd" /Compress:recovery
|
||||
|
||||
export_cmd = "dism /export-image /sourceimagefile:\"{wimpath}\" /sourceindex:1 /destinationimagefile:\"{wimpath}.esd\" /Compress:recovery"
|
||||
|
||||
apps = [
|
||||
"Microsoft.549981C3F5F10", # Cortana (W11)
|
||||
@@ -170,6 +171,7 @@ def main():
|
||||
# subprocess.Popen("powershell Unblock-File -Path {}".format(ps_script_path)).wait()
|
||||
subprocess.Popen("powershell {}".format(ps_script_path)).wait()
|
||||
subprocess.Popen("{}".format(bat_script_path)).wait()
|
||||
print("Для завершения используйте следующую команду:\n{}".format(export_cmd.format(wimpath=wim)))
|
||||
for key in properties.keys():
|
||||
properties[key]["path"] = ""
|
||||
do_cleanup()
|
||||
|
||||
Reference in New Issue
Block a user