Win10 PE + .Net framework 3.5

tiopaladino

New member
Joined
Jun 1, 2016
Posts
2
Hi, I need some help =)

Im trying to build a windows 10 PE with .net support to run an app. Native it comes with .net 4.5 only I guess, but the app is not working.

I tried to use the file Microsoft-Windows-NetFx3-OnDemand-Package.cab that comes with windows 10 disc wit dism but return the message: "The specified package is not applicable to this image."

The log says "Extraction of file: update.ses failed because it is not present in the container"

Here is the dism log:

Code:
 DISM   DISM Package Manager: PID=12052 TID=11528 Routing the command... - CPackageManagerCLIHandler::ExecuteCmdLine
2016-06-01 16:54:28, Info                  DISM   DISM Package Manager: PID=12052 TID=11528 Encountered the option "packagepath" with value "d:\Microsoft-Windows-NetFx3-OnDemand-Package.cab" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2016-06-01 16:54:28, Info                  DPX    Started DPX phase: Resume and Download Job
2016-06-01 16:54:28, Info                  DPX    Started DPX phase: Apply Deltas Provided In File
2016-06-01 16:54:28, Info                  DPX    Ended DPX phase: Apply Deltas Provided In File
2016-06-01 16:54:28, Info                  DPX    Started DPX phase: Apply Deltas Provided In File
2016-06-01 16:54:28, Info                  DPX    Ended DPX phase: Apply Deltas Provided In File
2016-06-01 16:54:28, Info                  DPX    CJob::Resume completed with status: 0x0
2016-06-01 16:54:28, Info                  DPX    Ended DPX phase: Resume and Download Job
2016-06-01 16:54:28, Info                  CBS    Opened cabinet package, package directory: \\?\d:\, sandbox location: \\?\C:\Users\ROMULO~1\AppData\Local\Temp\56A066B0-C7BA-4FE1-8B5E-61F3D601B518\, cabinet location: \\?\d:\Microsoft-Windows-NetFx3-OnDemand-Package.cab, manifest location: \\?\C:\Users\ROMULO~1\AppData\Local\Temp\56A066B0-C7BA-4FE1-8B5E-61F3D601B518\update.mum
2016-06-01 16:54:28, Info                  DPX    Started DPX phase: Resume and Download Job
2016-06-01 16:54:28, Info                  DPX    Started DPX phase: Apply Deltas Provided In File
2016-06-01 16:54:28, Info                  DPX    Ended DPX phase: Apply Deltas Provided In File
2016-06-01 16:54:28, Info                  DPX    CJob::Resume completed with status: 0x0
2016-06-01 16:54:28, Info                  DPX    Ended DPX phase: Resume and Download Job
2016-06-01 16:54:28, Info                  DPX    Extraction of file: update.ses failed because it is not present in the container (\\?\d:\Microsoft-Windows-NetFx3-OnDemand-Package.cab).
2016-06-01 16:54:28, Info                  DPX    DpxException hr=0x80070002 code=0x020109
2016-06-01 16:54:28, Info                  CBS    Not able to add file to extract: update.ses [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2016-06-01 16:54:28, Info                  CBS    Appl: detect Parent, Package: Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10586.0, Parent: Microsoft-Windows-Foundation-Package~31bf3856ad364e35~x86~~10.0.0.0, Disposition = Detect, VersionComp: EQ, BuildComp: GE, RevisionComp: EQ, Exist: present
2016-06-01 16:54:28, Info                  CBS    Appl: detectParent: no parent found, go absent
2016-06-01 16:54:28, Info                  CBS    Appl: detect Parent, Package: Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10586.0, Parent: Microsoft-Windows-ServerCore-Package~31bf3856ad364e35~x86~~10.0.0.0, Disposition = Detect, VersionComp: EQ, BuildComp: GE, RevisionComp: EQ, Exist: present
2016-06-01 16:54:28, Info                  CBS    Appl: detectParent: no parent found, go absent
2016-06-01 16:54:28, Info                  CBS    Appl: Evaluating package applicability for package Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10586.0, applicable state: Absent
2016-06-01 16:54:28, Info                  DISM   DISM Package Manager: PID=12052 TID=11528 Package Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10586.0 with CBS state 0(CbsInstallStateAbsent) being mapped to dism state 1(DISM_INSTALL_STATE_NOTPRESENT) - CDISMPackage::LogInstallStateMapping
2016-06-01 16:54:28, Error                 DISM   DISM Package Manager: PID=12052 TID=11528 The package Microsoft-Windows-NetFx3-OnDemand-Package is not applicable to the image. - CPackageManagerCLIHandler::Private_ProcessPackageChange
2016-06-01 16:54:28, Info                  DISM   DISM Package Manager: PID=12052 TID=11528 Initiating Changes on Package with values: 4, 7 - CDISMPackage::Internal_ChangePackageState
2016-06-01 16:54:28, Info                  CBS    Install/Uninstall of .NetFx3, targetState: Installed
2016-06-01 16:54:28, Info                  CBS    Failed to get package store registry key to load all packages. [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2016-06-01 16:54:28, Info                  CBS    Not able to find NetFx3 package on the system, continue.
2016-06-01 16:54:28, Info                  DISM   DISM Package Manager: PID=12052 TID=11528 CBS session options=0x0! - CDISMPackageManager::Internal_Finalize
2016-06-01 16:54:28, Info                  CBS    Failed to set power request for:Execution [HRESULT = 0x80070032 - ERROR_NOT_SUPPORTED]
2016-06-01 16:54:28, Info                  CBS    Failed to block system sleep [HRESULT = 0x80070032 - ERROR_NOT_SUPPORTED]
2016-06-01 16:54:28, Info                  CBS    Exec: Processing started.  Client: DISM Package Manager Provider, Session: 12052_610751589, Package: Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10586.0
2016-06-01 16:54:28, Info                  CBS    Exec: Using execution sequence: 22
2016-06-01 16:54:28, Info                  CBS    Disabling LKG boot option
2016-06-01 16:54:28, Info                  CBS    Exec: Addsource called, Session: 12052_610751589, Client: DISM Package Manager Provider, from GPO: Yes, Path: \\?\d:\
2016-06-01 16:54:28, Info                  CBS    Perf: Entering stage: Planning
2016-06-01 16:54:28, Info                  CBS    FLOW: Entering stage: Planning 
2016-06-01 16:54:28, Info                  DPX    Started DPX phase: Resume and Download Job
2016-06-01 16:54:28, Info                  DPX    Started DPX phase: Apply Deltas Provided In File
2016-06-01 16:54:28, Info                  DPX    Ended DPX phase: Apply Deltas Provided In File
2016-06-01 16:54:28, Info                  DPX    Started DPX phase: Apply Deltas Provided In File
2016-06-01 16:54:28, Info                  DPX    Ended DPX phase: Apply Deltas Provided In File
2016-06-01 16:54:28, Info                  DPX    CJob::Resume completed with status: 0x0
2016-06-01 16:54:28, Info                  DPX    Ended DPX phase: Resume and Download Job
2016-06-01 16:54:28, Info                  CBS    Opened cabinet package, package directory: \\?\d:\, sandbox location: \\?\C:\WinPE\mount\Windows\CbsTemp\12052_610751589\Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10586.0\, cabinet location: \\?\d:\Microsoft-Windows-NetFx3-OnDemand-Package.cab, manifest location: \\?\C:\WinPE\mount\Windows\CbsTemp\12052_610751589\Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10586.0\update.mum
2016-06-01 16:54:28, Info                  DPX    Started DPX phase: Resume and Download Job
2016-06-01 16:54:28, Info                  DPX    Started DPX phase: Apply Deltas Provided In File
2016-06-01 16:54:28, Info                  DPX    Ended DPX phase: Apply Deltas Provided In File
2016-06-01 16:54:28, Info                  DPX    CJob::Resume completed with status: 0x0
2016-06-01 16:54:28, Info                  DPX    Ended DPX phase: Resume and Download Job
2016-06-01 16:54:28, Info                  DPX    Extraction of file: update.ses failed because it is not present in the container (\\?\d:\Microsoft-Windows-NetFx3-OnDemand-Package.cab).
2016-06-01 16:54:28, Info                  DPX    DpxException hr=0x80070002 code=0x020109
2016-06-01 16:54:28, Info                  CBS    Not able to add file to extract: update.ses [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2016-06-01 16:54:28, Info                  CBS    Appl: detect Parent, Package: Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10586.0, Parent: Microsoft-Windows-Foundation-Package~31bf3856ad364e35~x86~~10.0.0.0, Disposition = Detect, VersionComp: EQ, BuildComp: GE, RevisionComp: EQ, Exist: present
2016-06-01 16:54:28, Info                  CBS    Appl: detectParent: no parent found, go absent
2016-06-01 16:54:28, Info                  CBS    Appl: detect Parent, Package: Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10586.0, Parent: Microsoft-Windows-ServerCore-Package~31bf3856ad364e35~x86~~10.0.0.0, Disposition = Detect, VersionComp: EQ, BuildComp: GE, RevisionComp: EQ, Exist: present
2016-06-01 16:54:28, Info                  CBS    Appl: detectParent: no parent found, go absent
2016-06-01 16:54:28, Info                  CBS    Appl: Evaluating package applicability for package Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10586.0, applicable state: Absent
2016-06-01 16:54:28, Info                  DISM   DISM Package Manager: PID=12052 TID=11500  Error in operation: the package is not applicable. (CBS HRESULT=0x800f081e) - CCbsConUIHandler::Error
2016-06-01 16:54:28, Info                  CBS    Plan: Skipping package since its start state and target state are both absent for package: Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10586.0, current: Absent, pending: Default, start: Absent, applicable: Absent, targeted: Absent, limit: Installed
2016-06-01 16:54:28, Info                  CBS    Exec: Single phase execution, there's no package planned, skip the rest of execution
2016-06-01 16:54:28, Info                  CBS    Exec: Processing complete.  Session: 12052_610751589, Package: Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~x86~~10.0.10586.0 [HRESULT = 0x00000000 - S_OK]
2016-06-01 16:54:28, Info                  CBS    Session: 12052_610751589 finalized. Reboot required: no [HRESULT = 0x00000000 - S_OK]
 
Hi tiopaladino .... and welcome to the forums ....

I've never created a pre-boot environment for a roll-out (or a bootable utility DVD either) ... but the folks at TechNet are longtime experts at that sort of thing.

If you are creating your image using Windows 10 Enterprise, here's an excerpt from their instructions for incorporating .NET 3.5 into an image ...
_______________

Edit the Windows 10 task sequence
The steps below walk you through the process of editing the Windows 10 reference image task sequence to include the actions required to update the reference image with the latest updates from WSUS, install roles and features, and utilities, and install Microsoft Office 2013.

  1. In the Task Sequences / Windows 10 folder, right-click the Windows 10 Enterprise x64 RTM Default Image task sequence, and select Properties.
  2. On the Task Sequence tab, configure the Windows 10 Enterprise x64 RTM Default Image task sequence with the following settings:
    1. State Restore. Enable the Windows Update (Pre-Application Installation) action. Note
      Enable an action by going to the Options tab and clearing the Disable this step check box.
    2. State Restore. Enable the Windows Update (Post-Application Installation) action.
    3. State Restore. Enable the Windows Update (Post-Application Installation) action. State Restore. After the Tattoo action, add a new Group action with the following setting:
      • Name: Custom Tasks (Pre-Windows Update)
    4. State Restore. After Windows Update (Post-Application Installation) action, rename Custom Tasks to Custom Tasks (Post-Windows Update). Note
      The reason for adding the applications after the Tattoo action but before running Windows Update is simply to save time during the deployment. This way we can add all applications that will upgrade some of the built-in components and avoid unnecessary updating.
    5. State Restore / Custom Tasks (Pre-Windows Update). Add a new Install Roles and Features action with the following settings:
      1. Name: Install - Microsoft NET Framework 3.5.1
      2. Select the operating system for which roles are to be installed: Windows 8.1
      3. Select the roles and features that should be installed: .NET Framework 3.5 (includes .NET 2.0 and 3.0)
Important
This is probably the most important step when creating a reference image. Many applications need the .NET Framework, and we strongly recommend having it available in the image. The one thing that makes this different from other components is that .NET Framework 3.5.1 is not included in the WIM file. It is installed from the Sources\SxS folder on the media, and that makes it more difficult to add after the image has been deployed.
TechNet tutorial image.png
Figure 7. The task sequence after creating the Custom Tasks (Pre-Windows Update) group and adding the Install - Microsoft NET Framework 3.5.1 action.

  1. State Restore - Custom Tasks (Pre-Windows Update). After the Install - Microsoft NET Framework 3.5.1 action, add a new Install Application action with the following settings:
    1. Name: Install - Microsoft Visual C++ 2005 SP1 - x86
    2. Install a Single Application: Install - Microsoft Visual C++ 2005 SP1 - x86-x64
  2. Repeat the previous step (add a new Install Application) to add the following applications:
  3. Install - Microsoft Visual C++ 2005 SP1 - x64
  4. Install - Microsoft Visual C++ 2008 SP1 - x86
  5. Install - Microsoft Visual C++ 2008 SP1 - x64
  6. Install - Microsoft Visual C++ 2010 SP1 - x86
  7. Install - Microsoft Visual C++ 2010 SP1 - x64
  8. Install - Microsoft Visual C++ 2012 Update 4 - x86
  9. Install - Microsoft Visual C++ 2012 Update 4 - x64
  10. Install - Microsoft Office 2013 Pro Plus - x86
  11. After the Install - Microsoft Office 2013 Pro Plus - x86 action, add a new Restart computer action.
  12. Click OK.
_______________

As you can see, the tutorial includes a method of including Office 2013 as well. You can find the rest of the tutorial at the following link:
Create a Windows 1 reference image (Windows 1)

If you are using a different version of Windows 10, try a search of TechNet, and I imagine you'll find the instructions for your project.

Cheers
 
P.S. .... pretty funny that the "Create a Windows 10 PE Image" title gets abbreviated to "Windows 1" from the automated link created.... The article truly is for Windows 10, no matter what silliness is introduced by funny forum automated abbreviations
:)
 
Thank you for the reply!

But we dont have AD, so cant use MS tools. I take a look all over the internet, and they all say to use dism and the package included in win10dvd, but I got error every time.
 
Sorry that it is so complicated. Evidently it is difficult to get the .NET 3.5 files into the Sources/SxS folder for whatever reason. If TechNet has a forum for image deployment, that might have some clues.

Good luck!
 
Question - are you trying to build a Windows PE image? If so, and you want .net 3.5 support, you'll have to use a PE image that supports .NET 3.5, which means going back to WinPE 3.0 or 3.1 (Windows 7 / Windows 7 SP1). You can't (in any supported way) inject .NET 3.5 into a PE 10 or 4.x or 5.x image, as those only support running .NET 4.x.

What app requires .NET 3.5 in Windows PE, and can it be updated to work properly with .NET 4.x instead?
 
Hello,

same problem to me.
I tried a different way. Added net fx to on offline image
and used this modified image as base for a Win 10 PE SE and PXE Win Builder.
While, i created the PE SE and PXE images, the builder told me, that i allready have net fx 3.5 installed.

So fare so good - but actually the apps are not running.
No metter, which methode i use: starting from DVD or USB or from the ISO, using EasyBCD.

What i just found - about Win 8 - is here:
Add framework winPE Windows Preinstallation Environment - neeosearch

Maybe, I'll try it - but i dont like to install 3rd party software (Poweriso) , for this project........
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top