I had to make several changes to successfully install:
1. I copied everything from my original location of C:\download\microsoft\SharePointContosoRI\ to C:\spg\, which eliminated the PathTooLongException.
2. I had to edit C:\spg\Setup\PartnerPortal\SupportingFiles\00_Parameters.bat to remove the "REM" in front of the following line:
REM =====START SET path if user try to run individual Files ===============================================
IF "%SourceFolder%"=="" GOTO SetSourceFolder
REM ==== set SQLserverName for SQL Server Instance to install ContosoFBAdb (for FBA roles and members) ====
if exist "%ProgramFiles%\Microsoft Office Servers\12.0\Data" goto OFFICESERVERS (THIS IS BAD ASSUMPTION #1)
if exist "%ProgramFiles(X86)%\Microsoft Office Servers\12.0\Data" goto OFFICESERVERS (THIS IS BAD ASSUMPTION #2)
REM set SQLserverName=%computername%\OFFICESERVERS
REM set SQLserverName=%computername%\SQLExpress
REM set SQLserverName=%computername% <----- remove the REM from the beginning of this line to overcome BAD ASSUMPTIONS #1 and #2 above
The reason I had to make the above change it that I normally install SQL Server 2005 Enterprise Edition and then SQL Server 2005 SP3 afterwards.
Your install erroneously assumes that if there is a Data directory underneath the 12 hive that the default SQL Server instance name is OFFICESERVERS, which is not true in my case (and I suspect 98% of the rest of the world).
Failure to make the above changes will cause the initial install to not work and even worse, will make any attempt to uninstall fail when it comes time to uninstall the various SQL Server databases because the uninstall routines will erroneously attempt
to connect to the non-existant default SQL Server instance named OFFICESERVERS.