Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PKGMGR

Featured Replies

Hi all,

Does PkgMgr.exe work from *inside* WinPE?

Here's what I'm trying to do:

1) Create baseline image

2) Sysprep/Capture

3) Boot WinPE image (which includes various tools - imagex, pkgmgr etc)

4) Format hard disk

5) Imagex /apply WIM

6) Copy drivers to C:\OEM\Mouse, C:\OEM\Video etc

6) Use PkgMgr to inject drivers.

Stages 1-5 seems to work fine.

Stage 6 crashes and burns :wacko:

I *think* I have the XML and commands correct:

XML snippet:


<settings pass="offlineServicing">
<component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<DriverPaths>
<PathAndCredentials wcm:keyValue="1">
<Path>c:\oem</Path>
</PathAndCredentials>
</DriverPaths>
</component>
</settings>

PkgMmgr command:


pkgmgr /o"c:\;c:\windows" /n:c:\unattend.xml /l:"c:\log2.txt"

And the resulting log file:


2007-01-31 10:02:54, Info CBS Pkgmgr: called with: "pkgmgr /o:"c:\;c:\windows" /n:c:\unattend.xml /l:"c:\log2.txt""
2007-01-31 10:02:54, Info CSI 00000001@2007/1/31:18:02:54.564 WcpInitialize (wcp.dll version 0.0.0.5) called (stack @0x73a7f745 @0xb02dbf @0xafd892 @0xafe27e @0x77273833 @0x7734a9bd)
2007-01-31 10:02:54, Error CSI 00000002@2007/1/31:18:02:54.564 (F) d:\vistartm\base\xml\udom_builder.cpp(932): Error c000a083 [Error,Facility=(system),Code=41091 (0xa083)] originated in function CMicrodomXmlWalker::XmlError expression: (null)
[gle=0x80004005]
2007-01-31 10:02:54, Info CBS Pkgmgr: return code: 0x5b9

I've very probably got something misconfigured, but I'm scratching my head....!

All pointers/suggestions welcome.

Cheers,

Mike

Edited by mdolan


  • Author

Another day, another try... and success!

For those of you who encounter this problem, the solution is:

DO NOT CUT AND PASTE FROM THE WAIK HELP FILE.

For some reason it dumped some invisible junk in the XML file. Not viewable from notepad, but enough to cause the package manager to cough blood and die. It would be slightly nicer if the error messages were a *little* more informative ;-)

So either retype by hand, find a known working sample (in very plain text!), or use the SIM.

Cheers,

Mike

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.