Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.44 KB

README.md

File metadata and controls

23 lines (18 loc) · 1.44 KB

LxRunOffline

Build status

An offline installer for Bash on Windows.

Features

  • No Internet access required when installing!
  • Install any version of Ubuntu!

How to use

  1. Enable WSL.
    Run OptionalFeatures.exe, check Windows Subsystem for Linux (Beta), click OK.
  2. Download the binaries. (stable/latest)
    Important: You have to unblock the zip file before you extract it because of a security mechanism of Windows!
  3. Prepare an Ubuntu pre-installed disk image.
  4. Download the icon file: https://wsldownload.azureedge.net/ubuntu.ico.
  5. Run LxRunOffline /install. Or use other arguments you need, just like you're using LxRun.exe.
  6. Enter the paths of the two files you prepared when prompted.
  7. Finish the installation.

How it works

LxRun.exe uses InternetOpenUrl() in wininet.dll to download the files required. This application uses EasyHook to inject code to its process , and hooks this function and some others related. Then the download requests can be redirected to local files.