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

#1
urie

urie

    Senior Member

  • Member
  • PipPipPipPip
  • 519 posts

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?


How to remove advertisement from MSFN

#2
Gwido

Gwido

    Newbie

  • Member
  • 36 posts
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
Blogs... when they make money apart from advertising I will be the first to jump on the Bandwagon. Until then they are as useless as a podcast.

#3
nDrew

nDrew

    Newbie

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

#4
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,881 posts
  • OS:Windows 7 x64
  • Country: Country Flag
http://technet2.micr...3.mspx?mfr=true

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

Edited by maxXPsoft, 26 January 2007 - 09:35 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

#5
nDrew

nDrew

    Newbie

  • Member
  • 29 posts
Look here :)

http://www.msfn.org/...o...90286&st=20

#6
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,881 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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.

Edited by maxXPsoft, 31 January 2007 - 12:51 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

#7
FireGeier

FireGeier

    Advanced Member

  • Member
  • PipPipPip
  • 405 posts
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
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,881 posts
  • OS:Windows 7 x64
  • Country: Country Flag
: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

Edited by maxXPsoft, 31 January 2007 - 06:48 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

#9
nDrew

nDrew

    Newbie

  • Member
  • 29 posts

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

FireGeier

    Advanced Member

  • Member
  • PipPipPip
  • 405 posts

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
nDrew

nDrew

    Newbie

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

#12
FireGeier

FireGeier

    Advanced Member

  • Member
  • PipPipPip
  • 405 posts
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
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,881 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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
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

#14
FireGeier

FireGeier

    Advanced Member

  • Member
  • PipPipPip
  • 405 posts
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
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,881 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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?
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

#16
FireGeier

FireGeier

    Advanced Member

  • Member
  • PipPipPip
  • 405 posts
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

Edited by FireGeier, 02 February 2007 - 02:28 PM.


#17
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,881 posts
  • OS:Windows 7 x64
  • Country: Country Flag

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

#18
nDrew

nDrew

    Newbie

  • Member
  • 29 posts
It seems to work, thanks!

Edited by nDrew, 03 February 2007 - 02:07 AM.


#19
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,881 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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.
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

#20
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,881 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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
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

#21
FireGeier

FireGeier

    Advanced Member

  • Member
  • PipPipPip
  • 405 posts
Hello maxXPsoft!

First of all, thanks a lot for your feedback!

If you have problems to set the DriversRoot variable using startnet.cmd, than leave the startnet.cmd untouched. So the only enty in startnet.cmd is (lile it is originaly):

wpeinit

Now change the SetDriversRoot.cmd 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

Now create a new file in %windir%\system32 called winpeshl.ini:

[LaunchApp]
AppPath=%Windir%\System32\SetDriversRoot.cmd

Now it should work! Had some feedbacks from tow German guys having the same problem like you. The steps above were working for them.

I don't know, if you have a WinPE-Disk which boots you to a cmd. Than you could simple test the steps above manually, before wasting ISOs.

So far I've not had the time to find out, why it's working for me from startnet.cmd and why it's not working for some others.

Regards,
Martin

#22
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,881 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Its no problem I burn to RW and use the floppy for the xml so i can test in short time
I have winpe.chm and seen this in there

When you exit the Command Prompt window or your custom shell application, Windows PE restarts.

but i'll check it out soon.
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

#23
FireGeier

FireGeier

    Advanced Member

  • Member
  • PipPipPip
  • 405 posts

When you exit the Command Prompt window or your custom shell application, Windows PE restarts.


That is ture, if you leaving it without calling anything else. But if you call the Vista setup.exe wihtin this cmd as last command it will not restart - it will run the setup.

I've tested that many times doing it with adapted boot.wim of Vista-DVD. I never create PE using copype.cmd so far, cause you've the srt-package-problem than.

Regards,
Martin

#24
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,881 posts
  • OS:Windows 7 x64
  • Country: Country Flag
someone mentioned reading the reg and getting this elusive path variable, ok
the only place and I do mean 1 place that the letter of my Dvd appears in the registry during X: is at
[HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices]
"\\DosDevices\\F:"=hex:5c,00,3f,00,3f,00,5c,00,49,00,44,00,45,00,23,00,43,00,\
  64,00,52,00,6f,00,6d,00,5f,00,4e,00,45,00,43,00,5f,00,44,00,56,00,44,00,2b,\
  00,2d,00,52,00,57,00,5f,00,4e,00,44,00,2d,00,33,00,36,00,35,00,30,00,41,00,\
  5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,\
  00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,31,00,30,00,35,00,43,00,5f,00,5f,00,\
  5f,00,5f,00,23,00,34,00,26,00,33,00,38,00,33,00,36,00,64,00,36,00,35,00,34,\
  00,26,00,30,00,26,00,30,00,2e,00,32,00,2e,00,30,00,23,00,7b,00,35,00,33,00,\
  66,00,35,00,36,00,33,00,30,00,64,00,2d,00,62,00,36,00,62,00,66,00,2d,00,31,\
  00,31,00,64,00,30,00,2d,00,39,00,34,00,66,00,32,00,2d,00,30,00,30,00,61,00,\
  30,00,63,00,39,00,31,00,65,00,66,00,62,00,38,00,62,00,7d,00
With F: being my Dvd
Done tried it, done did \\DosDevices\\ and all variations of it
X is stupid, won't search on a *
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

#25
FireGeier

FireGeier

    Advanced Member

  • Member
  • PipPipPip
  • 405 posts
I don't think, that it's set to the registry. That would not make sense IMO, cause the registry get lost after reboot.

I think they call these information with API functions. MS will bring out a tool - SCM (System Configuration Manager) - which will make it possible to take influence of setup procedure and integrating your own scripts. I think this will be very need.

Regards,
Martin




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users



How to remove advertisement from MSFN