MSFN Forum: %configsetroot% - MSFN Forum

Jump to content



  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

%configsetroot% This is not perfect far from it Rate Topic: -----

#41 User is offline   Dobby 

  • Member
  • PipPip
  • Group: Members
  • Posts: 258
  • Joined: 17-May 04

Posted 10 March 2007 - 01:17 PM

I think this is the problem I was getting actually. That would explain it.

BTW you missed the DO in the FOR line it should be:
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:\DriversRoot.txt SET DriversRoot=%%i:\


Good idea :thumbup

This post has been edited by Dobby: 10 March 2007 - 01:18 PM



#42 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,615
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 March 2007 - 01:49 PM

I take it we set this path directly to the xml, win pe pnp drivers pass, not through the setdriversroot.cmd?

#43 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 11 March 2007 - 08:38 AM

View PostDobby, on Mar 10 2007, 08:17 PM, said:

I think this is the problem I was getting actually. That would explain it.

BTW you missed the DO in the FOR line it should be:
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:\DriversRoot.txt SET DriversRoot=%%i:\


Good idea :thumbup


You're absolutly right Dobby! :thumbup

I've to apologize, cause these are the little syntax errors which can drive you crazy if you don't know anything about it.

@MC:

The setdriversroot.cmd is used to set the environment variable only. Than you can use the environment variable to point to the drive with your drivers folder. So in your Autounattend.xml you'll have a section like this in win pe pass:

<DriverPaths>
	  <PathAndCredentials wcm:keyValue="7c3d475d" wcm:action="add">
			<Path>%DriversRoot%Drivers</Path>
	  </PathAndCredentials>
</DriverPaths>


And the structure of your removable device with the drivers on it looks like this:

USB_Drive:
|
|____ Drivers
|			|___ Driver1
|			|___ Driver2
|			|___ Driver3
|					   |
|					 etc.
|
|____ Autounattend.xml
|
|____ DriversRoot.txt


Hope that'll clear it up!

Regards,
Martin

#44 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,519
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 12 March 2007 - 06:32 AM

If your xml is on that usb stick then it makes it configsetroot so unneeeded the driversroot thing but using the configsetroot means it copies the whole thing down. Thats what we're trying to get away from.

I've been running all mine with xml on root of Dvd but just tried on a floppy. You see I left the \ out of FOR so I can place it. Also I leave out the X since we know X is WinPE root. This worked for me where in the xml I call the Drivers like this as a folder with no .txt file
%DriversRoot%\sources\pnpDrivers
It processes all Sub Folders there and I have them named like 1, 2, 3
Maybe my delay is coming from those other things I put in but this is on a 3Ghz with 1Gb ram.

Windows\System32\SetDriversRoot.cmd
FOR %%i IN (C D E F G H I J K L N M O P Q R S T U V W Y Z) DO IF EXIST %%i:\sources\pnpDrivers SET DriversRoot=%%i:
CLS
ECHO DriversRoot= %DriversRoot%
ECHO DO NOT CLOSE THIS !!!
ECHO DO NOT PRESS ANYKEY !!!
ECHO.
X:\setup.exe
Pause

The thing about this is if it fails you can simply hit the X to close that window or enter if you can see it to quit setup without anything done to drive. If you can't see it hit Shift+F10 and then ALT+Tab to it. Takes about a second or two for setup to start so I see that window about that long.

#45 User is offline   testazzo 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 24-March 06

Posted 27 November 2007 - 11:56 AM

Hi all :)

This is my solution without change anything in boot.wim

<!-- Add Drivers -->
	<RunSynchronous>
	   <RunSynchronousCommand>
		  <Order>1</Order>
		  <Path>cmd.exe /X /C "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\sources\pnpDrivers SET DriversRoot=%i:\&& start /W ..\Setup.exe"</Path>
		  <Description>Aggiunta dei drivers PNP per iinstallazione</Description>
	   </RunSynchronousCommand>
	</RunSynchronous>
<!-- Run PErsonal procedure -->
	<RunSynchronous>
	   <RunSynchronousCommand>
		  <Order>2</Order>
		  <Path>cmd.exe /X /C "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\sources\$OEM$\Install\PassoWinPE.cmd start /W %i:\sources\$OEM$\Install\PassoWinPE.cmd"</Path>
		  <Description>Esecuzione al passo windowsPE</Description>
	   </RunSynchronousCommand>
	</RunSynchronous>




Cya :hello:

This post has been edited by testazzo: 27 November 2007 - 11:57 AM


Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy