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

#1 User is offline   urie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 517
  • Joined: 30-July 03

Posted 25 January 2007 - 07:24 PM

Quote

Using %configsetroot% copies whole DVD to windows\configsetroot also all over the registry :wacko:


<component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<DriverPaths>
				<PathAndCredentials wcm:action="add" wcm:keyValue="1">
					<Path>%configsetroot%\pnpDrivers</Path>
				</PathAndCredentials>
			</DriverPaths>
		</component>

[attachment=16240:ConfigSetRoot.png]

Any one else noticed this or have a solution?


#2 User is offline   Gwido 

  • Newbie
  • Group: Members
  • Posts: 36
  • Joined: 21-January 07

Posted 25 January 2007 - 11:37 PM

I had a somewhat similar scenario today,

What i found is that you should not have your source in the root of the config set, rather only keep the required files you need in there. My problem was I had my install.wim file in there and when I did a capture of my generalised drive I could not work out why it had blown out from 2.5 Gig to 6.8 Gig.

Surprise, surprise it was copied to the %configsets% folder.

Hope that helps.

Gwido

#3 User is offline   nDrew 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 29-January 05

Posted 26 January 2007 - 01:17 AM

Is there a substitution for %configsetroot%? I heard that there's some %CDRoot% variable....is it true?

#4 User is offline   maxXPsoft 

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

Posted 26 January 2007 - 09:33 AM

http://technet2.microsoft.com/WindowsVista...3.mspx?mfr=true

Quote

Important:
If a configuration set is used during Windows Setup, all the contents at the root of the media where the answer file exists are copied to the Windows installation. If there are many files and folders at the same level as the answer file, Windows Setup copies all the files and folders to the Windows installation. Be aware that this might slow down installation, and, in some cases, you might run out of disk space.

blows the whole configsetroot out of the water for putting on the dvd. Probably ok if you copied your drivers and xml to a usb stick

This post has been edited by maxXPsoft: 26 January 2007 - 09:35 AM


#5 User is offline   nDrew 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 29-January 05

Posted 28 January 2007 - 09:03 PM

Look here :)

http://www.msfn.org/board/index.php?showto...90286&st=20

#6 User is offline   maxXPsoft 

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

Posted 31 January 2007 - 12:49 AM

Lets get away from that because
:puke: configsetroot don't work cause it copies the whole dvd down to the windir, :puke:

Yes all of us been fighting this awhile till the configsetroot thing which turned out no good

1 thing I do is mountrw the boot.wim and put the drivers in there and unmount/export
then all you need is the X:\sources\pnpdrivers during PE for BOOT critical drivers which means the drivers Vista don't have, i only have 3 at this time so I add all 4 of them regardless
I personally choose to add the full X path for each of my drivers
X:\sources\pnpdrivers\1
X:\sources\pnpdrivers\2
You can see from the log file it parses each dir which to me is better than risk a mistake on X:\sources\pnpdrivers

Now the bad part, I'm not sure exactly when or I do know its after it reboots, X no longer exists, so now you need a FULL path to dvd\sources\pnpdrivers.

I've been trying to get around this FULL Path as everyone but,
might note if FULL Path is included in the Microsoft-Windows-PnpCustomizationsWinPE then all drivers appear to be installed at booting desktop

I've had some mixed results with my Vid card having it's basic drivers installed but not the Nvidia Ctrl Panel in Display properties.
Thats after about maybe 15 tests just over this past weekend searching for the %variable% will put us in paydirt
MS left us out in the cold on this one but they lack to understand, if they missed dotting 1 i I will or someone will figure this out.

This post has been edited by maxXPsoft: 31 January 2007 - 12:51 AM


#7 User is offline   FireGeier 

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

Posted 31 January 2007 - 06:18 AM

To set a global %Variable% we would need to know, how Win PE does handle the environment.

It's not reading from HKLM\System\CurrentControlSet\Control\Session Manager\Envrionment. It's may reading it before starting but not while PE is running. So far I've found no way to "refresh" the environment and let it read changes from the Reg-Key above. But I don't know to much about PE. So maybe sombody else knows better...

Martin

#8 User is offline   maxXPsoft 

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

Posted 31 January 2007 - 06:47 AM

:P IBS Callback_WinPE_SetSourceMediaInfo:Sources folder path is [F:\Sources]
but no combo of %sources% worked, I crashed and sat there and tried every environment I can think of..
I'll look at the registry once again next try later today

This post has been edited by maxXPsoft: 31 January 2007 - 06:48 AM


#9 User is offline   nDrew 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 29-January 05

Posted 31 January 2007 - 10:32 AM

View PostmaxXPsoft, on Jan 31 2007, 06:47 AM, said:

:P IBS Callback_WinPE_SetSourceMediaInfo:Sources folder path is [F:\Sources]
but no combo of %sources% worked, I crashed and sat there and tried every environment I can think of..
I'll look at the registry once again next try later today


I understood that "issue" with %CDRoot% - sorry for spam. How do U think? If we mount wim, open the registry and find the key that assign the drive letter for CD/DVD drive, can we put there a "O:\" letter for example or Vista choose the letter early in setup?

#10 User is offline   FireGeier 

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

Posted 31 January 2007 - 01:29 PM

Quote

If we mount wim, open the registry and find the key that assign the drive letter for CD/DVD drive, can we put there a "O:\" letter for example or Vista choose the letter early in setup?


Well this solution would be static than, right?! So it will not work for all systems. We need to set the %Variable% once the drive letters are set for all media.

And I'm looking for a solution during WinPE pass. Later passes will run in driver signing prompt issues.

Does anybody know how WinPE does start? I'm talking about the process before startnet.cmd is executed now.

Martin

#11 User is offline   nDrew 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 29-January 05

Posted 31 January 2007 - 11:47 PM

hmm, what to do with the prompts - to do autoit script the choose "Yes, install anyway!" :) ?

#12 User is offline   FireGeier 

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

Posted 01 February 2007 - 04:59 AM

AutoIt is allways the worst case solution IMO. Works, if nothing else is possible.

But I still would prefere a solution during WinPE pass, cause gave me least trouble so far. And meanwhile I'm interested how it works. There must be a solution to set a global environment variable under PE 2.0. I just can't see the right way ATM.

Thanks,
Martin

#13 User is offline   maxXPsoft 

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

Posted 01 February 2007 - 08:19 PM

Wanted to mention I did the inject with same results where only get a partial from the drivers. Theres something we're missing somewhere somehow.
been settin up my new pc so now I can get back to figuring it out since i moved the Nvidia PCI-E into this new one

#14 User is offline   FireGeier 

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

Posted 02 February 2007 - 01:07 PM

I just got the solution for this yesterday... after spending a lot time on it. Mount your boot.wim, you have to mount the second subimage:

imagex /mountrw <PathToYourVistaDVD>\sources\boot.wim 2 C:\Mount

Now browse to C:\Mount\Windows\System32 and look for startnet.cmd. Open startnet.cmd with Notepad and enter the following line:

%Systemroot%\System32\SetDriversRoot.cmd
wpeinit

Save the startnet.cmd. Now create a new file in System32 with Notepad and save it as SetDriversRoot.cmd. The SetDriversRoot.cmd should have the following content:

@echo off

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:\

Exit


Save the SetDriversRoot.cmd and than unmount your boot.wim:

imagex /unmount /commit C:\Mount


Now browse to the Root of your VistaDVD and create a new text-file. Label it DriversRoot.txt. Now create your iso.

This will set the variable %DriversRoot% so you can use it during WinPE pass to install drivers directly from DVD. This would work for USB-Stick, too. Than you would have to put the DriversRoot.txt in the Root of your Stick.

Note:
Tested this during WinPE pass driver installation. I'm pretty sure that it will not work in audit mode for example, cause there a some reboots between. But for audit mode you could set a new %DriversRoot% variable I guess.

If it should not work for you, please let me know! :thumbup

Regards,
Martin

#15 User is offline   maxXPsoft 

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

Posted 02 February 2007 - 02:07 PM

last attempt earlier this morning I tried the startnet.cmd but done it backwards from what you attempted.
set the wpeinit first and it failed
I didn't call a cmd only the variable initialization
was about to reverse my actions and urie pointed me to this, will try with different approach

Did all your drivers Install with that?

#16 User is offline   FireGeier 

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

Posted 02 February 2007 - 02:27 PM

Well I don't need to install to many drivers for my system. A Raid driver, sound driver and video. The video driver is installed at this state without the .exe certainly. So I would need to install this later. But that should not be a problem hopefully.

It's important to call a cmd to set the variable. If I try to set it directly with startnet.cmd than it does not work.

It would be usefull to have a confirmation of that procedure from others. But it works basicly here.

Martin

This post has been edited by FireGeier: 02 February 2007 - 02:28 PM


#17 User is offline   maxXPsoft 

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

Posted 02 February 2007 - 10:17 PM

View PostFireGeier, on Feb 2 2007, 02:27 PM, said:

It's important to call a cmd to set the variable. If I try to set it directly with startnet.cmd than it does not work.

Martin

Will test here in about an hour or 2 but glad I read that first.

#18 User is offline   nDrew 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 29-January 05

Posted 03 February 2007 - 01:15 AM

It seems to work, thanks!

This post has been edited by nDrew: 03 February 2007 - 02:07 AM


#19 User is offline   maxXPsoft 

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

Posted 03 February 2007 - 10:09 PM

haven't tried that yet as I'm havin fits with my sata/raid on new PC but i think I have a plan to cure that soon. I'd thought Vista would recognize the Satas out there.

#20 User is offline   maxXPsoft 

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

Posted 12 February 2007 - 08:26 AM

FireGeier
where you create that and call it right before wpeinit in startnet.cmd but fails cause

I went ahead and added an extra line
Set > A:\Set.txt where I place my xml on a: right now and the variable DriversRoot is showing up in the .txt but when wpeinit starts it sets its own variables so definitely not working here. I do the Set again after it crashes

Share this topic:


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

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



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