Lauri Kenttä
022ea9b93b
Log image dimensions when installing
2024-04-20 21:31:19 +03:00
Lauri Kenttä
697c57355b
Disable old version before copying files
...
Apparently some people still have the obsolete v1.5.1 installed
and manage to break things by copying v2.x config in place.
2024-04-11 17:46:13 +03:00
Lauri Kenttä
da16365508
Report if BCDEdit is not working
...
One possible cause for BCDEdit failure is Windows error 0x800703EE.
"The volume for a file has been externally altered so that the opened file is no longer valid."
Suggested solutions include disabling antivirus or backup software.
2024-04-11 17:46:13 +03:00
Lauri Kenttä
39596aadfc
Don't try to remove non-existent dir.
2024-01-20 12:43:00 +02:00
Lauri Kenttä
ea70f3ce79
Disable before enabling, and default to BCDEdit
2023-12-31 18:29:48 +02:00
Lauri Kenttä
a44b929012
Fix a shim error caused by bad load options data
...
Shim expects a filename or nothing in the load options.
To avoid an error message during boot, do several things:
When creating the NVRAM entry, use empty load options. The current
string ("HackBGRT\0") was just a decoration, and it's luckily ignored
by shim because the length is odd.
When creating the entry with BCDEdit, manually fix the load options.
The load options in BCDEdit entries start with "WINDOWS\0" followed
by UINT32 version, as seen in ReactOS struct BL_WINDOWS_LOAD_OPTIONS.
The version is 1, but BCDEdit seems to be happy with a higher number.
By setting this version to 'X' (0x58), the string becomes a valid
UCS-2 file name. Update the installer so that the HackBGRT loader is
installed with this weird file name.
The reason why the load options cannot be deleted completely is that
BCDEdit will recreate the entry on next boot if it doesn't find the
entry it just tried to create.
See: https://github.com/rhboot/shim/pull/621
See: https://github.com/reactos/reactos/blob/v0.4.7/boot/environ/include/bl.h#L911
2023-12-31 18:20:27 +02:00
Lauri Kenttä
9948e5a306
Fix BCDEdit dry run and add more logging
2023-12-31 17:50:14 +02:00
Lauri Kenttä
c6108ffd62
Warn about old .Net version if methods are missing
2023-12-20 18:29:25 +02:00
Lauri Kenttä
6dc447a8ce
Try to avoid some .Net Framework 4.8 features
2023-12-20 18:29:25 +02:00
Lauri Kenttä
5ec17a49e8
Detect ARM arch from MS loader
2023-12-20 18:29:25 +02:00
Lauri Kenttä
294da9c069
Get rid of \EFI\HackBGRT\ in config.txt
2023-12-16 15:13:05 +02:00
Lauri Kenttä
74a143e723
Make BitLocker detection more reliable
2023-11-27 18:57:08 +02:00
Lauri Kenttä
ba72b90082
Add logging to verify entry creation
2023-11-27 15:19:46 +02:00
Lauri Kenttä
466ab69c48
Use shim 15.7 to support Secure Boot
...
Use shim-signed and shim-helpers-{arch}-signed from Debian:
https://packages.debian.org/bookworm/shim-signed
2023-11-17 23:24:58 +02:00
Lauri Kenttä
db934099df
Gather log during boot
2023-11-17 23:13:12 +02:00
Lauri Kenttä
e93ed54cb2
Make setup menu shorter
2023-11-17 22:47:29 +02:00
Lauri Kenttä
be8a5d35d2
Sign the EFI files
2023-11-17 22:26:43 +02:00
Lauri Kenttä
2366fc8b98
Warn about Fast Startup (Hiberboot)
2023-11-16 22:56:10 +02:00
Lauri Kenttä
e04ba3e451
Log boot entries during setup
2023-11-16 22:07:08 +02:00
Lauri Kenttä
1058f3e2b4
Log BGRT contents during setup
2023-10-04 15:25:03 +03:00
Lauri Kenttä
33e4450d19
Check that BitLocker is disabled
2023-09-10 23:03:50 +03:00
Lauri Kenttä
d2bac39680
Add assembly information to setup.exe
2023-09-10 15:43:04 +03:00
Lauri Kenttä
a4c917294c
Add option to boot to firmware
2023-09-10 15:43:04 +03:00
Lauri Kenttä
d6da4b7cee
Support creating boot entry with bcdedit
2023-09-10 15:42:18 +03:00
Lauri Kenttä
f2185f624d
Detect issues with boot= option
2023-09-10 15:02:58 +03:00
Lauri Kenttä
e44ce9f5ee
Add logging
2023-09-10 15:02:58 +03:00
Lauri Kenttä
5f3c6afc23
Remove BootLoaderInfo class
2023-09-10 15:02:58 +03:00
Lauri Kenttä
1fa53f3f06
Remove SetupHelper class
2023-09-10 15:02:58 +03:00
Lauri Kenttä
8301a16ca8
Support arch=... parameter, improve auto-detection
2023-09-10 15:02:58 +03:00
Lauri Kenttä
7dbdf33ea8
Create an own entry, don't replace MS boot loader
2023-09-10 15:02:58 +03:00
Lauri Kenttä
dfb5b916ed
Elevate privileges only when needed
2023-09-10 15:02:58 +03:00
Lauri Kenttä
267af0bd9c
Support dry run in the installer
2023-09-10 15:02:58 +03:00
Lauri Kenttä
be5894b387
Check for HackBGRT string when disabling old version
2023-09-10 15:02:58 +03:00
Lauri Kenttä
199650a567
Don't access ESP before showing the menu
2023-09-10 15:02:58 +03:00
Lauri Kenttä
31172f71ca
Add support for quiet setup
2023-09-10 15:02:58 +03:00
Lauri Kenttä
990f245ac9
Convert images when installing
2023-09-09 17:55:44 +03:00
Lauri Kenttä
dfadf67a21
Configure before installing
2023-09-09 17:55:44 +03:00
Lauri Kenttä
691fbd164b
Improve path handling for platform independency
2023-09-09 17:55:39 +03:00
Lauri Kenttä
fa0f846f79
Implement rebooting to UEFI setup
2017-09-30 22:41:00 +03:00
Lauri Kenttä
b469b600ba
Reorder the setup process a bit
2017-09-30 22:41:00 +03:00
Lauri Kenttä
f7fa54cfee
Move Secure Boot handling to another function
2017-09-30 21:23:12 +03:00
Lauri Kenttä
e092c4768c
Add throwable for graceful exiting
2017-09-30 16:41:25 +03:00
Lauri Kenttä
7ad4762a3d
Improve ESP detection and move to another file
2017-09-30 16:40:17 +03:00
Lauri Kenttä
cea656631a
Reorder some BootLoaderInfo code
2017-09-30 15:40:28 +03:00
Lauri Kenttä
1b6b17ec9a
Move some helpers to SetupHelper class
2017-09-30 15:39:52 +03:00
Lauri Kenttä
8921bafa90
Check Secure Boot status before installing
2016-12-22 21:43:50 +02:00
Lauri Kenttä
3da9e1818a
Add git version to setup.exe
2016-06-05 12:42:37 +03:00
Lauri Kenttä
ff838ec0f6
Automatically relaunch the installer as admin
2016-06-05 12:42:37 +03:00
Lauri Kenttä
a627895bfb
Reimplement the installer with C#
...
The new installer includes better error handling and automatic
architecture detection to support both x86-64 and IA-32.
2016-06-05 12:42:37 +03:00