You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-20Lines changed: 32 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,55 +69,67 @@ When booting on a UEFI-based computer, Windows may show a vendor-defined logo wh
69
69
70
70
* Make sure that your computer is booting with UEFI.
71
71
* Make sure that Secure Boot is disabled, unless you know how to sign EFI applications.
72
+
* Make sure that BitLocker is disabled, or find your recovery key.
72
73
73
74
### Windows installation
74
75
75
76
* Get the latest release from the Releases page.
76
77
* Start `setup.exe` and follow the instructions.
77
78
* You may need to manually disable Secure Boot and then retry.
78
-
* The installer will launch Notepad for modifying the configuration.
79
-
* If you need only one custom image, the defaults are fine.
80
-
* Otherwise, check out the examples in the configuration file.
81
-
* The installer will launch Paint for creating the image(s).
82
-
* You can create multiple images by using Save As.
83
-
* Be sure to always use the 24-bit BMP/DIB format.
79
+
* The installer will launch Paint for editing the image.
84
80
* If Windows later restores the original boot loader, just reinstall.
85
81
* If you wish to change the image or other configuration, just reinstall.
82
+
* For advanced settings, edit `config.txt` before installing. No extra support provided!
83
+
84
+
### Quiet (batch) installation
85
+
86
+
* Edit the `config.txt` and `splash.bmp` (or any other images) to your needs.
87
+
* Run `setup.exe batch COMMANDS` as administrator, with some of the following commands:
88
+
* `install` – copy the files but don't enable.
89
+
* `enable-entry` – create a new EFI boot entry.
90
+
* `disable-entry` – disable the EFI boot entry.
91
+
* `enable-bcdedit` – use `bcdedit` to create a new EFI boot entry.
92
+
* `disable-bootmgr` – use `bcdedit` to disable the EFI boot entry.
93
+
* `enable-overwrite` – overwrite the MS boot loader.
94
+
* `disable-overwrite` – restore the MS boot loader.
95
+
* `allow-secure-boot` – ignore Secure Boot in subsequent commands.
96
+
* `allow-bitlocker` – ignore BitLocker in subsequent commands.
97
+
* `allow-bad-loader` – ignore bad boot loader configuration in subsequent commands.
98
+
* `disable` – run all relevant `disable-*` commands.
99
+
* `uninstall` – disable and remove completely.
100
+
* For example, run `setup.exe batch install allow-secure-boot enable-overwrite` to copy files and overwrite the MS boot loader regardless of Secure Boot status.
86
101
87
102
### Multi-boot configurations
88
103
89
104
If you only need HackBGRT for Windows:
90
105
91
-
* Extract the latest release to `[EFI System Partition]\EFI\HackBGRT\`.
92
-
* Set `boot=\EFI\Microsoft\Boot\bootmgfw.efi` in `config.txt`.
93
-
* Point your boot loader to `\EFI\HackBGRT\bootx64.efi`.
106
+
* Run `setup.exe`, install files without enabling.
107
+
* Configure your boot loader to start `\EFI\HackBGRT\loader.efi`.
94
108
95
109
If you need it for other systems as well:
96
110
97
-
* Extract the latest release to `[EFI System Partition]\EFI\HackBGRT\`.
98
-
* Set `boot=\EFI\your-actual-boot-loader.efi` in `config.txt`.
99
-
* Set `\EFI\HackBGRT\bootx64.efi` as your default boot loader with `efibootmgr` or some other EFI boot manager tool.
111
+
* Configure HackBGRT to start your boot loader (such as systemd-boot): `boot=\EFI\systemd\systemd-bootx64.efi`.
112
+
* Run `setup.exe`, install as a new EFI boot entry.
100
113
101
-
On 32-bit machines, use `bootia32.efi` instead of `bootx64.efi`.
114
+
To install purely on Linux, you can install with `setup.exe dry-run` and then manually copy files from `dry-run/EFI` to your `[EFI System Partition]/EFI`. For further instructions, consult the documentation of your own Linux system.
102
115
103
116
## Configuration
104
117
105
-
The configuration options are described in `config.txt`, which should be stored in`[EFI System Partition]\EFI\HackBGRT\config.txt`.
118
+
The configuration options are described in `config.txt`, which the installer copies into`[EFI System Partition]\EFI\HackBGRT\config.txt`.
106
119
107
120
## Images
108
121
109
122
The image path can be changed in the configuration file. The default path is `[EFI System Partition]\EFI\HackBGRT\splash.bmp`.
110
123
111
-
The image must be a 24-bit BMP file with a 54-byte header. That's a TrueColor BMP3 in Imagemagick, or 24-bit BMP/DIB in Microsoft Paint.
124
+
The installer copies and converts files whose `path` starts with `\EFI\HackBGRT\`. For example, to use a file named `my.jpg`, copy it in the installer folder (same folder as `setup.exe`) and set the image path in `config.txt` to `path=\EFI\HackBGFT\my.jpg`.
112
125
113
-
Multiple images may be specified, in which case one is picked at random.
126
+
If you copy an image file to ESP manually, note that the image must be a 24-bit BMP file with a 54-byte header. That's a TrueColor BMP3 in Imagemagick, or 24-bit BMP/DIB in Microsoft Paint.
114
127
115
-
## Recovery
128
+
Advanced users may edit the `config.txt` to define multiple images, in which case one is picked at random.
116
129
117
-
If something breaks and you can't boot to Windows, you have the following options:
130
+
## Recovery
118
131
119
-
* Windows installation (or recovery) media can fix boot issues.
120
-
* You can copy `[EFI System Partition]\EFI\HackBGRT\bootmgfw-original.efi` into `[EFI System Partition]\EFI\Microsoft\Boot\bootmgfw.efi` by some other means such as Linux or Windows command prompt.
132
+
If something breaks and you can't boot to Windows, you need to use the Windows installation disk (or recovery disk) to fix boot issues.
0 commit comments