Here is how you can recover your SWBF code:
On start menu, select "Run" and type in "regedit"
Search for "lucas", it will take 10-15 tries to get to the correct spot.
Or you can find the location in regedit at:
My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\LucasArts\Star Wars Battlefront\1.0
What you are looking for is the CD Key
You will see under Data, your code which is a group of five, 4-digit values
xxxx-xxxx-xxxx-xxxx-xxxx
write this down, it is your CD key.
Buckler
Little add-on for the Mac side:
Right click on the Star Wars Battlefront icon in Finder. Click on package contents --> contents --> Resources --> cdkey.txt There it is. This after you've installed SWBF also.
Thank you led, very useful.