2024-07-25 12:00:54 -07:00
This guide has been written on the 24th of july, 2024, this should work for a few years. If this method ever stops working I'll be more than happy to make a guide on how to compile nodejs from source (ofc, patched for Windows Vista/7)
2024-07-23 16:52:02 -07:00
## How to backport
2024-07-23 16:56:44 -07:00
> Steps needed before backporting:
2024-07-23 16:52:02 -07:00
Download CFF explorer
2024-07-23 16:56:44 -07:00
2024-07-23 16:52:02 -07:00
[You can download it from here ](https://ntcore.com/explorer-suite/ )
2024-07-23 16:56:44 -07:00
### The actual backporting:
2024-07-23 16:52:02 -07:00
1. Install NodeJS, even though you haven't patched it you still need to install it (with the system enviorment variables and everything)
After that, open it with CFF Explorer

2. Load node.exe, if it prompts you to load 40mbs into memory and whatever, just click "No"

2024-07-23 16:56:44 -07:00
3. Go into the "import directory" and then select "KERNEL32.DLL"

4. Now find "GetSystemTimePreciseAsFileTime", and replace it with the following:
```QueryPerformanceCounter```
2024-07-23 17:01:46 -07:00

2024-07-23 16:56:44 -07:00
I think you're supposed to press space or something to actually be able to modify the value (whilst it's selected), not sure tho I patched this like 3 days ago
2024-07-23 17:01:46 -07:00
This is what its supposed to look like after all of that:

5. Save it, the save button is on the top left, press "yes" if it asks you about it


2024-07-25 12:00:54 -07:00
6. Congrats, you've just patched NodeJS for Windows Vista/7!
2024-07-23 17:01:46 -07:00

2024-07-23 17:02:13 -07:00
### Please credit me for this method if you plan to use it in YOUR NodeJS fork with windows 7 compatibility or whatever =)