Multi-OEM/Retail Project {MRP} - Mk3

Discussion in 'MDL Projects and Applications' started by mxman2k, Oct 15, 2016.

  1. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    Im doing a remove all but with a exclude list so that it catches others not in the selectable list in the creator. However it seems m$ are combining apps within apps recently so a lot harder to find the app with others in that causes the odd effects.

    Code:
    $AppsNotToRemove = Get-AppxPackage | Where-Object{$_.Name -NotMatch "Store|XBox|Phone|FeedbackHub|QuickAssist|BioEnrollment|UI.Xaml|Terminal|1527c705-839a|c5e2524a-ea46|E2A4F912-2574|F46D4000-FD22|PeopleExperienceHost|ContentDelivery|SecureAssessmentBrowser|Client.CBS|ShellExperienceHost|Cortana|549981C3F5F10|ImmersiveControlPanel|Calculator|VCLibs|.Net.|DesktopAppInstaller|Edge|Search|StartMenuExperienceHost|SecHealth|OOBE|Print|Pinning|Undocked|AD|Acc|FilePicker|FileExplorer|StartMenuExperienceHost|CloudExperienceHost|HEIFImage|RawImage|VP9Video|WebMedia|WebpImage|Camera|ScreenSketch|ECAp|CapturePicker|CallingShellApp|TextService|NET.Native"}
    ForEach ($Name in $AppsNotToRemove) { ForEach ($Package in (Get-AppxPackage | Where-Object {$_.PackageFullName -like $Name })) { $Package.PackagefullName | Remove-AppxPackage -ErrorAction SilentlyContinue } }
    ForEach ($Name in $AppsNotToRemove) { ForEach ($Package in (Get-AppxPackage -Allusers | Where-Object {$_.PackageFullName -like $Name })) { $Package.PackagefullName | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue } }
    
    $AppsNotToRemove2 = Get-AppxProvisionedPackage -online | Where-Object{$_.PackageName -NotMatch "Store|XBox|Phone|FeedbackHub|QuickAssist|BioEnrollment|UI.Xaml|Terminal|1527c705-839a|c5e2524a-ea46|E2A4F912-2574|F46D4000-FD22|PeopleExperienceHost|ContentDelivery|SecureAssessmentBrowser|Client.CBS|ShellExperienceHost|Cortana|549981C3F5F10|ImmersiveControlPanel|Calculator|VCLibs|.Net.|DesktopAppInstaller|MicrosoftEdge|Search|StartMenuExperienceHost|SecHealth|OOBE|Print|Pinning|Undocked|AD|Acc|FilePicker|FileExplorer|StartMenuExperienceHost|CloudExperienceHost|HEIFImage|RawImage|VP9Video|WebMedia|WebpImage|Stable|Camera|ScreenSketch|ECAp|CapturePicker|CallingShellApp|TextService|NET.Native"}
    ForEach ($Name in $AppsNotToRemove2) { ForEach ($Package in (Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -match $Name.DisplayName} )) { Remove-AppxProvisionedPackage -Online -PackageName $Package.PackageName -ErrorAction SilentlyContinue } }
    
    So for now on this canary insider build im just disabling the all apps removal, saves me time and hassle as spent way too much on the damn thing already.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    The only difference between your exclude list and mine is TextService :g:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,734
    5,179
    120
    save Get-AppxPackage & Others command as variables
    instead of loading the list every time for each item ...

    maybe you found your problem? worth a shot.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    That be for another day/next MRP (152) - had enough with installing and coding for today.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    I not know PS very well and to get what PS scripts i have working was a challenge and half :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,734
    5,179
    120
    your text service is in ignore list ...... >>>
    just saying ... :(

    upload_2023-4-23_17-48-16.png
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    ok ran my ps script (as admin) with the textservice added to the list of exclude apps and it still crashes explorer :(
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    Well i will just leave it as it is with the work around for just this insider canary build or MRP 151 will never see light of day this month!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    New developments with the all safe apps removal side with help from @Dark Dinosaur further progress with the PS routine and its far faster too!

    No one app was causing the explorer issue, so a combination of about 5 or 6 new excluded apps have been added to the list which prevents the explorer crash, also it now has a easy to update list in future when new apps that need to be excluded to prevent other issues happening.

    Just doing a test install with the new PS routine added and the work around removed...

    The PS script worked perfectly when run manually being run, lets hope it runs via oobe stage. :D

    Just hope i removed all the work around code bits as i think i may of added in two sections and i only removed one :eek:

    This is my last install for today as it soon be TV time. :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Hey Mr. Mxman2k :bye3: i just come by to say hi... :giverose:
     
  11. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    Yippee it worked :)

    All 'safe' Apps removal is operative again and no (file)explorer crashes...:yeahyeah:

    For some reason the use classic CT menu not showing the old style desktop CT menu , it showing that 'show more options' line :g:

    But that should be easy to fix probably a variable i upset :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    Well my TV time is calling as been coding since 6am and i need a break...

    Continues tomorrow to fix those little gremlins that have sneaked in with some non show stopping options... Hopefully an easy fix. :)

    Will log in now and then during commercial breaks...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    Latest feedback...

    Vmware may still have issues. :(
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    I have just spent the past hour and more installing vmware workstation v17, installed ok no problems...

    Created a new VM - no problems -- it even found my old v12 vmware VM's when i last used v12.

    Clicked power on this vm and that is when it all fell apart, got an error after a while saying unable to connect to VMWare Authorization service, its not running -- LIE -- it is checked and rechecked.

    rebooted, tried again to run the VM i created (even tried the other ones that i knew worked before) - same error.

    Tried running as administrator, got errors about some VC140 files missing -- LIE -- those are installed.

    Tried everything possible, then decided enough is enough - uninstalled it.

    So thinking it my be my w10 playing up - although no errors otherwise, every other program i have works...

    Installed a fresh - untouched version of w10 on another pc, installed vmware v17 on that - the same errors !!

    Not sure if it just bad luck with it or that somehow i set it up wrong, but i left it at the defaults on both pc's...

    Never had this much hassle with v12 :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    I have tested MRP151 on many different real hardware systems from crappy laptops to half decent expensive ones and many PC's - apart from the glitch when no option file was used that it crashed, but that fixed now, it all works as intended - even the 'all safe apps' removal for w1x :D

    Therefore using a VM may not work as intended as there can be many different ways it can be set up which MRP may not be compatible with so i cant really help. EFI seems to be the most problematic along with w11 being installed on a VM.

    Majority of the time there is no problems, but for a few there can be, and i not have the time to invest fixing a issue for one person that could potentially stop MRP from working for many others.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. haris_mdlf69

    haris_mdlf69 MDL Senior Member

    Oct 23, 2018
    424
    667
    10
    In short Windows 11 sucks:D.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    I think most of us have that feeling recently :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,739
    19,254
    180
    Fixed the two options for win11 now:

    Use old context menu look instead of the new compact one. Was a upset variable :oops:

    Disable the flyout thing at top for window positioning.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...