Jump to content

Recommended Posts

Posted (edited)

Hi everyone !!!

I've do it step by step, the procedure to install the drivers, but the only thing it does is decompress the driver in their respective folders (audio, video, nic) in c:\driverz, but nothing happens (I mean it doesn't recognize the hardware). I've only tested in Virtual PC, not real installation.

At first, give me an error about "there isn't a necessary component for the installation, the parameter is incorrect" and it saves in setuperr.log, after that continues normally, but the drivers don't install.

This is my winnt.sif :

;SetupMgrTag
[Data]
   AutoPartition=0
   MsDosInitiated="0"
   UnattendedInstall="Yes"
   AutomaticUpdates=1

[Unattended]
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   OemPreinstall=Yes
   OemPnPDriversPath="drivers\Intelinf"
   DriverSigningPolicy=Ignore

   NonDriverSigningPolicy=Ignore

   TargetPath=\WINDOWS
   FileSystem=*
   UnattendSwitch="Yes"
   KeyboardLayout="Ingl‚s (Estados Unidos-internacional)"

[GuiUnattended]
   AdminPassword=*
   EncryptedAdminPassword=NO
   OEMSkipRegional=1
   TimeZone=70
   OemSkipWelcome=1

[UserData]
   ProductKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
   FullName="Pablo Lizarralde"
   OrgName="Home User"
   ComputerName=MSFN

[TapiLocation]
   CountryCode=54
   Dialing=Tone
   AreaCode=11

[RegionalSettings]
   LanguageGroup=1
   Language=00002c0a

[Identification]
   JoinWorkgroup="Grupo_trabajo"

[Networking]
   InstallDefaultComponents=No

[NetAdapters]
   Adapter1=params.Adapter1

[params.Adapter1]
   INFID=*

[NetServices]
   MS_PSched=params.MS_PSched

[NetProtocols]
   MS_TCPIP=params.MS_TCPIP

[params.MS_TCPIP]
   DNS=Yes
   UseDomainNameDevolution=No
   EnableLMHosts=Yes
   AdapterSections=params.MS_TCPIP.Adapter1

[params.MS_TCPIP.Adapter1]
   SpecificTo=Adapter1
   DHCP=Yes
   WINS=No
   NetBIOSOptions=0

[URL]
   Home_Page=http://www.altavista.com

[Components]
   msmsgs=off

   msnexplr=off

   deskpaper=off
   hearts=off
   minesweeper=off
   spider=off
   zonegames=off

[Shell]
   DefaultStartPanelOff=Yes

This are the additions to my txtsetup.sif

[SourceDisksFiles]
setupORG.exe = 1,,,,,,,2,0,0
7za.exe = 1,,,,,,,2,0,0
Presetup.cmd = 1,,,,,,,2,0,0
XRep.exe = 1,,,,,,,2,0,0
DevPath.exe = 1,,,,,,,2,0,0

Obviously, all these files are located in I386 directory

-----------------------------------------

This is my presetup.cmd

@echo off
IF Exist temp.cmd del temp.cmd
IF Exist temp1.cmd del temp1.cmd
IF Exist temp2.cmd del temp2.cmd
for %%a in (d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) do if exist "%%a\$OEM$\Driverz" set drv=%%a\$OEM$\Driverz
for %%i in (%drv%\*.cab %drv%\*.7z) do echo %%i>> temp.log
xrep +T#-c temp.log /%drv%/MD#32%systemdrive%\Driverz/
If Not Exist %drv%\*.cab goto next
for %%i in (%drv%\*.cab) do echo %%i%%iz>> temp1.log
xrep -c temp.log /.CAB
xrep +T#-c temp1.log /%drv%/Expand.EXE#32%drv%/
xrep +T#-c temp1.log /.cab/.cab#32-f:*#32%systemdrive%\driverz/
xrep +T#-c temp1.log /zExpand.EXE#32%drv%/z/
xrep +T#-c temp1.log /.cab#32-f:*#32%systemdrive%\driverzz
:next
If Not Exist %drv%\*.7z goto next1
for %%i in (%drv%\*.7z) do echo %%i%%i>> temp2.log
xrep -c temp.log /.7z
xrep +T#-c temp2.log /%drv%/7za.EXE#32x#32-y#32-o#%systemdrive%\Driverz/
xrep +T#-c temp2.log /.7z7za.EXE#32x#32-y#32-o#%systemdrive%\Driverz/#32%drv%/
:next1
ren *.log *.cmd
cmd /c "temp.cmd"
If Exist temp1.cmd cmd /c "temp1.cmd"
If Exist temp2.cmd cmd /c "temp2.cmd"
set tagfile=\WIN51

for %%p in (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) do if exist "%%p%tagfile%" set CDDRIVE=%%p

%systemdrive%
cd %windir%\system32

REM Scanning for driverdirectories
%systemroot%\system32\DevPath.exe %systemdrive%\\Driverz
if exist setup.exe ren setup.exe setupold.exe
cmd /c "del /f /q *.~xc"
start /WAIT setuporg.exe -newsetup


REM +===================================================+
REM | Comment out what you don't need. These are mostly     |
REM | examples to give you an idea of how it all works.     |
REM +===================================================+



REM +===================================================+
REM | Finding CDROM driveletter                             |
REM |-------------------------------------------------------|
set tagfile=\WIN51
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagfile%" set CDDRIVE=%%i:
REM +===================================================+



REM +===================================================+
REM | We should be already in system32, this is just to be  |
REM | sure                                                  |
REM |-------------------------------------------------------|
%SystemDrive%
cd %SystemRoot%\system32
REM +===================================================+



REM +===================================================+
REM | Trick Windows into identifying the original setup.exe |
REM | deleting the setup.exe will not work, just rename it  |
REM |-------------------------------------------------------|
if exist setup.exe ren setup.exe setupold.exe
if exist setupORG.exe ren setupORG.exe setup.exe
REM +===================================================+



REM +===================================================+
REM | Do other stuff like copying useful tools (optional)   |
REM |-------------------------------------------------------|
cd %SystemRoot%\system32
%CDDRIVE%\OEM\bin\7za.exe x -y -aoa %CDDRIVE%\OEM\data\System32.7z
REM +===================================================+



REM +===================================================+
REM | If you are using compressed drivers unpack them here: |
REM |-------------------------------------------------------|
%SystemDrive%
cd \
%CDDRIVE%\OEM\bin\7za.exe x -y -aoa %CDDRIVE%\OEM\drivers.7z
REM +===================================================+



REM +===================================================+
REM | Scanning for driverdirectories                        |
REM | ONLY USE ONE OF THE FOLLOWING COMMANDS, NOT BOTH!     |
REM |-------------------------------------------------------|
REM | This one is for uncompressed drivers on the CD        |
REM %CDDRIVE%\OEM\bin\SetDevicePath.exe %CDDRIVE%\OEM\drivers
REM | This one is for your unpacked drivers on your HD      |
%CDDRIVE%\OEM\bin\SetDevicePath.exe %SystemDrive%\drivers
REM +===================================================+



REM +===================================================+
REM | Enable installation of unsigned drivers               |
REM |-------------------------------------------------------|
start %CDDRIVE%\OEM\bin\WatchDriverSigningPolicy.exe
REM +===================================================+



REM +===================================================+
REM | Prepare later installations (optional)                |
REM |-------------------------------------------------------|
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY%\998 /V 1 /D "%CDDRIVE%\OEM\bin\t-13_install.cmd" /F
REG ADD %KEY%\999 /V 1 /D "REG ADD %KEY%\zzz999 /V 1 /D %CDDRIVE%\OEM\bin\postinstall.cmd /F" /F
REM +===================================================+



REM +===================================================+
REM | Finally start the installation with the originally    |
REM | given parameters                                      |
REM |-------------------------------------------------------|
start /WAIT setup.exe %*
REM +===================================================+



REM +===================================================+
REM | Cleanup                                               |
RD /Q /S %SystemDrive%\drivers
REM | Reset DevicePath                                      |
REM +====================================================

This is cmdlines.txt

[COMMANDS]
"useraccounts.cmd"
"RunOnceEx.cmd"

[HKEY_CURRENT_USER\Software\mIRC\License]
@="xxxxxx-xxxxxxxx"

[HKEY_CURRENT_USER\Software\mIRC\UserName]
@="Pablo Lizarralde"

This is my useraccounts.cmd

net user "Pablo Lizarralde" /add
net localgroup Administradores "Pablo Lizarralde" /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

This is my autologon.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="Pablo Lizarralde"
"AutoAdminLogon"="1"

Well, I think it's all. Anybody have any idea where is the problem ?

TIA.

Pablo

Edited by prathapml

Posted

Virtual PC uses drivers based on the Intel Chipset for the mainboard and NIC and an S3 video card. You could try incorporating them into your build to use when testing then use the real drivers that relate to the specific chipsets for the actual physical PC you are building.

Posted

please use

 tags where necessary, while posting. Reading a huge mass of tangled text is a put-off to anybody trying to help!

And then, I see you have registry content inside your cmdlines.txt - that will not work. You should have it placed in a .REG file and call it from there thru cmdlines.txt.

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...