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

%configsetroot%

- - - - -

  • Please log in to reply
44 replies to this topic

#26
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
FireGeier, No luck yet
exactly how are they calling setup adfter running the cmd?
I've tried it with /noreboot and every way I can see and it reboots after running that cmd.

Dam MS, why no DVD variable or anything. Be too easy to include that, they set configsetroot and all
well really you think of it there was no CD variable in XP, had to do it ourselves right
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1


How to remove advertisement from MSFN

#27
FireGeier

FireGeier

    Advanced Member

  • Member
  • PipPipPip
  • 405 posts
  • Joined 24-October 05
Do you use an "Exit" command in SetDriversRoot.cmd?

Have you tried setting "Pause" command behind X:\Setup.exe command, like this:

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:\DriversRoot.txt SET DriversRoot=%%i:\

X:\setup.exe

Pause

Regards,
Martin

#28
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
I did use an exit, It don't even show on screen so be no good to do a pause. Not that will matter cause can Alt Tab to it maybe. I'll leave off the exit and see.
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#29
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Exit was it
For a quick test I set to show disk config
PnPIBS: Building the list of drivers in the path F:\sources\pnpDrivers ...
PnPIBS: Found the directory 1.
PnPIBS: Building the list of drivers in the path F:\sources\pnpDrivers\1 ...
I copied the log and done a set
I'll have to run full Install now and see what happens.

BTW, Don't close that cmd window. You going for a reboot!!!
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#30
FireGeier

FireGeier

    Advanced Member

  • Member
  • PipPipPip
  • 405 posts
  • Joined 24-October 05
Hello maxX!

That's right! You dare not use "Exit" cause batch commands a running quickly and so the "Exit" is executed already before setup.exe is started properly. My mistake. I think I have not had explained that well enough the first time. :unsure:

But glad to see that you're on the right way now! :thumbup

Regards,
Martin

#31
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
well several Installs later it won't put the ctrl panel for my Vid driver into the display properties using this method but it does add it in the taskbar.
Now a new twist
I left the xml on root of dvd and didn't use %configsetroot% on anything only the <UseConfigurationSet>true and it copied down the whole DVD to Windows\configsetroot folder. ?? :rolleyes:

When you think you understand whats going on and make a minor change and MS throws curve balls at you.
Back to the drawing board

Edited by maxXPsoft, 24 February 2007 - 08:13 AM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#32
Dobby

Dobby

    Member

  • Member
  • PipPip
  • 258 posts
  • Joined 17-May 04
Did you still have an entry for PnPCustomizations? Just a guess.

#33
Dobby

Dobby

    Member

  • Member
  • PipPip
  • 258 posts
  • Joined 17-May 04
Could someone enlighten me as to the official documentation for this so called configsetroot. I cannot find any info about it and if I try to create a distribution share the PnPCustomizations section ends up containing the path to the configset on my local machine. How is that supposed to work? Does it somehow magically replace that path with the configsetroot path when running PE?

#34
Dobby

Dobby

    Member

  • Member
  • PipPip
  • 258 posts
  • Joined 17-May 04
Well I'll be a *think of something bizzare/funny/ironic*!!

Tried the configuration set thing again and checked the resulting Autounattend.xml file and hey presto there's that %configsetroot% everyone has been banging on about. Shame Windows SIM copies the entire path instead of just the relevant part. Well I guess I won't need to do it again now I know what it should look like although I could swear I tried it before.

Just need to figure out how to sort the Wireless Lan now. Sorry to hear all the woes about this configsetroot but I think it's what I need as I want to have a base DVD image and put all the apps and drivers onto the usb drive. I'm sure I'll be back later with my own sob story when I find it's not working the way I want!

#35
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Using <UseConfigurationSet>true</UseConfigurationSet> under <component name="Microsoft-Windows-Setup"
and leaving the AutoUnattend.xml on root of drive will copy the whole dvd to what I said in Windows, sorta like the I386 of past.
Who wants that? Takes longer to install and everything.
+ side = Using that the OEMs get copied down.

BTW, If you place your AutoUnattend.xml on a USB stick it copies the whole Dir to Windows\Configsetroot.
Not sure about sub folders as when I had that on my floppy there were no Subs

Whats the alternative?
Everything you would place in OEMs just mountrw the image and copy it all over to correct dirs
Remove <UseConfigurationSet>true</UseConfigurationSet> setting and leave the xml on root and
NO Windows\Configsetroot folder
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#36
urie

urie

    Senior Member

  • Member
  • PipPipPipPip
  • 519 posts
  • Joined 30-July 03

Using <UseConfigurationSet>true</UseConfigurationSet> under <component name="Microsoft-Windows-Setup"
and leaving the AutoUnattend.xml on root of drive will copy the whole dvd to what I said in Windows, sorta like the I386 of past.
Who wants that? Takes longer to install and everything.
+ side = Using that the OEMs get copied down.

BTW, If you place your AutoUnattend.xml on a USB stick it copies the whole Dir to Windows\Configsetroot.
Not sure about sub folders as when I had that on my floppy there were no Subs

Whats the alternative?
Everything you would place in OEMs just mountrw the image and copy it all over to correct dirs
Remove <UseConfigurationSet>true</UseConfigurationSet> setting and leave the xml on root and
NO Windows\Configsetroot folder



Hey Maxx, just got you message will talk tommorrow but does this mean your are adding $OEM$ to wim file or just folders couse i know we $OEM$ working before last october. P.S. MSFN is still playing up for me dont know whay to problems on other forums:((

#37
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
I see someone still hungup on Configsetroot instead of trying to move forward.
To go where no man or woman has gone before, to discover new and exotic lands and meet exciting and new people and .......

NO Windows\Configsetroot folder
NO whole DVD copy

Drivers
FireGeier's method in this post with a little MaxXP twist of course
No file needed on root of Dvd, just a path and its all fine :thumbup
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#38
FireGeier

FireGeier

    Advanced Member

  • Member
  • PipPipPip
  • 405 posts
  • Joined 24-October 05
Thanks, for confirmation maxXP!

You can use the same method for your applications setup. I call a SetAppsRoot.cmd during specialize pass, which will set an AppsRoot variable using setx -m. It will put the variable in the machine environment and it will stay there as long till you remove it.

So you can install drivers and applications from where ever you want during any further passes. :thumbup

Note:
If you install drivers in these later passes you will be prompted if you do not use signed drivers.

So my recommendation is, install as many drivers as possible during PE pass - only possible for inf-Drivers.
Install exe-drivers during audit-mode - but take care that they are signed or you need to have a workaraound for the prompt.

Regards,
Martin

#39
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
no file i mean i set the For cmd like this
DO IF EXIST %%i:\sources\pnpDrivers SET DriversRoot=%%i:
with my pnpDrivers folder with all sub folders in the sources folder and then all you need is
%DriversRoot%\sources\pnpDrivers
Yep only .inf in that pass but work's ok.
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#40
FireGeier

FireGeier

    Advanced Member

  • Member
  • PipPipPip
  • 405 posts
  • Joined 24-October 05

no file i mean i set the For cmd like this
DO IF EXIST %%i:\sources\pnpDrivers SET DriversRoot=%%i:


You're rigth maxXP, this is working as good and may be a bit "simpler". :thumbup

Note:
I've found out a little problem that might come up using this method during PE pass. Some Friends told me, that they've had problems using this method. The "funny" thing was, that the Autounattend.xml was detecteted on the stick by Setup, but the DriversRoot Variable was not set before. So I've had the idea that this could be a timing problem and at least it was.

So what happend on their system?
It's very easy. The SetDriversRoot.cmd was finished already before PE Enviroment had seted up the USB-Stick.

Workaround:
If you should have the same problem on your system, all you need to do is: Loop the SetDriversRoot.cmd like this:

@ECHO OFF
SET DriversRoot=NULL

:SearchDriversRoot
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:\
IF NOT "%DriversRoot%"=="NULL" GOTO StartSetup
GOTO SearchDriversRoot

:StartSetup
ECHO DriversRoot=%DriversRoot%
X:\setup.exe

Regards,
Martin

Edited by FireGeier, 26 March 2007 - 03:26 AM.


#41
Dobby

Dobby

    Member

  • Member
  • PipPip
  • 258 posts
  • Joined 17-May 04
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

Edited by Dobby, 10 March 2007 - 01:18 PM.


#42
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,768 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
I take it we set this path directly to the xml, win pe pnp drivers pass, not through the setdriversroot.cmd?

#43
FireGeier

FireGeier

    Advanced Member

  • Member
  • PipPipPip
  • 405 posts
  • Joined 24-October 05

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
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
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.
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#45
testazzo

testazzo

    Newbie

  • Member
  • 14 posts
  • Joined 24-March 06
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:

Edited by testazzo, 27 November 2007 - 11:57 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users