Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

SOLVED: drivers from CD

* * * * * 1 votes

  • Please log in to reply
465 replies to this topic

#376
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
Indeed...

Change
set tagfile=\WIN51
to
set tagfile=\WIN51IP
and it will work ;)

Try to understand what's inside next time! ;)


How to remove advertisement from MSFN

#377
zzzz

zzzz

    Intermediate

  • Member
  • 44 posts
  • Joined 06-March 05

Indeed...

Change

set tagfile=\WIN51
to
set tagfile=\WIN51IP
and it will work ;)

Try to understand what's inside next time! ;)

<{POST_SNAPBACK}>

Thanks :D. Pyron didn't explain through this tag file, so I didn't notice :P.

#378
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
I edited the first post to make his guide clearer on this point.

#379
crazyboot

crazyboot

    Newbie

  • Member
  • 20 posts
  • Joined 27-March 05
Hello !!!

@crazyboot: wow that's some DEEP path! Did you modify the presetup.cmd file to reflect the changes?

<{POST_SNAPBACK}>


Here is (a part of) my presetup.cmd (very close to Pyron's orginial one) :
...

REM +=======================================================+
REM | Finding CDROM driveletter                             |
REM |-------------------------------------------------------|
set tagfile=\SETUP\CD.txt
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 +=======================================================+

....

%CDDRIVE%\SETUP\WINXPPRO\install\Drivers\SetDevicePath.exe %CDDRIVE%\SETUP\WINXPPRO\install\Drivers
start %CDDRIVE%\SETUP\WINXPPRO\install\Drivers\WatchDriverSigningPolicy.exe

...

Edited by Bâshrat the Sneaky, 05 May 2005 - 02:21 AM.


#380
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
Yes, this should work.

I cleaned up your post, no need to post your entire presetup.cmd ;)

#381
crazyboot

crazyboot

    Newbie

  • Member
  • 20 posts
  • Joined 27-March 05
OK, thanks Bâshrat, that's what I've thought.
So, I have to find where the problem lies, before I try your packs, because, I think I will have the same problem with your packs (as they use also Pyron's jobs).

I guess there is a compatbility pb between Pyron's jobs and one of following I use at the same time :
- cmdlines.txt
- svcpack.inf
- runonceex.cmd
- txtsetup.sif
- winnt.inf

Any idea from experimented users ?

Thank you very much and see ya !

#382
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
Eh... Isn't it working now?

#383
crazyboot

crazyboot

    Newbie

  • Member
  • 20 posts
  • Joined 27-March 05
maybe i wasn't clear enough in my past posts :
No, unfortunately, it never worked for me ...

just two more precisions :

WINNT.INF
...
;SetupMgrTag
[Data]
    AutoPartition=0
    MsDosInitiated="0"
    UnattendedInstall="Yes"
    AutomaticUpdates=no

[Unattended]
    UnattendMode=FullUnattended
    OemSkipEula=Yes
    OemPreinstall=Yes
    UnattendSwitch="yes"
    TargetPath=\WINDOWS
    FileSystem=*
    WaitForReboot = No
;    OemPnPDriversPath="Pinnacle\PCTV550\Driver"
;    DriverSigningPolicy=Ignore
    KeyboardLayout="Fran‡ais"


[GuiUnattended]
    AdminPassword="password"
    EncryptedAdminPassword=NO
    OEMSkipRegional=1
    TimeZone=105
    OemSkipWelcome=1
...

RegTweaks i use in the end of RunOnceEx.cmd
...
;Microsoft recommends to reset the DevicePath to "%SystemRoot%\Inf" after setup
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
"DevicePath"=hex(2)& #58;25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
00,74,00,25,00,5c,00,49,00,6e,00,66,00,00,00

;If you used WatchDriverSigningPolicy.exe, you should reset the appropriate keys if you 
;don't want unsigned drivers to be installed without warning (replace 0 by 1)
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Driver Signing]
"Policy"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Driver Signing]
"Policy"=hex:00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Driver Signing]
"BehaviorOnFailedVerify"=dword:00000000
...


#384
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
Well, then you should remove EVERYTHING and start adding things one by one to find the error. I can't help you with that...

#385
crazyboot

crazyboot

    Newbie

  • Member
  • 20 posts
  • Joined 27-March 05
I guess you're right, Bâshrat

The only matter is that EVERYTHING else works perfectly, so that makes me very confusing...

Thank you for trying and for your incredible presence in this forum (and others ;o))

#386
crazyboot

crazyboot

    Newbie

  • Member
  • 20 posts
  • Joined 27-March 05
OK, I m making a minimum unattended installation.
Could you please give me a WINNT.SIF minimum unattended model that works with Pyron's jobs ?

Another question :
In order to replace SVCPACK.INF, if I make a cmd that is executed in the RunOnceEx time, what is the equivalent of qchain.exe ?
Can I just use .cmd like this :
start /wait KBxxxxxx.exe /q /n /z
start /wait qchain.exe
or not ?

#387
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
Eh... for the winnt.sif: I think you can make that yourself... It all depends on your needs. No need to clean up your winnt.sif file btw, only remove/clean other things up.

To the 2nd question: yes, that's correct.

#388
crazyboot

crazyboot

    Newbie

  • Member
  • 20 posts
  • Joined 27-March 05

Does anyone used SetDevicePath.exe @ t-39 succesfully? I'm still looking for a correct way of using it...

@big_gie

this is the correct way... :thumbup
SetDevicePath.exe %cdrom%\Drivers

the 1st part is SetDevicePath.exe is for command for your REGISTRY

and the 2nd part is %cdrom%\Drivers is for the folder were you put the drivers files... :yes:

to test it if its working...
1. Run REGEDIT
2. goto HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion dont close REGEDIT... remember what data is in DevicePath key...
3. execute the SetDevicePath.exe with the Drivers folder path.
(eg. SetDevicePath.exe D:\drivers)
4. go back to REGEDIT then then press F5 to Refresh Registry, look @ DevicePath
if it add the Drivers Folder Path on DevicePath Key then it works good... :thumbup


-=[serialzs]=-

<{POST_SNAPBACK}>


I tried this just to verify...and
4. i still had the value %systemroot%\inf

So, the SetDevicePath.exe is not working ?

#389
crazyboot

crazyboot

    Newbie

  • Member
  • 20 posts
  • Joined 27-March 05
Well, it seems like there is a protection...
because I could do this :
- change manually the key to anyvalue
- use SetDevicePath.exe %SystemRoot%\Inf
and it worked, just like this value is permitted, but not the others...

#390
crazyboot

crazyboot

    Newbie

  • Member
  • 20 posts
  • Joined 27-March 05
Well I tried a new install with no SVCPACK and it didn't worked neither.
Then I tried another one, with much smaller PATH, and the result was the same.
Finally, it seems that SetDevicePath.exe is not wotking in my computer at all, because the only way it work is to set it to %SystemRoot%\Inf when initally not equal to %SystemRoot%\Inf

Help please ! Is there something I can do to check SetDevicePath.exe (and possible issues) furtherer ?

Thank you very much in advance !!!

#391
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
Start from a EMPTY/clean UWXPCD. ONLY add drivers through this method, and I'm sure it will work ;) It's been working for more than half a year for all my DriverPack users so...

#392
evilvoice

evilvoice

    Ditchy McAbandonpants

  • Member
  • PipPipPipPipPip
  • 946 posts
  • Joined 27-January 04
I have also noticed that setdevicepath will only allow %systemroot%\inf as I have tried many other ways to get anything else to work...I ONLY use Ryans Update Pack and this Driver setup...it worked tons of times before, just not anymore...is there something that is possibly stopping this from working?
When I spotted this little cutie with some sex appeal. I winked at her, she gave me a look like I'm a booger. I thought b***h, I'd rather spend my money on a hooker. Then a bright idea ran across my mind, if I could swipe a manikin I'd have a freak all the time.

#393
crazyboot

crazyboot

    Newbie

  • Member
  • 20 posts
  • Joined 27-March 05

Okay, I created my own, and this one definitely works for me. Just modify the 3 values in the begin of my script. The driver_prefix is just the name that should be prefixed for every folder that contains an INF-file.
The drivers_path and winnt_file should be surrounded by quotes if you have spaces in your path. Make sure you've downloaded nircmd.

CODE@echo off

set drivers_path=D:\xp_unattend\$oem$\$1\drivers
set drivers_prefix=drivers
set winnt_file=D:\xp_unattend\i386\winnt.sif

call :traverse %drivers_path% %drivers_prefix%
nircmd.exe inisetval %winnt_file% "Unattended" "OemPnPDriversPath" "~q%newPath%~q"
goto :eof


:traverse
 pushd %~f1
 if EXIST *.inf (
   if NOT DEFINED newPath (
     set newPath=%~2
   ) else (
     call set newPath=%%newPath%%;%~2
   )
 )
 for /d %%I in (*) do (
   call :traverse "%%I" "%2\%%I"
 )
 popd
goto :eof


Hello everybody,

@Bashrat : yes I already tried to the everything again, since the beginning and without anything that is not needed, but it's still not working...

@Evilvoice : finally someone who's got the same problem ! I am not insane (just a little crazy) ;o))

Well, I ve found this alternative in an other topic, but even if they say that's the same than Pyron's it seems there is a BIG difference :

- Pyron's SetDevicePath.exe scan recursively its argument - which is a folder, memorising as many lines as there are sublfolders with INF files. The result is used to update REGISTRY ENTRY Device Path. No need for WINNT.SIF !

- This one do exactly the same but the result is used to update WINNT.SIF, more precisely, the line OemPnPDriversPath...

But, correct me if I'm wrong (and it is possible that I am, as I am not a programmer), it seems however to me that it s much more complicated to make a code to scan than to update ? So I was asking myself is there a way to change a little this script and make it do exactly the same thing than SetDevicePath.exe ?

#394
beb

beb
  • Member
  • 2 posts
  • Joined 11-May 05
Hallo , has somebody sources of the WatchDriverSigningPolicy.exe???

#395
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
Check the first post...

#396
paull2k

paull2k
  • Member
  • 2 posts
  • Joined 21-December 03
Okay, I am completely lost as to what it is I am doing wrong here.
First off, I have my cd setup like this:
WIN51
WIN51IP
WIN51IP.SP1
I386
$OEM$\RunOnceEx.cmd
--$1$
----install
----drivers\000_chipset
----drivers\001_graphics
----drivers\002_sound
----drivers\SetDevicePath.exe
----drivers\WatchDriverSigningPolicy.exe

When I try to run the Windows XP Setup in VMWare 5, things appear to go fine, until it gets to the part where it runs presetup.cmd. I'm thinking this is where the trouble area is. I have it setup as follows:
set tagfile=\WIN51IP
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:

%CDDRIVE%\$OEM$\$1\Drivers\SetDevicePath.exe %CDDRIVE%\$OEM$\$1\Drivers
start %CDDRIVE%\$OEM$\$1\Drivers\WatchDriverSigningPolicy.exe

I suspect it's something fairly simple, looked over the guides many times and have not made much progress at all. If someone could point me in the right direction, it would be very much appreciated. Thanks.

#397
beb

beb
  • Member
  • 2 posts
  • Joined 11-May 05
I need C-source of the WatchDriverSigningPolicy ( see Post #16 , WatchDriverSigningPolicy.cpp ( 2.91k ) , but file was removed(?) ). Thank you.

#398
JuMz

JuMz

    Advanced Member

  • Member
  • PipPipPip
  • 466 posts
  • Joined 09-August 04
Hey guys

I combined Pyron's method and am using winPE to install XP Pro. During the text portion of the setup, it says that it is unable to find setupORG.exe and presetup.cmd

Once I press ignore on both, the setup installs the rest of the files. Now when the GUI portion is about to start, it just continously reboots, which makes sense, since it is searching for presetup.cmd which was not copied....

Any advice?

And yes, both files are in the I386 folder...

#399
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
Did you list the files in your txtsetup.sif AND in your dosnet.inf? This last one is required if you use WinPE! ;)

#400
JuMz

JuMz

    Advanced Member

  • Member
  • PipPipPip
  • 466 posts
  • Joined 09-August 04

Did you list the files in your txtsetup.sif AND in your dosnet.inf? This last one is required if you use WinPE! ;)

<{POST_SNAPBACK}>



According to pyron, I have added the appropriate entries in the txtsetup.sif, That is why its asking for the files to begin with.

No one said anything about a dosnet.inf, I'll try it out

But just in case, any other suggestions? Thanks for your quick response btw

I'm a big fan of your work and a long time reader of the forums, just don't post very much! :)


OHH!, where do I add them in the dosnet.inf




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users