Compiling Grub2Win
You may wish to make changes to the Grub2Win source for your own purposes.
These instructions will show you how to compile your changes.
The compiler will create an updated grub2win.exe module to run the Windows GUI.
Grub2Win is written in the AutoIt language. AutoIt is available for free here:
https://www.autoitscript.com/site/autoit/downloads/
Using AutoIt you can easily write and maintain GUI applications.
These can be compiled to create executables that run natively in Windows.
You must download and install AutoIt to your Windows system before you can compile Grub2Win.
AutoIt source programs are files with a suffix of .au3
The source files for Grub2Win are located in the C:\grub2\winsource directory.
Once you have made your changes, run C:\grub2\winsource\xxcompile.bat.
This will compile the main source file C:\grub2\winsource\grub2win.au3
It will then create the new C:\grub2\grub2win.exe
****************************************************************************
Here is the current list of Grub2Win source files found in C:\grub2\winsource
grub2win.au3
This is the master program for the Windows GUI. It calls all the other modules.
g2common.au3
Defines most global variables. Contains the common functions called by the other modules.
g2basic.au3
Defines most constants and the functions to derive them.
g2backrest.au3
Contains the backup and restore routines.
g2bcd.au3
Contains the BCDEdit functions used to modify the Windows BCD and machine firmware.
g2custom.au3
Contains the routines used to create and edit custom code menu entries.
g2genconfig.au3
Generates the new customized C:\grub2\grub.cfg after the user clicks OK to approve changes.
g2getprev.au3
Parses the previous C:\grub2\grub.cfg file so that the user can make changes.
g2guiedit.au3
Displays the Edit OS details screen and validates user input.
g2guiefi.au3
Displays the EFI Update Log screen and updates the EFI files.
g2guifirmorder.au3
Displays the EFI Firmware Order screen and sets the EFI firmware slot order.
g2guiicon.au3
Displays the Change Icon screen and sets the icon for a menu entry.
g2guimain.au3
Displays the Main Configuration Screen screen and validates user input.
g2guiselection.au3
Displays the Manage Boot Menu screen and sets the menu sequence.
g2language.au3
Determines the current system language and initializes language related variables.
g2settings.au3
Code to parse runtime parameters and maintain the settings data file.
g2syntax.au3
Contains the routines to scan GNU Grub .cfg files for basic syntax errors.
g2theme.au3
Displays the Customize Theme screen and validates user input.
g2update.au3
Contains the routines to check the SourceForge site for Grub2Win version updates.
g2utility.au3
Contains the routines to scan disks and partitions for EFI and diagnostic purposes.
Also creates the partitions report and assigns drive letters to the EFI partitions.
g2xp.au3
Contains the routines unique to Windows XP systems.
setup.download.au3
Downloads the latest GNU Grub and Grub2Win modules from SourceForge.
setup.gui.au3
Displays the Grub2Win Setup screen and installs the files to C:\grub2.
Created with the Personal Edition of HelpNDoc: Free Web Help generator