Jump to content

Line 39 of the INF file is invalid


Recommended Posts

Subject: Line 39 of the INF file is invalid. Setup cannot continue. Press any key to exit.

I have modified (changed) the following 5 files (all located in the I386 directory) for a bootable cd (created in Nero 6.3.1.17 using this site to setup the disc: http://old.bink.nu/bootcd/) Windows 2000 Server with SP3 integrated (yes, I know SP4 is out but this modification is of a working CD I already have):

1. Setupp.ini:

[Pid]

ExtraData=646E77637A6F6D79626A1D94089595

Pid=51873000

To

[Pid]

ExtraData=646E77637A6F6D79626A1D94089595

Pid=51873270

Note: my ExtraData is different

_________________________________________

2. Txtsetup.sif:

[winntDirectories]

To

[WindowsDirectories]

and

DefaultPath=\winnt

To

DefaultPath=\WINDOWS

____________________

3. Layout.INF

[winntDirectories]

To

[WindowsDirectories]

Hivedef.inf

TEMP_DIR="%USERPROFILE%\Local Settings\Temp"

U_SHELL_FOLDERS_PROGRAMS="%USERPROFILE%\Start Menu\Programs"

U_SHELL_FOLDERS_START_MENU="%USERPROFILE%\Start Menu"

U_SHELL_FOLDERS_STARTUP="%USERPROFILE%\Start Menu\Programs\Startup"

U_SHELL_FOLDERS_CACHE="%USERPROFILE%\Local Settings\Temporary Internet Files"

To

TEMP_DIR="%USERPROFILE%\Local Settings\Temp"

U_SHELL_FOLDERS_PROGRAMS="%SYSTEMDIR%\Documents and Settings\All Users\Start Menu\Programs"

U_SHELL_FOLDERS_START_MENU="%SYSTEMDIR%\Documents and Settings\All Users\Start Menu "

U_SHELL_FOLDERS_STARTUP="%SYSTEMDIR%\Documents and Settings\All Users\Start Menu \Programs\Startup"

U_SHELL_FOLDERS_CACHE="%WINDIR%\TEMP\Local Settings\Temporary Internet Files"

I made sure not to add extra lines (like returns and such).

________________________________________________

5. winnt.sif: created with http://b0r3d.msfnhosting.com/ (SIF Creator 2.0) is listed below (anything as XXXXX represents a serial number, etc):

;SetupMgrTag

[Data]

Autopartition=0

MsDosInititated="0"

UnattendedInstall="Yes"

[unattended]

UnattendMode=FullUnattended

OemSkipEulA=Yes

OemPreinstall=No

TargetPath=\WINDOWS

Repartition=No

UnattendSwitch="No"

WaitForReboot="No"

OemPnPDriversPath=

DriverSigningPolicy=Ignore

AutoActivate=No

[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=No

OEMSkipRegional=0

TimeZone=020

ProfilesDir="%systemdrive%\Documents and Settings\"

;For Server installs

[LicenseFilePrintData]

AutoMode = "PerServer"

AutoUsers = "9999"

[Display]

BitsPerPel=8

XResolution=800

YResolution=600

Vrefresh=60

[userData]

ProductKey="XXXX-XXXXX-XXXXX-XXXXX-XXXXX"

FullName=XXXXX XXXXX

OrgName=""

ComputerName=""

[TapiLocation]

CountryCode=011

Dialing=Tone

[RegionalSettings]

LanguageGroup=1

Language=00000809

[identification]

JoinWorkgroup=XXXXXXXX

[Networking]

InstallDefaultComponents=No

Note: I renamed the unattend.txt to unattend.bak.

Question: Do I need to rename the setupacc.txt (also in the I386 directory) file as well?

________________________________________________

The Process of installing with these modifications goes as follows:

I reboot the Compaq Presario r3140CA (with 64bit athlon). The cd boots and you are given the prompt: Press any key to boot from CD.

It continues into the setup blue screen (Press F6 to install a third party SCSI or RAID driver…), stops and says:

Line 39 of the INF file is invalid. Setup cannot continue. Press any key to exit.

I then press a key and it cycles back to the beginning of the setup blue screen where the Press F6 to install a third party SCSI or RAID driver…

The original copy I have of this with no modifications seems to install fine (i.e. it is installing now and has not stopped during the: Setup is Loading files (..) and I am able to select the partition (and format if I need to). I have not installed this completely as of yet.

Link to comment
Share on other sites


Yes, that seems right.

The line 39 which is referred to, is that of winnt.sif

Check if your winnt.sif is properly made (or if it has any unnecessary content). See what is present on line39 of your winnt.sif and post it here - or if you corrected it yourself, post the solution (what you did to solve your problem) here to benefit the everybody.

Link to comment
Share on other sites

As I said this before, this is for Windows 2000 Server with SP3 integrated.

I opened the original unattend.txt and added the things I wanted to do manually using notepad instead of the SIF Creator. I saved the file as WINNT.SIF (and renamed unattend.txt to unattend.bak)

Now, I can get the beginning of the gui mode and it says an internal error has occured. setup cannot continue.

Some things that I thought could cause problems:

Do you need both the TXTSETUP.SIF and LAYOUT.INF?

Do you need both the TXTSETUP.SIF and WINNT.SIF?

Additionally:

Looking at the hivedef.inf file where I have changed some of the directories, do I need to make the changes in the LAYOUT.INF and TXTSETUP.SIF files under [winntdirectories] to reflect that?

Directory 45 in this section of LAYOUT.INF and TXTSETUP.SIF is TEMP directory; there is not entry for TEMP\Temporary Internet Files (which I defined in HIVEDEF.INF). I have modified one other section in TXTSETUP.SIF but it is not in this section.

I only have 3 modified files now:

winnt.sif

txtsetup.sif

hivedef.inf

________

WINNT.SIF (xxxxx represents data; it is not actually in the file, also, for the TargetPath = "\WINDOWS"; I also tried using "WINDOWS")

________

;SetupMgrTag

[Data]

Autopartition = "0"

MsDosInititated = "No"

UnattendedInstall = "Yes"

[unattended]

FileSystem = *

Repartition = "No"

Unattendmode = "FullUnattended"

OemSkipEulA = "Yes"

OemPreinstall = "NO"

TargetPath = \WINDOWS

UnattendSwitch = "No"

WaitForReboot = "No"

[userData]

ProductKey = "xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"

FullName = "xxxxx xxxxx"

OrgName = ""

[GuiUnattended]

; Sets the Timezone to Central Standard Time

; Sets the Admin Password to NULL

; Turn AutoLogon ON and login once

OemSkipWelcome = 1

TimeZone = "020"

AdminPassword = *

AutoLogon = Yes

AutoLogonCount = 1

;For Server installs

[LicenseFilePrintData]

AutoMode = "PerServer"

AutoUsers = "9999"

[GuiRunOnce]

; List the programs that you want to lauch when the machine is logged into for the first time

[Display]

BitsPerPel = 8

XResolution = 800

YResolution = 600

VRefresh = 60

[TapiLocation]

CountryCode = 011

Dialing = Tone

[RegionalSettings]

LanguageGroup = 1

Language = 00000809

[Networking]

; When set to YES, setup will install default networking components. The components to be set are

; TCP/IP, File and Print Sharing, and the Client for Microsoft Networks.

InstallDefaultComponents = NO

[identification]

JoinWorkgroup = xxxxxxxx

____________________________

HIVEDEF.INF (Changed lines only)

____________________________

U_SHELL_FOLDERS_PROGRAMS="%SYSTEMDIR%\Documents And Settings\All Users\Start Menu\Programs"

U_SHELL_FOLDERS_START_MENU="%SYSTEMDIR%\Documents And Settings\All Users\Start Menu"

U_SHELL_FOLDERS_STARTUP="%SYSTEMDIR%\Documents And Settings\All Users\Start Menu\Programs\Startup"

U_SHELL_FOLDERS_CACHE="%WINDIR%\TEMP\Temporary Internet Files"

______________________________________________________________

TXTSETUP.SIF (Changed lines only)

DefaultPath=\WINDOWS instead of DefaultPath=\WINNT

______________________________________________

Link to comment
Share on other sites

TXTSETUP.SIF (Changed lines only)

DefaultPath=\WINDOWS instead of DefaultPath=\WINNT

That modification is fine - shouldn't cause any problems.

As for modifying hives, it is risky/buggy; so I won't try to respond about that.

I suppose line 39 and 40 and 41 of your winnt.sif is as below:

[GuiRunOnce]
; List the programs that you want to lauch when the machine is logged into for the first time

Well, you could try removing that section. Maybe the [GuiRunOnce] section cannot be left blank.

In the same way, try eliminating all unnecessary lines/sections from winnt.sif and test the setup after each modification. Do tell us where the problem turned out to be, and how you fixed it.

Link to comment
Share on other sites

You have a file mismatch problem- usually the files ntdll.dll amd smss.exe don't match in i386\ and i386\system32\ on you iso structure. This one is a PITA to figure out because the error isn't in your setup files themselves.

I am very hard headed and would not let this get the better of me.

Link to comment
Share on other sites

Well, I have not tried anything new but I did check the ntdll.dll and smss.exe as was suggested. The one in the i386\system32 is the original from Windows 2000 (12/7/1999) and the compressed one is dated 7/22/2002 located in the i386 directory.

I will uncompress it and copy it to the system32 subdirectory overwritting the exisiting one (I'll keep a backup somewhere) and attempt this sometime this weekend.

Link to comment
Share on other sites

Following the advice of making the two file in i386/system32 match their counterparts in i386 failed. In fact, during the initial setup .. Setup is starting Windows 2000 (gets a STOP screen with a session manager problem). This is a results of the 12/7/1999 file that is originally in i386/system32 which I had made match the 7/22/2002 file in the i386 directory.

I have now returned all the files to the original version. The only file that is new is the WINNT.SIF

Here is my current WINNT.SIF

;SetupMgrTag

[Data]

Autopartition = 0

MsDosInititated = No

UnattendedInstall = Yes

[unattended]

FileSystem = *

Repartition = No

Unattendmode = FullUnattended

OemSkipEulA = Yes

OemPreinstall = NO

TargetPath = WINDOWS

UnattendSwitch = No

WaitForReboot = No

OemPnPDriversPath = "Drivers\000_R3140CA_CHIPSET;Drivers\001_R3140CA_NETWORK;Drivers\002_R3140CA_VIDEO;Drivers\003_R3140CA_AUDIO;Drivers\004_R3140CA_BLUETOOTH;Drivers\005_R3140CA_PCMCIA;Drivers\006_R3140CA_MODEM;Drivers\007_R3140CA_PROCESSOR;Drivers\008_R3140CA_TOUCHPAD;Drivers\009_R3140CA_WIRELESS;Drivers\021_C6631_NETWORK;Drivers\022_C6631_VIDEO;Drivers\023_C6631_AUDIO;Drivers\024_C6631_MODEM;Drivers\025_C6631_BATTERYAID;Drivers\026_C6631_TOUCHPAD"

DriverSigningPolicy = Ignore

[userData]

ProductKey = "ILIED-TOTHE-PUBLIC-ICANT-TOUCH"

FullName = "Jack Assbush"

OrgName = ""

[GuiUnattended]

; Sets the Timezone to Central Standard Time

; Sets the Admin Password to NULL

; Turn AutoLogon ON and login once

OemSkipWelcome = 1

TimeZone = 020

AdminPassword = *

AutoLogon = Yes

AutoLogonCount = 1

[LicenseFilePrintData]

;For Server installs

AutoMode = PerServer

AutoUsers = 9999

[Display]

BitsPerPel = 8

XResolution = 800

YResolution = 600

VRefresh = 70

[TapiLocation]

CountryCode = 011

Dialing = Tone

[RegionalSettings]

LanguageGroup = 1

Language = 00000809

[Networking]

; When set to YES, setup will install default networking components. The components to be set are

; TCP/IP, File and Print Sharing, and the Client for Microsoft Networks.

InstallDefaultComponents = NO

[identification]

JoinWorkgroup = WORKGROUP

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...