1. Go to download and install python-3.3.3.msi or python-3.3.3.amd64.msi
www.python.org
2. Launch and select "install just for me".
3. Press Next button and select or create program folder.
4. Select all function and press Next to install.
5. Download and install Windows ADK from Microsoft website.
6. Open "Deployment and Image Tools Environment" as administrator.
7. Type "dism /mount-wim /wimfile:C:\boot.wim /index:1 /mountdir:C:\mount" to mount boot.wim file.
8. Copy C:\Python33 folder to C:\mount
9. Open and edit "startnet.cmd" from C:\Winodws\System32
10. Type 2 command after "wpeinit"
11. assoc .py=PythonFile
ftype PythonFile=X:\Python33\Python.exe
12. Save and exit.
13. Back to "Deployment and Image Tools Environment" command line.
14. Type "dism /unmount-wim /mountdir:C:\mount /commit" to unmount boot.wim file.
15. Copy and replace boot.wim to your WinPE iso.
16. Boot to WinPE and run Python script to test it can be workable.
it should be
回覆刪除ftype PythonFile=X:\Python33\Python.exe %1
Thanks a lot:)
回覆刪除Basically you are bundling python as part of the WinPE ISO.
回覆刪除