Windows 10 Recovery Tools - Bootable Rescue Disk

  1. lx07's Avatar
    Posts : 5,479
    2004
       #311

    cereberus said:
    Thanks Kyhi for the excellent tip that gave me a clue how to add stuff - I am now going to add other stuff and shortcuts etc..
    Perhaps another thread for this? How to change Khyi's PE disk

    Anyway from what I can figure out (silence - I kill you) creating a shortcut isn't enough. I tried it (adding them to Public or Default desktop) and it didn't work.

    What you can do though (after changing the programs) is update F:\mount\Windows\system32\Win10PE.cfg to add the new shortcuts (and remove the old ones).

    I've no idea of the structure of this file or what it does exactly (except it seems to run when the image boots up) but copying the structure of what is there seems to work. For example if you want to change "FireFox" to "Palemoon" just search/replace.

    If you don't want CCleaner delete all references to it.

    If you want to add a new program add the lines
    Code:
    HD Tasks\MBR|Whatever|X:\Program Files\Whatever\Whatever.exe||	
    Desktop|Whatever|X:\Program Files\Whatever\Whatever.exe||
    As long as the program is portable it seems to work.

    As for printing I don't own one and still go to the internet café if I really have to print or fax something so I can't help with that. Load your Wi-Fi or Printer driver I suppose.
    Code:
    Add-WindowsDriver -Path "F:\mount" -Driver "<directory containing the inf files>" -recurse
    Set your timezone if you like
    Code:
    & (gcm "dism.exe") @("/image:F\mount",'/Set-TimeZone:Romance Standard Time')
    and there you are - his PE disk as you like it :)

    I did try for a long time to make my own from scratch but it was all to complicated for me. I couldn't get any type of GUI to work - only a limited file explorer.

    Much easier to tweek an existing one so it is as you like it (there is a lot of background work done here I think).
      My Computer

  2. cereberus's Avatar
    Posts : 12,035
    Windows10
       #312

    Kyhi said:
    Deleted post..

    Just tested mounting boot.wim to X:\ Partition
    Not supported - can not mount to the root drive - has to be folder

    Although when using "Program" folder from Host OS - no need to zip - just copy "program" folder into mounted PE Image
    then commit
    Thanks - I actually worked out you could copy instead of zipping (just tried it for luck).

    I am wondering if you could possibly mount the boot.wim to a directory, then map another drive letter so the mount directory becomes the 'root drive'. Still, it only takes a few seconds extra to do it the way I worked out, so probably not worth the hassle.

    Any idea how to print from winpe?
      My Computer

  3. Kyhi's Avatar
    Posts : 3,566
    Windows 3.1 to Windows 10
    Thread Starter
       #313

    cereberus said:
    Thanks - I actually worked out you could copy instead of zipping (just tried it for luck).

    I am wondering if you could possibly mount the boot.wim to a directory, then map another drive letter so the mount directory becomes the 'root drive'. Still, it only takes a few seconds extra to do it the way I worked out, so probably not worth the hassle.

    Any idea how to print from winpe?
    You would have to add print drivers..
      My Computer

  4. OldMike65's Avatar
    Posts : 107,791
    Windows10 Pro (x64) 20H2 19042.964
       #314

    I love this thread about how to add apps to Win10PE as I've been wanting to try this for a while. I am not a programmer, so it has always stumped this old fart. :) But, after reading these steps, I think I just might try this now. I want to add programs like Chrome, as I don't like Firefox, and maybe replace CCleaner with my registered version.......small changes actually. even wonder if I could replace Malwarebytes with my registered version.....but that one might not work. Again thanks guys for all this information!!! Nice!!
    Mike. :)
      My Computers

  5. Kyhi's Avatar
    Posts : 3,566
    Windows 3.1 to Windows 10
    Thread Starter
       #315

    Mike,
    adding Chrome is a little more Involved....
    CCleaner not an issue - same program - just have to add serial key to PE registry
    MalwareBytes - same program - just have to add serial key to PE registry

    Non-Portable Apps - are a little harder to add to PE - because of other system file dependencies...

    Although one could QuickTest the non-portable app in PE by running the app installer within PE
    If it crashes - then you have to find out why and what is missing to make the program run correctly..
      My Computer

  6. OldMike65's Avatar
    Posts : 107,791
    Windows10 Pro (x64) 20H2 19042.964
       #316

    Kyhi said:
    Mike,
    adding Chrome is a little more Involved....
    CCleaner not an issue - same program - just have to add serial key to PE registry
    MalwareBytes - same program - just have to add serial key to PE registry

    Non-Portable Apps - are a little harder to add to PE - because of other system file dependencies...

    Although one could QuickTest the non-portable app in PE by running the app installer within PE
    If it crashes - then you have to find out why and what is missing to make the program run correctly..
    Ok not sure about adding CCleaner key to the registry, as I just looked and their is no serial key for CCleaner in my registry. Think they put it right in the programs folder. Have not checked Malwarebytes yet...
      My Computers

  7. cereberus's Avatar
    Posts : 12,035
    Windows10
       #317

    lx07 said:
    Perhaps another thread for this? How to change Khyi's PE disk

    Anyway from what I can figure out (silence - I kill you) creating a shortcut isn't enough. I tried it (adding them to Public or Default desktop) and it didn't work.

    What you can do though (after changing the programs) is update F:\mount\Windows\system32\Win10PE.cfg to add the new shortcuts (and remove the old ones).

    I've no idea of the structure of this file or what it does exactly (except it seems to run when the image boots up) but copying the structure of what is there seems to work. For example if you want to change "FireFox" to "Palemoon" just search/replace.

    If you don't want CCleaner delete all references to it.

    If you want to add a new program add the lines
    Code:
    HD Tasks\MBR|Whatever|X:\Program Files\Whatever\Whatever.exe||    
    Desktop|Whatever|X:\Program Files\Whatever\Whatever.exe||
    As long as the program is portable it seems to work.

    As for printing I don't own one and still go to the internet café if I really have to print or fax something so I can't help with that. Load your Wi-Fi or Printer driver I suppose.
    Code:
    Add-WindowsDriver -Path "F:\mount" -Driver "<directory containing the inf files>" -recurse
    Set your timezone if you like
    Code:
    & (gcm "dism.exe") @("/image:F\mount",'/Set-TimeZone:Romance Standard Time')
    and there you are - his PE disk as you like it :)

    I did try for a long time to make my own from scratch but it was all to complicated for me. I couldn't get any type of GUI to work - only a limited file explorer.

    Much easier to tweek an existing one so it is as you like it (there is a lot of background work done here I think).
    I found all you have to do is create the shortcut on the PEversion in normal way (right click desktop etc), and create a shortcut on desktop. This then has the drives set to X directory.

    Then you do same as kyhi says, but additionally copy the shortcut to the users\default\desktop folder on the mounted drive, and then when the boot.wim is updated, the shortcut just appears on the desktop along with all the ones set up by kyhi.

    Perhaps not as tidy as editing the .cfg folder but very easy to do.

    I created a couple of shortcuts for notepad and wordpad (wordpad is good for editing linux txt files without the lf/cr format of windows text files).

    So how I copy stuff from my source OS is as follows (obviously really only portable apps).

    1) copy folders from program files for PE version (X drive)

    2) create desktop shortcut in normal way (right click on desktop)

    3) copy boot.wim to a another drive etc as per kyhi post.

    4) copy app folder to the mounted folders as well.

    5) copy shortcut to desktop in mounted folders as stated above

    6) dismount folders and copy boot.wim back to usb drive

    7) make iso of usb drive for future use.

    see

    Imgur: The most awesome images on the Internet

    for my customised version.

    I have even got a partial workaround for printing stuff ie create a pdf file, and copy it to my raspberry pi which is set up as a google cloud printer server (I've added putty to my disk).

    I agree a new sticky thread on this might be a good idea.
      My Computer

  8. Kyhi's Avatar
    Posts : 3,566
    Windows 3.1 to Windows 10
    Thread Starter
       #318

    But you gotta make me laugh...

    You did all that..
    But you can't click the picture icon on the POST toolbar - to attach a picture..

    LOL

    Attachment 61219

    Sorry.. Just had to do it...
    sometimes the simplest things are the hardest to figure out..
    LOL

    Attachment 61220
      My Computer

  9. cereberus's Avatar
    Posts : 12,035
    Windows10
       #319

    Kyhi said:
    But you gotta make me laugh...

    You did all that..
    But you can't click the picture icon on the POST toolbar - to attach a picture..

    LOL

    Attachment 61219



    Sorry.. Just had to do it...
    sometimes the simplest things are the hardest to figure out..
    LOL

    Attachment 61220
    LOL - force of habit!

    BTW : do you know of a way to save my wifi password etc and autorun PEnetwork manager?
      My Computer

  10. Kyhi's Avatar
    Posts : 3,566
    Windows 3.1 to Windows 10
    Thread Starter
       #320

    you can export the wifi profile and add it is an .xml file into the penetwork folder..

    but 95% of the time - it does not work anyway..

    so you still have to manually select, network adapter and password..
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:21.
Find Us




Windows 10 Forums