Skip to content

Commit

Permalink
Execute (filename).original.efi instead of hardcoded bootx64_original…
Browse files Browse the repository at this point in the history
….efi
  • Loading branch information
manatails committed Aug 3, 2020
1 parent 468a414 commit 802c7ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions MdeModulePkg/Application/UefiSeven/UefiSeven.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,13 @@ UefiMain (
// Check if we can chainload the Windows Boot Manager.
//
EfiFilePath = PathCleanUpDirectories(ConvertDevicePathToText(UefiSevenImageInfo->FilePath, FALSE, FALSE));
Status = GetFilenameInSameDirectory(EfiFilePath, L"bootx64_original.efi", (VOID **)&LaunchPath);
Status = ChangeExtension(EfiFilePath, L"original.efi", (VOID **)&LaunchPath);
FreePool(EfiFilePath);
if (!EFI_ERROR(Status) && FileExists(LaunchPath)) {
PrintDebug(L"Found Windows Boot Manager at '%s'\n", LaunchPath);
} else {
PrintError(L"Could not find Windows Boot Manager at '%s'\n", LaunchPath);
PrintError(L"Rename the original bootx64.efi from efi\\boot\\ to bootx64_original.efi\n");
//PrintError(L"Rename the original bootx64.efi from efi\\boot\\ to bootx64.original.efi\n");
PrintError(L"Press Enter to continue.\n");
WaitForEnter(FALSE);
}
Expand Down
2 changes: 1 addition & 1 deletion MdeModulePkg/Application/UefiSeven/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
#ifndef __VERSION_H
#define __VERSION_H

#define VERSION L"1.20"
#define VERSION L"1.21"

#endif
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Int10h handler comes with a macro, when enabled before compiling, that will enab

## Usage instructions
1. Prepare Windows 7 installation USB Drive
2. Rename bootx64.efi at (UsbDrive)\EFI\Boot\ to bootx64_original.efi
2. Rename bootx64.efi at (UsbDrive)\EFI\Boot\ to bootx64.original.efi
3. Unpack bootx64.efi from UefiSeven archive and copy it to (UsbDrive)\EFI\Boot\
4. (Optional) Copy UefiSeven.verbose to the same directory to enable verbose mode
5. After Installation, follow steps 2-4 for the EFI partition of your system drive using an EFI Shell
Expand Down

0 comments on commit 802c7ff

Please sign in to comment.